Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.
0
votes
5answers
721 views
gunzip “No space left on device”
I have a gzipped file that Ubuntu reports is 2,119,952,848 bytes in size. When I try to gunzip on a mount with 12GB free space, I get the error "No space left on device".
Here's where it gets really ...
3
votes
6answers
2k views
Does gunzip work in memory or does it write to disk?
We have our log files gzipped to save space. Normally we keep them compressed and just do
gunzip -c file.gz | grep 'test'
to find important information but we're wondering if it's quicker to keep ...
0
votes
1answer
230 views
How to enable gzip?
I would like to enable GZIP throughout my whole website. What would be the best way to do it? Would it be through .htaccess?
Any pointers on how to do this would be greatly appreciated.
1
vote
2answers
686 views
View rotated log files Mac OS X Server (*.?.gz)
Trying to look at some of our older log files and find they're cryptic "Unix Executable Files". This particular server I'm working with is an older Mac OS X Server (10.4 - Tiger).
-rw-r----- 1 ...
3
votes
2answers
1k views
nginx is not using gzip to talk to backend servers
Our web servers are running IIS 7 and are configured to compress dynamic and static content. When I hit these servers directly, gzip compression works.
I recently placed nginx in front of them, ...
1
vote
1answer
299 views
Why Can't I Pre-Zip Server Files?
It's just good common sense to have your server gzip your files before they send them to users (I use Nginx) Is there anyway to save the server some overhead and pre-zip those files for the server, ...
0
votes
2answers
337 views
What are the command-line options for un-tarring a tar.gz file to a specific directory?
This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it.
What ...
5
votes
1answer
258 views
How does a web server/the http protocol handle version control and compression?
When a client browser requests a file from the web server, I know that some kind of check is performed, because the files needed to serve the web page may already be cached by the web browser. So, if ...
4
votes
3answers
980 views
Incorrect gzipping of http requests, can't find who's doing it
We're seeing some very strange mangling of HTTP responses, and we can't figure out what is doing it. We have an app server handling JSON requests. Occasionally, the response is returned gzipped, but ...
3
votes
2answers
660 views
gzip js on apache
the following configuration in httpd.conf only gzip css and html, not javascript, any idea?
AddOutputFilterByType DEFLATE text/html text/plain text/javascript text/css
AddOutputFilterByType DEFLATE ...
0
votes
1answer
867 views
Normalize Accept-Encoding via HAProxy for optimized Squid hit rate
Our website infrastructure uses HAProxy for load balancing, a Squid cluster for caching, and application data is on an IIS cluster.
We load balance HAProxy by URI to optimize the Squid hit-rate, but ...
2
votes
3answers
5k views
How do I turn on gzip in Apache2?
I simply did :
sudo aptitude install apache2
And that's how my server is set up. No extra modules, no nothing.
I'm on ubuntu jaunty.
4
votes
2answers
142 views
How GZipped contents are transfered on the web?
I heard that static contents like CSS and JavaScript can be better delivered in GZip format.
And Content Developer Network (CDN) always does so.
However I don't understand how the format works. First ...
2
votes
1answer
1k views
IIS6 not doing gzip compression when including Via header in request
I have some static content going through a CDN. I am using IIS6's built in compression (gzip & deflate) for static content and this is working fine when I request it. However, when the CDN makes ...
3
votes
2answers
95 views
enabled gzip — running out of threads
I enabled gzip in apache2 and started load testing -- I am seeing a lot of keep alives state busy state -- 95% of the web server worker threads are being used at any given time
While CPU is ok, I am ...
0
votes
1answer
1k views
nginx - combine js files, cache and serve gzipped
I'm using nginx to serve static files.
I have several js files and different client require different combination of the available files.
Is it possible that nginx will combine the files in the ...
1
vote
3answers
247 views
Can Apache 2 be configured to start sending gzipped data early?
We have Apache set up to gzip compress html pages before they are sent to the client browser.
However, some of our pages are slowish to generate and it seems that Apache is holding on until it has ...
0
votes
1answer
416 views
Apache output compression working for CSS/JS but not PHP
I have this in my .htaccess:
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
Testing files on my site, it seems ...
2
votes
2answers
2k views
Gzip vs. Reverse Proxy Cache
I have a mostly static site running on Ruby on Rails that is using the Varnish reverse proxy cache to save on hits to the Rails backend.
The problem is that a user can login to the site and when they ...
1
vote
1answer
280 views
bzip2 and compressed stream concatenation
With gzip you can do something like this:
gzip -c file1 > output.gz
gzip -c file2 >> output.gz
gzip -c file3 >> output.gz
and when you uncompress output.gz it will contain ...
1
vote
1answer
255 views
Can automatic decompression be configured in .htaccess?
I've got a bunch of static files (eg index.xhtml) in an Apache2 web root. I don't have control over the server's configuration, but am allowed to modify .htaccess in the web root.
I would like to ...
1
vote
1answer
168 views
GZip on IIS6.0 - Some sites work, others dont?
I have a 2k3 server setup running iis6.0 and ive just enabled gzip compression succesfully - for the most part. Most sites (eg: clickhips.co.uk) are coming up in YSlow as being compressed fine however ...
4
votes
2answers
4k views
How can I troubleshoot why my IIS7 site is not gzip compressing?
I've got a number of websites on a single IIS7 machine running W2K8.
I'm using Fiddler to help me figure out if something is compressed or not. Nothing is.
So, I've googled for a few things and ...
1
vote
4answers
2k views
Break up a dd image into multiple files
I'm doing some data recovery from a hard disk. The disk has about 300GB of data on it, but I lack another hard drive that has 300GB of free space.
I have three HDs, with 150, 40, and 120 GB free.
...
2
votes
2answers
1k views
Http gzip compression and performance
I've always tried to enable gzip compression on web servers because it seemed to have very low CPU cost and you obtain a significant data transfer reduction.
Now I we have a public server that has ...
2
votes
2answers
964 views
gzip on httpd or on Tomcat?
In a Java web application running in an Apache Tomcat servlet container with an Apache httpd in front of it:
is it better to use enable GZIP compression on Tomcat or on httpd level?
is it better to ...
5
votes
2answers
1k views
Apache: Send pre-packed gzip'ed files
I want Apache to send static files gzip'ed over the wire, but also want Apache to not always gzip them over and over again. So I thought if it wouldn't be possible to deliver an .gz file if it exists. ...
0
votes
1answer
681 views
How can I SetEnv based on pre-rewritten URI or post-rewritten query parameter?
So there's a file in Wordpress, wp-content/blogs.php, that serves files uploaded through Wordpress. There's a rewrite rule in the WP .htaccess that rewrites URLs of the format ...
3
votes
5answers
776 views
`outputscript | gzip > $file` not overwriting $file
I have an hourly cron script which take some output (a mysql dump), pipes it through gzip, and aims to overwrite a file of the same name. When I run it manually as root the file is overwritten. When ...
1
vote
2answers
811 views
GZIP not decompressing as a directory
I am trying compress a folder so I can FTP it to my web server.
I am compressing on osx snow leopard and decompressing on ubuntu 8.04
These are the two commands I am running
sudo git archive master ...
0
votes
2answers
595 views
Why would internet explorer conflict with lighttpd/mod_compress?
We've been running lighttpd on our image servers for quite some time, but in an effort to speed up page load times, we've been working toward using mod_compress and etags to speed things up.
I've ...
1
vote
2answers
178 views
CPU cost in enabling mod_gzip
what is the cost of enabling compression in a server's response... I am assuming higher CPU utilization but confused on how many times is a response compressed. For instance if there are 10 requests ...
0
votes
2answers
686 views
Gzip and Javascript Minification
I have a Rails app using the Rails javascript helpers to concat all the javascript together into a single file.
In addition my web server is serving this javascript file to the end users as gzip ...
3
votes
4answers
1k views
Are there performance impacts to using gzip for web services?
I have a very typical scenario:
browser -> web server -> web service
I've seen lots of articles/documentation about the benefit of compressing the data sent from the web server to the browser to ...
6
votes
2answers
6k views
Why Apache doesn’t gzip css or js files which have parameters?
Some CSS & JS files are not compressed by apache with mod_deflate enabled. This files looks like this "[domain.name]/aggregator.css?..." or "[domain.name]/misc/jquery.js?..." in YSlow. The other ...
0
votes
6answers
863 views
gzip to bmp images on the fly?
I havent decided on a technology yet but i wanted to ask. BMP images are large, i compressed a 3mb image to 50k. Browsers can decode gzip text, so would it be possible to gzip bmp on my server and ...
2
votes
5answers
4k views
Gzip Piped to Rsync
I want to do something like gzip a file, then immediately rsync it to another server so that the created gzip file will not be written on the local server. I was thinking of doing something like ...
2
votes
1answer
461 views
How can you use gzip for static website content served by a Content Delivery Network? Does it improve page load times?
I'm serving up most of my static media from a CDN for my website. This includes images, videos, javascript files, and CSS files. YSlow and Google's Performance tool tell me that I should be gzip'ing ...
3
votes
3answers
3k views
Getting HTTP Compression (GZip) to work with URL Routing on IIS 6
I haven't seen any questions specifically addressing this specific issue.
When URL Routing is used, The Request goes into IIS and then is routed to the Aspx Page. For example, a site: ...
2
votes
2answers
1k views
IIS Compression: Enable GZIP and DEFLATE using Powershell
How does one do the following things with IIS 5.1/6.0 using PowerShell:
Enable HTTP Compression
Set GZIP and DEFLATE file extensions
Enable Dynamic and Static compression for GZIP and DEFLATE
Set ...