{"action":"created","issue":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1081","labels_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1081/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1081/comments","events_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1081/events","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1081","id":123445053,"number":1081,"title":" core dumps and slow reads with 1.10.33.1-7580 (nginx freezes after some hours) ","user":{"login":"creativeprogramming","id":954291,"avatar_url":"https://avatars.githubusercontent.com/u/954291?v=3","gravatar_id":"","url":"https://api.github.com/users/creativeprogramming","html_url":"https://github.com/creativeprogramming","followers_url":"https://api.github.com/users/creativeprogramming/followers","following_url":"https://api.github.com/users/creativeprogramming/following{/other_user}","gists_url":"https://api.github.com/users/creativeprogramming/gists{/gist_id}","starred_url":"https://api.github.com/users/creativeprogramming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativeprogramming/subscriptions","organizations_url":"https://api.github.com/users/creativeprogramming/orgs","repos_url":"https://api.github.com/users/creativeprogramming/repos","events_url":"https://api.github.com/users/creativeprogramming/events{/privacy}","received_events_url":"https://api.github.com/users/creativeprogramming/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-22T09:18:23Z","updated_at":"2015-12-24T00:35:18Z","closed_at":null,"body":"I recently upgraded to 1.10.33.1, but I had to switch back to 1.9.32.10-7423 (last version i was using) due to following errors, that caused my nginx to freeze after few hours of high traffic (nginx daemon didn't died, but was unable to serve any request)\r\n```\r\n2015/12/21 13:15:02 [error] 29209#0: [ngx_pagespeed 1.10.33.1-7580] Slow ReadFile operation on file /home/pagespeed_cache..omissis..t/it/_.pagespeed.jo.RAuz1oeDfS.js,: 68.457ms; configure SlowFileLatencyUs to change threshold\r\n\r\n2015/12/21 13:15:02 [error] 29209#0: [ngx_pagespeed 1.10.33.1-7580] Slow write operation on file /home/pagespeed_cache/....omissis...\r\n\r\n2015/12/21 13:16:52 [alert] 11520#0: worker process 29526 exited on signal 11 (core dumped)\r\n2015/12/21 13:17:22 [alert] 11520#0: worker process 29491 exited on signal 11 (core dumped)\r\n2015/12/21 13:20:48 [alert] 11520#0: worker process 29558 exited on signal 11 (core dumped)\r\n2015/12/21 13:22:36 [alert] 11520#0: worker process 29209 exited on signal 11 (core dumped)\r\n2015/12/21 13:23:04 [alert] 11520#0: worker process 29504 exited on signal 11 (core dumped)\r\n2015/12/21 13:23:40 [alert] 11520#0: worker process 29501 exited on signal 11 (core dumped)\r\n2015/12/21 13:33:48 [alert] 11520#0: worker process 29673 exited on signal 11 (core dumped)\r\n2015/12/21 13:34:18 [alert] 11520#0: worker process 29812 exited on signal 11 (core dumped)\r\n2015/12/21 13:34:18 [alert] 11520#0: worker process 29931 exited on signal 11 (core dumped)\r\n2015/12/21 13:34:27 [alert] 11520#0: worker process 29917 exited on signal 11 (core dumped)\r\n2015/12/21 13:34:29 [alert] 11520#0: worker process 30298 exited on signal 11 (core dumped)\r\n2015/12/21 13:34:38 [alert] 11520#0: worker process 30327 exited on signal 11 (core dumped)\r\n```\r\n\r\n\r\nI'm using nginx 1.8.0 but i tried also to go with 1.9.9, with no luck, now I think something new in pagespeed is the issue for the signal 11 issue as I'm not getting it anymore after switching back to 1.9.32.10\r\n"},"comment":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/comments/167013837","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1081#issuecomment-167013837","issue_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1081","id":167013837,"user":{"login":"creativeprogramming","id":954291,"avatar_url":"https://avatars.githubusercontent.com/u/954291?v=3","gravatar_id":"","url":"https://api.github.com/users/creativeprogramming","html_url":"https://github.com/creativeprogramming","followers_url":"https://api.github.com/users/creativeprogramming/followers","following_url":"https://api.github.com/users/creativeprogramming/following{/other_user}","gists_url":"https://api.github.com/users/creativeprogramming/gists{/gist_id}","starred_url":"https://api.github.com/users/creativeprogramming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativeprogramming/subscriptions","organizations_url":"https://api.github.com/users/creativeprogramming/orgs","repos_url":"https://api.github.com/users/creativeprogramming/repos","events_url":"https://api.github.com/users/creativeprogramming/events{/privacy}","received_events_url":"https://api.github.com/users/creativeprogramming/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T00:35:18Z","updated_at":"2015-12-24T00:35:18Z","body":"I finally managed to get the core dumps files, before posting you the backtrace details i write here how i solved my issue for people coming from search engines ad to keep a public note for myself too\r\n\r\nIt was all due to ulimits:\r\n\r\n```\r\ntail -f /var/log/apport.log\r\n\r\nERROR: apport (pid 1443) Thu Dec 24 01:05:03 2015: executable: /usr/local/nginx-pagespeed/nginx (command line \"nginx:\\ worker\\ process\")\r\nERROR: apport (pid 1443) Thu Dec 24 01:05:03 2015: executable does not belong to a package, ignoring\r\nERROR: apport (pid 1443) Thu Dec 24 01:05:03 2015: writing core dump to /usr/local/nginx-coredumps/core (limit: 524288000)\r\nERROR: apport (pid 1443) Thu Dec 24 01:05:05 2015: aborting core dump writing, size exceeds current limit 524288000\r\n```\r\n\r\nso I'd to increase those limits\r\n\r\n```vim nginx.conf\r\n```\r\n```\r\nworker_rlimit_core 1000M;\r\nworking_directory /usr/local/nginx-coredumps;\r\n```\r\n\r\n```\r\nvim /etc/security/limits.conf\r\n```\r\n```\r\nroot hard core unlimited\r\n* hard core unlimited\r\nroot soft core unlimited\r\n* soft core unlimited\r\n```\r\n```\r\nchown www-data:www-data -R  /usr/local/nginx-coredumps\r\nchmod 777 -R  /usr/local/nginx-coredumps\r\nreboot\r\n```\r\n"}}