lrauldan opened a new issue #1530: Pagespeed slows down nginx URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1530 While profiling our online application we found that there were sections having high response times. The one with the biggest problems was the listing of some items. Our application profiler, newrelic & blackfire were reporting response times near 200ms, however, nginx took sometimes over 2 seconds to return the response. We discovered that if we disable the pagespeed module in our nginx configuration, everything would work properly. Here are the compilation arguments for nginx: ``` nginx version: nginx/1.10.3 built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --add-module=/root/nginx-1.10.3-with-ip2location/headers-more-nginx-module-master --add-module=/root/ngx_pagespeed/ngx_pagespeed-latest-stable --add-module=/root/nginx-1.10.3-with-ip2location/ip2location-nginx-master --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --with-http_geoip_module ``` And here is the pagespeed configuration section: ``` pagespeed on; pagespeed FileCachePath /var/cache/pagespeed; pagespeed Domain https://www.domainanme.com; pagespeed Domain https://cdn.domainname.com; pagespeed SupportNoScriptEnabled false; pagespeed EnableFilters combine_css; pagespeed EnableFilters combine_javascript; pagespeed EnableFilters prioritize_critical_css; pagespeed EnableFilters extend_cache; pagespeed EnableFilters make_google_analytics_async; pagespeed EnableFilters collapse_whitespace; pagespeed XHeaderValue "CUSTOM VALUE"; # Ensure requests for pagespeed optimized resources go to the pagespeed handler # and no extraneous headers get set. location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; } location ~ "^/pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { } ``` Any thoughts on why would pagespeed behave like this?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
