{"action":"created","issue":{"url":"https://api.github.com/repos/amir20/phantomjs-node/issues/239","repository_url":"https://api.github.com/repos/amir20/phantomjs-node","labels_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/239/comments","events_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/239/events","html_url":"https://github.com/amir20/phantomjs-node/issues/239","id":55733717,"number":239,"title":"Sometimes shim.js is left running, hogs CPU time","user":{"login":"dlykissas","id":9714938,"avatar_url":"https://avatars.githubusercontent.com/u/9714938?v=3","gravatar_id":"","url":"https://api.github.com/users/dlykissas","html_url":"https://github.com/dlykissas","followers_url":"https://api.github.com/users/dlykissas/followers","following_url":"https://api.github.com/users/dlykissas/following{/other_user}","gists_url":"https://api.github.com/users/dlykissas/gists{/gist_id}","starred_url":"https://api.github.com/users/dlykissas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlykissas/subscriptions","organizations_url":"https://api.github.com/users/dlykissas/orgs","repos_url":"https://api.github.com/users/dlykissas/repos","events_url":"https://api.github.com/users/dlykissas/events{/privacy}","received_events_url":"https://api.github.com/users/dlykissas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amir20/phantomjs-node/labels/performance","name":"performance","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T09:40:25Z","updated_at":"2016-02-15T01:28:23Z","closed_at":null,"body":"My code runs phantom.js via this node.js script every 2 minutes, does some stuff and then exits [\"ph.exit()\"]. Problem is that sometimes \"shim.js\" is left running, and using up to 99% of CPU time as exposed by \"ps -eo pcpu,pid,user,args | sort -k1 -r | head -10\" and various other tools. Now I have seen another similar issue open here (\"phantomjs processes left laying around #198\"), but since it does not mention \"shim.js\" by name, I thought I should open a new one."},"comment":{"url":"https://api.github.com/repos/amir20/phantomjs-node/issues/comments/184019737","html_url":"https://github.com/amir20/phantomjs-node/issues/239#issuecomment-184019737","issue_url":"https://api.github.com/repos/amir20/phantomjs-node/issues/239","id":184019737,"user":{"login":"amir20","id":260667,"avatar_url":"https://avatars.githubusercontent.com/u/260667?v=3","gravatar_id":"","url":"https://api.github.com/users/amir20","html_url":"https://github.com/amir20","followers_url":"https://api.github.com/users/amir20/followers","following_url":"https://api.github.com/users/amir20/following{/other_user}","gists_url":"https://api.github.com/users/amir20/gists{/gist_id}","starred_url":"https://api.github.com/users/amir20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir20/subscriptions","organizations_url":"https://api.github.com/users/amir20/orgs","repos_url":"https://api.github.com/users/amir20/repos","events_url":"https://api.github.com/users/amir20/events{/privacy}","received_events_url":"https://api.github.com/users/amir20/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T01:28:23Z","updated_at":"2016-02-15T01:28:23Z","body":"I haven't seen this error happen. In fact I stress tested and it looks like no instances are left behind. "}}