--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/df23fe0a-286a-42b1-b6bb-9186c409625b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is that because nginx is slowly getting behind your load? If you slow down or stop the load, does the memory get released?-Josh
On Mon, Oct 20, 2014 at 7:47 AM, 'AnInterestedPerson' via mod-pagespeed-discuss <mod-pagesp...@googlegroups.com> wrote:
Same here with the pagespeed memory leak.
CentOS 6.5
nginx 1.6.1
ngx_pagespeed-release-1.9.32.1-beta
php 5.6.1
All ok in normal use.
Ran a stress test to the max creating loads of nginx worker processes and back to normal operation. The worker processes persist and slowly leak memory, like 1-5 MB every 10 minutes total.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
afterwards I performed a restart of those services.
Assumptions:
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/f21f8da7-6fa7-44e7-ba60-36a0d9e5d418%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
#user nginx;
worker_processes 8;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
#gzip on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_tokens off;
pagespeed on;
pagespeed FileCachePath /tmp/ngx_pagespeed_cache;
pagespeed MessageBufferSize 100000;
pagespeed EnableFilters make_google_analytics_async;
pagespeed EnableFilters insert_image_dimensions;
pagespeed EnableFilters inline_google_font_css;
pagespeed EnableFilters remove_comments;
pagespeed InPlaceResourceOptimization on;
pagespeed LowercaseHtmlNames on;
pagespeed XHeaderValue "Powered By durchd8.de";
pagespeed EnableFilters move_css_above_scripts;
pagespeed EnableFilters move_css_to_head;
# pagespeed StatisticsPath /ngx_pagespeed_statistics;
# pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
# pagespeed MessagesPath /ngx_pagespeed_message;
# pagespeed ConsolePath /pagespeed_console;
# pagespeed AdminPath /pagespeed_admin;
# pagespeed GlobalAdminPath /pagespeed_global_admin;
include /etc/nginx/conf.d/*.conf;
}
# 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$" { }
# location /ngx_pagespeed_statistics { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# location /ngx_pagespeed_global_statistics { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# location /ngx_pagespeed_message { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# location /pagespeed_console { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# location ~ ^/pagespeed_admin { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# location ~ ^/pagespeed_global_admin { allow 127.0.0.1; allow 93.207.89.139; deny all; }
# Leverage browser caching
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 8d;
add_header Pragma public;
add_header Cache-Control “public”;
try_files $uri @fallback;
}To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/df23fe0a-286a-42b1-b6bb-9186c409625b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/de21aeaf-b9ec-439f-be5d-b989b648f119%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
unset LDFLAGSsource /opt/intel/bin/compilervars.sh intel64export PATH=/usr/lib/ccache:$PATHCC=iccEXTRA_CFLAGS="-fast -parallel -qopenmp -pthread -unroll-aggressive -qopt-prefetch"LD=xildAR=xiarCXX=icpcCXXFLAGS="-fast -parallel -qopenmp -pthread -unroll-aggressive -qopt-prefetch"export CC EXTRA_CFLAGS LD AR CXX CXXFLAGS./autogen.sh && make -j3 && make install && make cleanunset EXTRA_CFLAGS
cd ~### git clone https://github.com/pagespeed/ngx_pagespeed.gitcd ngx_pagespeed/git pullcd ~/binsvn co http://src.chromium.org/svn/trunk/tools/depot_toolsexport PATH=$PATH:~/bin/depot_toolscd ~/mod_pagespeedgclient config http://modpagespeed.googlecode.com/svn/branches/latest-beta/srcgclient sync --force --jobs=1cd ~/mod_pagespeed/srcexport PATH=/usr/lib/ccache:$PATHCFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security"CXXFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security"LDFLAGS="-ljemalloc -Wl,-z,relro -Wl,--as-needed"export CFLAGS CXXFLAGS LDFLAGSnice make -j 3 AR.host=`pwd`/build/wrappers/ar.sh AR.target=`pwd`/build/wrappers/ar.sh BUILDTYPE=Release && cd ~/mod_pagespeed/src/net/instaweb/automatic && nice make -j 3 BUILDTYPE=Release AR.host="$PWD/../../../build/wrappers/ar.sh" AR.target="$PWD/../../../build/wrappers/ar.sh" all
cd /usr/local/src/nginx-1.7.6
make clean
source /opt/intel/bin/compilervars.sh intel64
export PATH=/usr/lib/ccache:$PATH \
CC=icc \
CFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \
LD=xild \
AR=xiar \
CXX=icpc \
CXXFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \
LDFLAGS=-ljemalloc \
export CC CFLAGS LD AR CXX CXXFLAGS LDFLAGS
MOD_PAGESPEED_DIR="$HOME/mod_pagespeed/src" ./configure --prefix=/opt/nginx17 --user=www-data --group=www-data --with-http_ssl_module --with-http_spdy_module --with-openssl=/usr/local/src/openssl-1.0.2-beta3 --with-openssl-opt="enable-ec_nistp_64_gcc_128 threads" --with-md5=/usr/local/src/openssl-1.0.2-beta3 --with-md5-asm --with-sha1=/usr/local/src/openssl-1.0.2-beta3 --with-sha1-asm --with-pcre-jit --with-file-aio --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_mp4_module --with-http_realip_module --with-http_stub_status_module --with-ipv6 --add-module=/usr/local/src/nginx-rtmp-module --add-module=/usr/local/src/ngx_cache_purge-2.1 --add-module=$HOME/ngx_pagespeed --with-ld-opt="-ljemalloc" --with-cc-opt="-DTCP_FASTOPEN=23 -xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch"
source /opt/intel/bin/compilervars.sh intel64export PATH=/usr/lib/ccache:$PATH \CC=icc \CFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \LD=xild \AR=xiar \CXX=icpc \CXXFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \LDFLAGS=-ljemalloc \export CC CFLAGS LD AR CXX CXXFLAGS LDFLAGSnice make install
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/f21f8da7-6fa7-44e7-ba60-36a0d9e5d418%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/f21f8da7-6fa7-44e7-ba60-36a0d9e5d418%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/166606d5-5a41-4941-a7ee-285b39c4b8cb%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/80ffe1ae-6a96-4e63-ab27-e755b08e56a3%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
Hans: how important is ICC for this, in your experience?
# icc -V
Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.090 Build 20140723
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/de21aeaf-b9ec-439f-be5d-b989b648f119%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
But it's worth checking, in all these configurations, if you have the same load measurements with all PageSpeed filters turned off in your NPS configuration. The HTML will still be parsed but we won't do anything else substantive during each request.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/de21aeaf-b9ec-439f-be5d-b989b648f119%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/84955957-fb4f-4005-8df6-b106cbe25399%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
CFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security" \CXXFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security" \LDFLAGS="-ljemalloc -Wl,-z,relro -Wl,--as-needed" \export CFLAGS CXXFLAGS LDFLAGS
MOD_PAGESPEED_DIR="$HOME/mod_pagespeed/src" ./configure --prefix=/opt/nginx17 --user=www-data --group=www-data --with-http_ssl_module --with-http_spdy_module --with-openssl=/usr/local/src/openssl-1.0.2-beta3 --with-openssl-opt="enable-ec_nistp_64_gcc_128 threads" --with-md5=/usr/local/src/openssl-1.0.2-beta3 --with-md5-asm --with-sha1=/usr/local/src/openssl-1.0.2-beta3 --with-sha1-asm --with-pcre=/usr/local/src/pcre-8.35 --with-pcre-jit --with-zlib=/usr/local/src/zlib-1.2.8 --with-file-aio --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_mp4_module --with-http_realip_module --with-http_stub_status_module --with-ipv6 --add-module=/usr/local/src/nginx-rtmp-module --add-module=/usr/local/src/ngx_cache_purge-2.1 --add-module=$HOME/ngx_pagespeed --with-ld-opt="-ljemalloc -Wl,-z,relro -Wl,--as-needed" --with-cc-opt="-DTCP_FASTOPEN=23 -O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security"
Hi Josh,
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/166606d5-5a41-4941-a7ee-285b39c4b8cb%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/d5109443-21e8-4226-87f8-2bb970c48ffb%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
Thanks Josh!
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/80ffe1ae-6a96-4e63-ab27-e755b08e56a3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/de21aeaf-b9ec-439f-be5d-b989b648f119%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/86a73669-e54e-41dc-83f9-54a9750014db%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
In file included from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/psol/include/pagespeed/kernel/base/scoped_ptr.h(26),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/psol/include/pagespeed/kernel/http/headers.h(25),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/psol/include/pagespeed/kernel/http/response_headers.h(24),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/psol/include/net/instaweb/http/public/response_headers.h(20),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/src/ngx_pagespeed.h(37),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/src/ngx_base_fetch.h(46),
from /usr/src/ngx_pagespeed-release-1.9.32.1-beta/src/ngx_base_fetch.cc(19):
/usr/src/ngx_pagespeed-release-1.9.32.1-beta/psol/include/third_party/chromium/src/base/memory/scoped_ptr.h(163): error #68: integer conversion resulted in a change of sign
COMPILE_ASSERT(sizeof(T) == -1, do_not_use_array_with_size_as_type);
^
/usr/src/ngx_pagespeed-release-1.9.32.1-beta/src/ngx_base_fetch.cc(167): error #68: integer conversion resulted in a change of sign
if (__sync_add_and_fetch(&references_, -1) == 0) {
^
compilation aborted for /usr/src/ngx_pagespeed-release-1.9.32.1-beta/src/ngx_base_fetch.cc (code 2)
make[1]: *** [objs/addon/src/ngx_base_fetch.o] Error 2
make[1]: Leaving directory `/usr/src/nginx-1.6.1'
make: *** [build] Error 2
cd ~### git clone https://github.com/pagespeed/ngx_pagespeed.git #(first time install? then uncomment)mkdir ngx_pagespeed/ && cd ngx_pagespeed/git pullmkdir ~/bin && cd ~/bin
svn co http://src.chromium.org/svn/trunk/tools/depot_toolsexport PATH=$PATH:~/bin/depot_tools
mkdir ~/mod_pagespeed && cd ~/mod_pagespeed
gclient config http://modpagespeed.googlecode.com/svn/branches/latest-beta/srcgclient sync --force --jobs=1cd ~/mod_pagespeed/srcexport PATH=/usr/lib/ccache:$PATH
CFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security"
CXXFLAGS="-O3 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -fopenmp -mtune=native -march=native -Wformat -Werror=format-security"LDFLAGS="-ljemalloc -Wl,-z,relro -Wl,--as-needed"export CFLAGS CXXFLAGS LDFLAGS
nice make -j 3 AR.host=`pwd`/build/wrappers/ar.sh AR.target=`pwd`/build/wrappers/ar.sh BUILDTYPE=Release && cd ~/mod_pagespeed/src/net/instaweb/automatic && nice make -j 3 BUILDTYPE=Release AR.host="$PWD/../../../build/wrappers/ar.sh" AR.target="$PWD/../../../build/wrappers/ar.sh" all
source /opt/intel/bin/compilervars.sh intel64export PATH=/usr/lib/ccache:$PATH \CC=icc \CFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \LD=xild \AR=xiar \CXX=icpc \CXXFLAGS="-xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch" \LDFLAGS=-ljemalloc \
export CC CFLAGS LD AR CXX CXXFLAGS LDFLAGS
MOD_PAGESPEED_DIR="$HOME/mod_pagespeed/src" ./configure --prefix=/opt/nginx17 --user=www-data --group=www-data --with-http_ssl_module --with-http_spdy_module --with-openssl=/usr/local/src/openssl-1.0.2-beta3 --with-openssl-opt="enable-ec_nistp_64_gcc_128 threads" --with-md5=/usr/local/src/openssl-1.0.2-beta3 --with-md5-asm --with-sha1=/usr/local/src/openssl-1.0.2-beta3 --with-sha1-asm --with-pcre-jit --with-file-aio --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_mp4_module --with-http_realip_module --with-http_stub_status_module --with-ipv6 --add-module=/usr/local/src/nginx-rtmp-module --add-module=/usr/local/src/ngx_cache_purge-2.1 --add-module=/usr/local/src/ngx_http_substitutions_filter_module --add-module=$HOME/ngx_pagespeed --with-ld-opt="-ljemalloc" --with-cc-opt="-DTCP_FASTOPEN=23 -xHOST -O3 -ipo -no-prec-div -pthread -unroll-aggressive -qopt-prefetch"
nice make install
Hi Josh,
...#pid /var/run/nginx.pid;<span style="color:#000"
Bottom line: use jemalloc with nginx and pagespeed.
The apparent memory leak is gone in my case. So from my view am ok :D
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/70c45b60-4cfe-46d9-806c-5e7957cab7fc%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/750a3883-65db-4e3c-a956-a8baa30a0eff%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
Results so far:
I am just having a fun time testing here.
sidenote: I am testing with a real-life Wordpress page so that I am able to translate my findings into real-life examples (same applies for my 14 Mill hits/day - before - and 15.5-18 Mill hits/day - now -)
Why Wordpress? (i) its my business, (ii) WP is a resource monster and a beast to tame.
Yours
Martin
PS: please make pagespeed compileable by icc
...To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/mod-pagespeed-discuss/70c45b60-4cfe-46d9-806c-5e7957cab7fc%40googlegroups.com?utm_medium=email&utm_source=footer" tTo unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
ITs more difficult than I thought. Over night I have a pattern. Diagram first:
So basically:Bottom line: I am unsure about the outcome, but not worried so far. More to post later on.
...
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/39675285-0c74-4ebf-889e-9649d52c9c72%40googlegroups.com.
nginx (and Apache as well) unloaded (like they should) and system returned to normal. No more memory leaking at all, just normal operations. From my current findings I got the impression, that jemalloc served me well in having such a nice solution....
What exactly is the meaning of the nginx 'open file limit'? Is that simply the maximum number of file descriptors allowed per process by your kernel? Or is tht something enforced by nginx?
This looks to me like a pattern of configuring the load so that its coming in faster than the server can keep up. Independent of memory allocator or compiler flow, a server has some limitation in how fast it can process requests. If you send requests faster than the limit, the server has two choices: shed load (return 500s) or queue up the requests in hopes that the load will slow down and it can catch up . In the latter case, if the load does not slow down then the server will start consuming memory to hold the increasing queues, without bound.
Of course by changing the allocator and the compiler you can increase the server capacity, which is all good.
But to solve the leak we have to get the servers to enforce a bounded queue-size and start sending 500s when they run out of it I don't know if nginx can be configured like this.
PageSpeed itself has some queues internally for fetches and for optimizing resources. I believe at this point we have bounded sizes for all of these, and above that usually give up optimizing stuff. But it's possible that we've missed some of them.
As you run your load test at this high rate, could you look at /pagespeed_admin/statistics? Click the buttons to sort by frequence and to update every 5 seconds and see which statistics are changing fastest. That might shed some light on pagespeed's specific contribution to the memory leaks. Also check /pagespeed_admin/histograms.
Of course, PageSpeed will indirectly contribute to the leak by adding compute overhead to every request, and making it much easier for nginx to get into this state where it might be doing some queuing. And jemalloc and ICC can help push that out further.
...
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/461f54ce-8eda-47f3-a099-21e23b0eead4%40googlegroups.com.