WMultisite is oveloaded

hey guys we have a multisite setup on a high end server (we host the servers on our datacenter) curently with 20 sites and we have seen that the wp install show as a exhausted memory – the usual cant allocate xx bytes (even the memory on php.ini is on 512M)

any advice on how we can optimize it?

WordPress memory usage exceeded 128 MB

WordPress peak memory usage: 450.94 MB

Number of database queries: 3153

  • Timothy
    • Chief Pigeon

    Hey YourNextHost.

    What are you trying to do when you get these memory issues?

    Downloading files through PHP like MarketPress does when items are purchased could affect your memory. Other plugins could do this here.

    When you memory is peaking what processes are running on the server? Whats using the most? Any specific file?

    Could it be plugin related? Perhaps deactivate them all and keep testing until you find the issue cropping back up.

    Let us know how you get on. :slight_smile:

    Take care.

  • Incite Minds Ltd
    • Flash Drive

    Hi Timothy

    Was just debugging WP and i can across the below results which could mean that is plugins errors

    Notice: Undefined index: key in /home/domain/public_html/wp-content/mu-plugins/upgrades-framework.php on line 38

    Notice: Use of undefined constant BpfbInstaller - assumed 'BpfbInstaller' in /home/domain/public_html/wp-content/plugins/buddypress-activity-plus/bpfb.php on line 67

    Notice: Undefined index: key in /home/domain/public_html/wp-content/plugins/post-indexer/post-indexer.php on line 41

    Notice: Undefined index: key in /home/domain/public_html/wp-content/plugins/signup-language/signup-language.php on line 41

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: Undefined index: key in /home/domain/public_html/wp-content/plugins/tips/tips.php on line 54

    Notice: Undefined index: updated in /home/domain/public_html/wp-content/plugins/tips/tips.php on line 57

    Notice: Undefined index: activated in /home/domain/public_html/wp-content/plugins/tips/tips.php on line 57

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/domain/public_html/wp-content/mu-plugins/upgrades-framework.php:38) in /home/domain/public_html/wp-content/plugins/wpmu-dev-facebook/lib/external/facebook.php on line 37

    Notice: Undefined index: key in /home/domain/public_html/wp-content/plugins/bp-group-calendar/groupcalendar/bp-group-calendar.php on line 23

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in domain for more information. (This message was added in version 3.3.) in /home/domain/public_html/wp-includes/functions.php on line 3587

    Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in domain for more information. (This message was added in version 3.3.) in /home/domain/public_html/wp-includes/functions.php on line 3587

    Notice: Undefined property: automessage::$debug in /home/domain/public_html/wp-content/plugins/automessage/classes/class.automessage.php on line 1297

    Notice: Trying to get property of non-object in /home/domain/public_html/wp-content/plugins/bp-group-calendar/groupcalendar/bp-group-calendar.php on line 116

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/domain/public_html/wp-includes/functions.php on line 3551

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/domain/public_html/wp-includes/functions.php on line 3551

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/domain/public_html/wp-includes/functions.php on line 3551

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/domainpublic_html/wp-includes/functions.php on line 3551

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/options-functions.php on line 1177

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3738

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3754

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3771

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3788

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3805

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3822

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3838

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3854

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3870

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/_inc/functions/services-functions.php on line 3887

    Notice: is_site_admin is deprecated since version 3.0! Use is_super_admin() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: Undefined index: anti-splog/anti-splog.php in /home/domain/public_html/wp-content/plugins/wpmudev-updates/update-notifications.php on line 359

    Notice: Trying to get property of non-object in /home/domain/public_html/wp-content/plugins/wpmudev-updates/update-notifications.php on line 359

    Notice: Undefined index: buddypress-activity-plus/bpfb.php in /home/domain/public_html/wp-content/plugins/wpmudev-updates/update-notifications.php on line 359

    Notice: Trying to get property of non-object in /home/domain/public_html/wp-content/plugins/wpmudev-updates/update-notifications.php on line 359

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/functions.php on line 1179

    Notice: Undefined index: page in /home/domain/public_html/wp-content/themes/blogs-mu/functions.php on line 1259

    Notice: WP_User->id was called with an argument that is deprecated since version 2.1! Use WP_User->ID instead. in /home/domain/public_html/wp-includes/functions.php on line 3551

    Notice: get_usermeta is deprecated since version 3.0! Use get_user_meta() instead. in /home/domain/public_html/wp-includes/functions.php on line 3467

    Notice: Undefined index: page in /home/domain/public_html/wp-content/plugins/wpmudev-updates/notifications.php on line 53

    Notice: Undefined variable: msg in /home/domain/public_html/wp-content/plugins/wpmudev-updates/notifications.php on line 76

  • Timothy
    • Chief Pigeon

    Hey again. :slight_smile:

    Most of those are nothing to be concerned about, they are mostly notices.

    I don’t see any memory errors there?

    The following though:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/domain/public_html/wp-content/mu-plugins/upgrades-framework.php:38) in /home/domain/public_html/wp-content/plugins/wpmu-dev-facebook/lib/external/facebook.php on line 37

    Whats this plugin:

    wp-content/mu-plugins/upgrades-framework.php

    Looks like there might be a rogue space in the code. You could remove the file and test again.

    Take care.

  • Erik
    • Site Builder, Child of Zeus

    Just came across this thread while debugging and thought I would leave this here

    Yah, I got the same error with upgrades framework.. probably a blank line before or after a php tag somewhere it shouldn’t be…

    I believe that is an old version of the wpmu dev upgrade notification plugin… remove that and install new copy in /wp-plugins/ not /mu-plugins/