{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/373","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/373/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/373/events","html_url":"https://github.com/jxcore/jxcore/issues/373","id":83521363,"number":373,"title":"(Plesk) Massive CPU laod","user":{"login":"purepear","id":144010,"avatar_url":"https://avatars.githubusercontent.com/u/144010?v=3","gravatar_id":"","url":"https://api.github.com/users/purepear","html_url":"https://github.com/purepear","followers_url":"https://api.github.com/users/purepear/followers","following_url":"https://api.github.com/users/purepear/following{/other_user}","gists_url":"https://api.github.com/users/purepear/gists{/gist_id}","starred_url":"https://api.github.com/users/purepear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purepear/subscriptions","organizations_url":"https://api.github.com/users/purepear/orgs","repos_url":"https://api.github.com/users/purepear/repos","events_url":"https://api.github.com/users/purepear/events{/privacy}","received_events_url":"https://api.github.com/users/purepear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-01T14:18:06Z","updated_at":"2015-06-01T14:59:00Z","closed_at":null,"body":"Our host support noticed that Node applications are using way too much CPU.\r\nSo i updated to the newest extension version 2.0.6 and jxcore 0.3.0.1 but the problem still exists.\r\n\r\nCentOS Linux 7.1.1503 (Core)\r\nPlesk 12.0.18 \r\n\r\nthis is a test app\r\n```\r\nvar http = require('http')\r\nhttp.createServer(function (req, res) {\r\n    res.writeHead(200, {'Content-Type': 'text/html'});\r\n    res.end(\"Test\");\r\n    console.log(new Date().toUTCString())\r\n}).listen(11111, '127.0.0.1');\r\n```\r\n\r\nas soon as it is restarted(file change or restart through plesk extension panel) it starts using CPU like ~100%, ~200%, ~50%, ~250%, ~150%... and so on.. i use **top** command. This goes for every app that is running so you can imagine how bad this is.\r\n\r\nI stopped the app in plesk and ran it with /usr/local/psa/var/modules/jxcore-support/jx_rh64v8/jx app.js and i believe the only CPU usage was when i made curl requests .. so i guess the problem is how plesk extension manages/runs the apps.\r\n\r\nIf you have ideas on how to test further just let me know. \r\n\r\nOne other thing that i'm concerned is all apps are running with root user. Why not using the domain user at least for security reasons.\r\n\r\n\r\nAnyone else with similar problem.. btw i didn't noticed this cpu usage until today so others may have the same issue but not be aware."},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/107553688","html_url":"https://github.com/jxcore/jxcore/issues/373#issuecomment-107553688","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/373","id":107553688,"user":{"login":"ktrzeciaknubisa","id":5946844,"avatar_url":"https://avatars.githubusercontent.com/u/5946844?v=3","gravatar_id":"","url":"https://api.github.com/users/ktrzeciaknubisa","html_url":"https://github.com/ktrzeciaknubisa","followers_url":"https://api.github.com/users/ktrzeciaknubisa/followers","following_url":"https://api.github.com/users/ktrzeciaknubisa/following{/other_user}","gists_url":"https://api.github.com/users/ktrzeciaknubisa/gists{/gist_id}","starred_url":"https://api.github.com/users/ktrzeciaknubisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktrzeciaknubisa/subscriptions","organizations_url":"https://api.github.com/users/ktrzeciaknubisa/orgs","repos_url":"https://api.github.com/users/ktrzeciaknubisa/repos","events_url":"https://api.github.com/users/ktrzeciaknubisa/events{/privacy}","received_events_url":"https://api.github.com/users/ktrzeciaknubisa/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T14:59:00Z","updated_at":"2015-06-01T14:59:00Z","body":"@obastemur more likely app's spawner. \r\n\r\n@purepear Can you identify the path of the problematic process, e.g. with `ps aux | grep jx` ? "}}