Hi,
I had a problem with ngx_pagespeed described below:
Error: As I realised that my Nginx server was down, I restarted it and then read the log file (/var/log/nginx/nginx.log). In the logs I saw that ngx_pagespeed threw some warnings about gzip ("pagespeed: cannot set gzip, command not found in /etc/nginx/nginx.conf:10") and some alerts about open sockets ("*3887621 open socket #59 left in connection 17") for the last few days. And today after it threw an alert about worker thread initialization ("2014/11/01 17:10:24 [error] 14745#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171024:ERROR:worker.cc(120)] Unable to start worker thread"), the server stopped working. I pasted a more detailed output below.
OS: CentOS release 6.6 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.6 (Final)
Nginx Version: 1.6.1
Ngx_pagespeed Version: 1.9.32
Some Output Examples:
...............................................................................
2014/10/26 11:02:56 [warn] 2339#0: pagespeed: cannot set gzip, command not found in /etc/nginx/nginx.conf:10
2014/10/26 11:02:56 [alert] 3263#0: *3838137 open socket #68 left in connection 29
2014/10/26 11:02:56 [alert] 3263#0: *3838140 open socket #70 left in connection 52
2014/10/26 11:02:56 [alert] 3263#0: aborting
2014/10/26 11:03:10 [alert] 3265#0: *3731861 open socket #59 left in connection 13
2014/10/26 11:03:10 [alert] 3265#0: *3839866 open socket #91 left in connection 57
2014/10/26 11:03:10 [alert] 3265#0: *3839882 open socket #104 left in connection 98
2014/10/26 11:03:10 [alert] 3265#0: *3839884 open socket #110 left in connection 105
2014/10/26 11:03:10 [alert] 3265#0: *3839881 open socket #101 left in connection 128
.................................................................................
2014/10/29 15:43:24 [alert] 10340#0: *2842118 open socket #205 left in connection 123
2014/10/29 15:43:24 [alert] 10340#0: aborting
NgxBaseFetch::RequestCollection: Broken pipe
NgxBaseFetch::RequestCollection: Broken pipe
2014/10/29 17:05:02 [warn] 28101#0: pagespeed: cannot set gzip, command not found in /etc/nginx/nginx.conf:10
2014/10/29 17:06:40 [alert] 2835#0: *3170881 open socket #60 left in connection 28
2014/10/29 17:06:40 [alert] 2835#0: aborting
NgxBaseFetch::RequestCollection: Broken pipe
NgxBaseFetch::RequestCollection: Broken pipe
NgxBaseFetch::RequestCollection: Broken pipe
NgxBaseFetch::RequestCollection: Broken pipe
2014/10/29 19:01:47 [warn] 28101#0: pagespeed: cannot set gzip, command not found in /etc/nginx/nginx.conf:10
...................................................................................
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:23 [alert] 14498#0: worker process 14499 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:23 [alert] 14498#0: worker process 14501 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
.................................................................................................
2014/11/01 17:10:24 [error] 14745#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171024:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:24 [alert] 14745#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171024:FATAL:serf_url_async_fetcher.cc(819)] Check failed: 0 == apr_thread_create(&thread_id_, __null, SerfThreadFn, this, pool_) (0 vs. 11)
nginx: worker process() [0x4ae7ea]
nginx: worker process() [0x47c2d6]
nginx: worker process() [0x4ab702]
nginx: worker process() [0x776d00]
nginx: worker process() [0x5b1bb1]
nginx: worker process() [0x7732f1]
nginx: worker process() [0x7bf5c9]
..............................................................................................
2014/11/01 17:10:27 [alert] 14498#0: worker process 15038 exited on signal 6 (core dumped)
2014/11/01 17:10:28 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171028:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:28 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171028:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:28 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171028:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:28 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171028:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:29 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171029:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:32 [error] 15057#0: [ngx_pagespeed 1.9.32.1-4238] [1101/171032:ERROR:worker.cc(120)] Unable to start worker thread
2014/11/01 17:10:36 [warn] 14498#0: pagespeed: cannot set gzip, command not found in /etc/nginx/nginx.conf:10
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:37 [alert] 14498#0: worker process 15145 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:37 [alert] 14498#0: worker process 15140 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:37 [alert] 14498#0: worker process 15147 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
2014/11/01 17:10:37 [alert] 14498#0: worker process 15222 exited on signal 6 (core dumped)
terminate called after throwing an instance of 'St9bad_alloc'
what(): std::bad_alloc
and the "terminate called after throwing..." errors goes all the way till the end of file for many lines.