• I use WordPress Multisite v5.2.2 and have more than 3 000 subblogs.

    If I go to the network admin /wp-admin/network/, I get 500 Error. In the logs I see 2 errors:

    
    PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32768 bytes) in /wordpress/wp-includes/pomo/streams.php on line 205
    
    
    PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 655360 bytes) in /wordpress/wp-includes/wp-db.php on line 1059
    

    Is it normal, than WP need 1 Gb memory, or is there a bug?

    • This topic was modified 5 years, 7 months ago by krut1.
    • This topic was modified 5 years, 7 months ago by krut1.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    A single WordPress site shouldn’t need 1 GB of allocated memory, maybe just 128 MB on a bad day for a really popular site, or 256 MB on a bad day for a really popular site with no caching.

    But 3,000 sites running simultaneously on the same network? Yeah, I can see how that might need more than 1 GB easily.

    You might want to also check the time at which the memory error occurred as that may reveal additional information on what might be happening and other options that you may need to take in order to resolve the issue. Especially if the site is running into that memory error during database queries, etc.

    For example, the site could be hitting that memory issue if a plugin/theme is doing a database dump, for backup purposes, etc. And if so, could indicate an issue with the server configuration. Especially if the server is using MariaDB and PHP 7.x+ and doesn’t have it patched (set up correctly) for that configuration.

    • This reply was modified 5 years, 6 months ago by Andrew Nevins.
    Thread Starter krut1

    (@krut1)

    @macmanx yes, all of the sites work in one network.

    Thread Starter krut1

    (@krut1)

    @thomas4ithemes thanks for the answer. What do you mean with

    if the server is using MariaDB and PHP 7.x+ and doesn’t have it patched (set up correctly) for that configuration

    ?

    Do you have any recommender config for this case?

    • This reply was modified 5 years, 6 months ago by krut1.
    Moderator James Huff

    (@macmanx)

    yes, all of the sites work in one network.

    Yes, I know what a multisite network is. ??

    Me question was rhetorical.

    I can see how a multisite network of 3,000 sites could easily need more than 1 GB of RAM at times.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allowed memory size in WP Core’ is closed to new replies.