Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们最近将我们的一些站点从 deflate 切换到 gzip,并注意到我们服务器上的 CPU 负载显着增加。
您是否可能遇到缓存未命中?也就是说,压缩内容有时会被缓存压缩,但切换压缩方案会(或至少应该)使缓存无效,从而导致 CPU 利用率显着增加。你试过换回来吗?
gzip 基本上是用一些额外的头文件放气的。所以不应该有显着的性能影响。现在,也许你的 deflate 工具比你的 gzip 工具更有效。您是使用相同的工具进行两次压缩还是两种不同的压缩?