{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1704","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1704/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1704/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1704/events","html_url":"https://github.com/wp-cli/wp-cli/issues/1704","id":60415702,"number":1704,"title":"Potential memory leaks with WXR export","user":{"login":"stevegrunwell","id":233836,"avatar_url":"https://avatars.githubusercontent.com/u/233836?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegrunwell","html_url":"https://github.com/stevegrunwell","followers_url":"https://api.github.com/users/stevegrunwell/followers","following_url":"https://api.github.com/users/stevegrunwell/following{/other_user}","gists_url":"https://api.github.com/users/stevegrunwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegrunwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegrunwell/subscriptions","organizations_url":"https://api.github.com/users/stevegrunwell/orgs","repos_url":"https://api.github.com/users/stevegrunwell/repos","events_url":"https://api.github.com/users/stevegrunwell/events{/privacy}","received_events_url":"https://api.github.com/users/stevegrunwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/scope:command","name":"scope:command","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-09T21:47:19Z","updated_at":"2015-04-28T20:04:41Z","closed_at":null,"body":"I'm currently working on exporting a rather large data set (~225,000 posts/attachments), split into 5MB chunks via the `wp export` command with the `--max_file_size=5` argument. Even when I limit the post dates to a very narrow range, the memory used by the process will continue to grow until it hits PHP's limit (6GB on this particular server), at which point the export process will be killed.\r\n\r\nAs the process runs (and continues to write files–usually 12-15 before it crashes), the memory consumed by the process continues to grow; I'd expect some holdover as files are split, but not 6GB-worth."},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/97191292","html_url":"https://github.com/wp-cli/wp-cli/issues/1704#issuecomment-97191292","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1704","id":97191292,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T20:04:41Z","updated_at":"2015-04-28T20:04:41Z","body":"> I am running into this issue as well. 3 import files totaling several hundred megs.\r\n\r\nWhich version of WP-CLI are you using?"}}