{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/2672","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/2672/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/2672/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/2672/events","html_url":"https://github.com/strongloop/loopback/issues/2672","id":173141294,"number":2672,"title":"loopback high CPU and high bandwith traffic to mongoDB","user":{"login":"sirmadboy","id":6962141,"avatar_url":"https://avatars.githubusercontent.com/u/6962141?v=3","gravatar_id":"","url":"https://api.github.com/users/sirmadboy","html_url":"https://github.com/sirmadboy","followers_url":"https://api.github.com/users/sirmadboy/followers","following_url":"https://api.github.com/users/sirmadboy/following{/other_user}","gists_url":"https://api.github.com/users/sirmadboy/gists{/gist_id}","starred_url":"https://api.github.com/users/sirmadboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirmadboy/subscriptions","organizations_url":"https://api.github.com/users/sirmadboy/orgs","repos_url":"https://api.github.com/users/sirmadboy/repos","events_url":"https://api.github.com/users/sirmadboy/events{/privacy}","received_events_url":"https://api.github.com/users/sirmadboy/received_events","type":"User","site_admin":false},"labels":[{"id":172069873,"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":{"login":"davidcheung","id":1787590,"avatar_url":"https://avatars.githubusercontent.com/u/1787590?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcheung","html_url":"https://github.com/davidcheung","followers_url":"https://api.github.com/users/davidcheung/followers","following_url":"https://api.github.com/users/davidcheung/following{/other_user}","gists_url":"https://api.github.com/users/davidcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcheung/subscriptions","organizations_url":"https://api.github.com/users/davidcheung/orgs","repos_url":"https://api.github.com/users/davidcheung/repos","events_url":"https://api.github.com/users/davidcheung/events{/privacy}","received_events_url":"https://api.github.com/users/davidcheung/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidcheung","id":1787590,"avatar_url":"https://avatars.githubusercontent.com/u/1787590?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcheung","html_url":"https://github.com/davidcheung","followers_url":"https://api.github.com/users/davidcheung/followers","following_url":"https://api.github.com/users/davidcheung/following{/other_user}","gists_url":"https://api.github.com/users/davidcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcheung/subscriptions","organizations_url":"https://api.github.com/users/davidcheung/orgs","repos_url":"https://api.github.com/users/davidcheung/repos","events_url":"https://api.github.com/users/davidcheung/events{/privacy}","received_events_url":"https://api.github.com/users/davidcheung/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-25T08:21:51Z","updated_at":"2016-11-21T10:41:48Z","closed_at":null,"body":"hi, currently i'm having an issue with loopback and mongodb database. there are two problems that i want to ask:\n1. my loopback service consuming high CPU, almost 100% everytime even when idle. it make my app run really slow when retrieving data. I already apply cluster on my server but it doesn't help, every process consuming 100% cpu on each core. is there any way to lower cpu process?\n2. the traffic between loopback service and mongodb server is high, around 1,5-2 mb/s each process even when idle. so assuming when i set my service into 4 clusters, it will use around 6 -8mb/s bandwith. is it normal?\n\nI'm running loopback and mongodb on separated server on google cloud engine. my strongloop version is 6.0.1 and node version 6.4.0. thanks\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/261902891","html_url":"https://github.com/strongloop/loopback/issues/2672#issuecomment-261902891","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/2672","id":261902891,"user":{"login":"sirmadboy","id":6962141,"avatar_url":"https://avatars.githubusercontent.com/u/6962141?v=3","gravatar_id":"","url":"https://api.github.com/users/sirmadboy","html_url":"https://github.com/sirmadboy","followers_url":"https://api.github.com/users/sirmadboy/followers","following_url":"https://api.github.com/users/sirmadboy/following{/other_user}","gists_url":"https://api.github.com/users/sirmadboy/gists{/gist_id}","starred_url":"https://api.github.com/users/sirmadboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirmadboy/subscriptions","organizations_url":"https://api.github.com/users/sirmadboy/orgs","repos_url":"https://api.github.com/users/sirmadboy/repos","events_url":"https://api.github.com/users/sirmadboy/events{/privacy}","received_events_url":"https://api.github.com/users/sirmadboy/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T10:41:48Z","updated_at":"2016-11-21T10:41:48Z","body":"what is the purpose of this function https://github.com/strongloop/loopback/blob/a0bc2041599343d7a1b95f16fab466b3c583a900/lib/persisted-model.js#L1610 ? \r\nfrom https://github.com/strongloop/loopback/blob/a0bc2041599343d7a1b95f16fab466b3c583a900/lib/persisted-model.js#L1587, I can see that `cleanupInterval` is set either `Model.settings.changeCleanupInterval` or 30 seconds. but right now I have no idea how to increase `cleanupInterval` except by hardcoding it. because it makes my server CPU runs so high if it always calls `rectifyAllChanges` for every 30 seconds."}}
{"actor":{"display_login":"sirmadboy"}}