Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Author sitemap uses too much memory #56

Closed
jdevalk opened this issue Jun 26, 2013 · 1 comment
Closed

Author sitemap uses too much memory #56

jdevalk opened this issue Jun 26, 2013 · 1 comment
Milestone

Comments

@jdevalk
Copy link
Contributor

jdevalk commented Jun 26, 2013

Generating the author sitemap on a site with a lot of users creates an enormous memory leak, this came in from a user (removed user specific stuff):

Today we have more than 30.000 posts and more than 50.000 users.

I had to increase the PHP memory from 256M to 1024M to create the sitemap, with only posts and users/authors checked (about 80.000 lines as total) to make it work.

Otherwise was giving me 500 error ([Mon Jun 24 14:18:16 2013] [error] [client 24.233.162.52] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /redacted/wp-includes/meta.php on line 574, referer: http://example.com/wp-admin/admin.php?page=wpseo_xml)

As we cannot set the PHP to 1024M, I decided to uncheck the users/authors and set the PHP with 256M and sitemapping only the posts. That way, everything worked fine.

@ghost ghost assigned echoLP Jun 26, 2013
echoLP added a commit that referenced this issue Jun 27, 2013
…temaps, but need to test on a much larger dataset
@jdevalk
Copy link
Contributor Author

jdevalk commented Aug 8, 2014

This has probably been fixed in recent releases.

@jdevalk jdevalk closed this as completed Aug 8, 2014
omarreiss pushed a commit that referenced this issue Feb 24, 2021
* add language

* update trim to function and example in readme
hansjovis pushed a commit that referenced this issue Nov 21, 2022
hansjovis pushed a commit that referenced this issue Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants