{"action":"created","issue":{"url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/956","repository_url":"https://api.github.com/repos/Financial-Times/next-stream-page","labels_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/956/comments","events_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/956/events","html_url":"https://github.com/Financial-Times/next-stream-page/issues/956","id":140222209,"number":956,"title":"Memory usage","user":{"login":"i-like-robots","id":271645,"avatar_url":"https://avatars.githubusercontent.com/u/271645?v=3","gravatar_id":"","url":"https://api.github.com/users/i-like-robots","html_url":"https://github.com/i-like-robots","followers_url":"https://api.github.com/users/i-like-robots/followers","following_url":"https://api.github.com/users/i-like-robots/following{/other_user}","gists_url":"https://api.github.com/users/i-like-robots/gists{/gist_id}","starred_url":"https://api.github.com/users/i-like-robots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-like-robots/subscriptions","organizations_url":"https://api.github.com/users/i-like-robots/orgs","repos_url":"https://api.github.com/users/i-like-robots/repos","events_url":"https://api.github.com/users/i-like-robots/events{/privacy}","received_events_url":"https://api.github.com/users/i-like-robots/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Financial-Times/next-stream-page/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-11T16:03:48Z","updated_at":"2016-04-13T15:58:59Z","closed_at":null,"body":"We're repeatedly bumping into our memory limit in production.\r\n\r\n![screen shot 2016-03-11 at 16 03 27](https://cloud.githubusercontent.com/assets/271645/13707713/d595ce40-e7a2-11e5-98eb-8679cd765adf.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/comments/209523088","html_url":"https://github.com/Financial-Times/next-stream-page/issues/956#issuecomment-209523088","issue_url":"https://api.github.com/repos/Financial-Times/next-stream-page/issues/956","id":209523088,"user":{"login":"bjfletcher","id":733849,"avatar_url":"https://avatars.githubusercontent.com/u/733849?v=3","gravatar_id":"","url":"https://api.github.com/users/bjfletcher","html_url":"https://github.com/bjfletcher","followers_url":"https://api.github.com/users/bjfletcher/followers","following_url":"https://api.github.com/users/bjfletcher/following{/other_user}","gists_url":"https://api.github.com/users/bjfletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/bjfletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjfletcher/subscriptions","organizations_url":"https://api.github.com/users/bjfletcher/orgs","repos_url":"https://api.github.com/users/bjfletcher/repos","events_url":"https://api.github.com/users/bjfletcher/events{/privacy}","received_events_url":"https://api.github.com/users/bjfletcher/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T15:58:59Z","updated_at":"2016-04-13T15:58:59Z","body":"Looks like we shouldn't worry about getting rid of the R14 errors completely, Heroku says:\r\n\r\n> Using small amounts of swap space and infrequent memory swapping are usually not problems. Even when your application hasn’t reached its memory limit, it’s common to see small amounts of memory being swapped to disk as the operating system manages memory and available disk cache.\r\n\r\nhttps://devcenter.heroku.com/articles/dynos#memory-behavior\r\n\r\n> R14 - Memory quota exceeded\r\n> A dyno requires memory in excess of its quota. If this error occurs, the dyno will page to swap space to continue running, which may cause degraded process performance. The R14 error is calculated by total memory swap and rss; cache is not included.\r\n\r\nhttps://devcenter.heroku.com/articles/error-codes#r14-memory-quota-exceeded\r\n\r\nSo, let's try and reduce the limit slightly and see if the app alert \"Memory quota exceeded. There have been n memory errors in the current time period\" will go away. Presumably this alert happens only when the number of R14 errors go over a certain threshold."}}