{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/168935386","pull_request_review_id":97387499,"id":168935386,"diff_hunk":"@@ -140,3 +140,21 @@ This functionality doesn't exist for WordPress sites, but there are a multitude\n Calling external services during regular requests can be a performance problem. The time it takes to initiate the request then send and receive data is time spent waiting by visitors. Since PHP executes instructions sequentially, no other operation can be executed while the external connection is active. Also, if the external service goes down, your site will go down along with it.\n \n Sometimes these are necessary (e.g. getting a Twitter feed). The recommendation here is to avoid making external calls during regular requests as much as possible. As an alternative, you can make these calls via cron and store them in the database. The data can be refreshed with the desired frequency. The advantage is that even if the external service is slow or goes down your site won't be affected.\n+\n+## Memory Errors\n+An _Allowed memory size of \\<bytes\\> exhausted_ or _Out of Memory_ error means that the application's PHP Memory Limit is trying to allocate more memory than the maximum amount of memory any single PHP request can utilize. Memory limits vary from between [plans](/docs/platform-resources/), so sites that handle complex data, or with very large codebases will need more. Exceeding this limit will kill the process, resulting in a failed request from the user's perspective. ","path":"source/_docs/debug-slow-performance.md","position":6,"original_position":6,"commit_id":"727262fa8d5055176a38ac5f2cb37f7813fd4486","original_commit_id":"727262fa8d5055176a38ac5f2cb37f7813fd4486","user":{"login":"dustinleblanc","id":3948808,"avatar_url":"https://avatars3.githubusercontent.com/u/3948808?v=4","gravatar_id":"","url":"https://api.github.com/users/dustinleblanc","html_url":"https://github.com/dustinleblanc","followers_url":"https://api.github.com/users/dustinleblanc/followers","following_url":"https://api.github.com/users/dustinleblanc/following{/other_user}","gists_url":"https://api.github.com/users/dustinleblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinleblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinleblanc/subscriptions","organizations_url":"https://api.github.com/users/dustinleblanc/orgs","repos_url":"https://api.github.com/users/dustinleblanc/repos","events_url":"https://api.github.com/users/dustinleblanc/events{/privacy}","received_events_url":"https://api.github.com/users/dustinleblanc/received_events","type":"User","site_admin":false},"body":"Size of the codebase is not super relevant, but I guess the total amount of loaded functions/modules/plugins will have an effect. I would consider the right way to address this would be more like:\r\n\r\n> Memory limits vary between [plans](/docs/platform-resources/), so sites that handle complex or large data sets, use many modules or plugins, or use memory-intensive features will need to plan accordingly and obtain the proper plan to avoid memory overruns. Exceeding this limit will kill the process, resulting in a failed request from the user's perspective. These limits are _not_ configurable within plans.\r\n","created_at":"2018-02-17T23:12:24Z","updated_at":"2018-02-17T23:15:42Z","html_url":"https://github.com/pantheon-systems/documentation/pull/3373#discussion_r168935386","pull_request_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/168935386"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/3373#discussion_r168935386"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373","id":169233087,"html_url":"https://github.com/pantheon-systems/documentation/pull/3373","diff_url":"https://github.com/pantheon-systems/documentation/pull/3373.diff","patch_url":"https://github.com/pantheon-systems/documentation/pull/3373.patch","issue_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3373","number":3373,"state":"open","locked":false,"title":"Memory Errors","user":{"login":"thomas-thackery","id":536441,"avatar_url":"https://avatars0.githubusercontent.com/u/536441?v=4","gravatar_id":"","url":"https://api.github.com/users/thomas-thackery","html_url":"https://github.com/thomas-thackery","followers_url":"https://api.github.com/users/thomas-thackery/followers","following_url":"https://api.github.com/users/thomas-thackery/following{/other_user}","gists_url":"https://api.github.com/users/thomas-thackery/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-thackery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-thackery/subscriptions","organizations_url":"https://api.github.com/users/thomas-thackery/orgs","repos_url":"https://api.github.com/users/thomas-thackery/repos","events_url":"https://api.github.com/users/thomas-thackery/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-thackery/received_events","type":"User","site_admin":false},"body":"Closes #3359 \r\n\r\n## Effect\r\nPR includes the following changes:\r\n- Creates documentation to assist developers in addressing memory issues\r\n\r\n## Remaining Work\r\n- [ ] Consider mention of New Relic\r\n- [ ] Wordpress assistance, e.g. https://codex.wordpress.org/Debugging_in_WordPress.\r\n- [ ] Consider including scope reference\r\n","created_at":"2018-02-14T21:57:14Z","updated_at":"2018-02-17T23:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a12cbb3937ca3fca31e029e1ba0977a98e46f1b5","assignee":{"login":"alexfornuto","id":2349184,"avatar_url":"https://avatars3.githubusercontent.com/u/2349184?v=4","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexfornuto","id":2349184,"avatar_url":"https://avatars3.githubusercontent.com/u/2349184?v=4","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"ilovelamp","id":24276107,"avatar_url":"https://avatars2.githubusercontent.com/u/24276107?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovelamp","html_url":"https://github.com/ilovelamp","followers_url":"https://api.github.com/users/ilovelamp/followers","following_url":"https://api.github.com/users/ilovelamp/following{/other_user}","gists_url":"https://api.github.com/users/ilovelamp/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovelamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovelamp/subscriptions","organizations_url":"https://api.github.com/users/ilovelamp/orgs","repos_url":"https://api.github.com/users/ilovelamp/repos","events_url":"https://api.github.com/users/ilovelamp/events{/privacy}","received_events_url":"https://api.github.com/users/ilovelamp/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":704748517,"url":"https://api.github.com/repos/pantheon-systems/documentation/labels/CSE","name":"CSE","color":"d4c5f9","default":false},{"id":640865840,"url":"https://api.github.com/repos/pantheon-systems/documentation/labels/help%20wanted","name":"help wanted","color":"fef2c0","default":true},{"id":836615230,"url":"https://api.github.com/repos/pantheon-systems/documentation/labels/team-alex","name":"team-alex","color":"195984","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3373/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/727262fa8d5055176a38ac5f2cb37f7813fd4486","head":{"label":"pantheon-systems:3359-memory","ref":"3359-memory","sha":"727262fa8d5055176a38ac5f2cb37f7813fd4486","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/documentation/deployments","created_at":"2014-11-18T19:26:21Z","updated_at":"2018-02-14T22:55:43Z","pushed_at":"2018-02-16T23:35:50Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":188912,"stargazers_count":66,"watchers_count":66,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":203,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":203,"open_issues":72,"watchers":66,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"716febd5f89a3df883ed6da1cb1a1d0dbe1eca85","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/documentation/deployments","created_at":"2014-11-18T19:26:21Z","updated_at":"2018-02-14T22:55:43Z","pushed_at":"2018-02-16T23:35:50Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":188912,"stargazers_count":66,"watchers_count":66,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":203,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":203,"open_issues":72,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/3373"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/3373"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/3373/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/3373/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/documentation/statuses/727262fa8d5055176a38ac5f2cb37f7813fd4486"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dustinleblanc"}}