• Hello

    Thanks for your attention.
    When I go to the comments of one of my sub-domains the CPU usage goes to 99.9 and the VPS goes down.

    Those are just 200 comments.
    What’s the reason?

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

    (@macmanx)

    Volunteer Moderator

    Unless the resources are very poorly allocated on the VPS, 200 comments is by far not enough to knock it offline on its own.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Seventeen theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter yeknafar

    (@yeknafar)

    Thanks for your answer. I did but no result.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    What does your server error log report when the site goes down?

    Thread Starter yeknafar

    (@yeknafar)

    The apache log shows this:

    If it’s messy I send a picure:

    
    [Thu Aug 09 23:53:51.624107 2018] [:error] [pid 1811:tid 139840091805440] [client 162.158.62.38:38257] PHP Warning: Error while sending QUERY packet. PID=16515 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.637990 2018] [:error] [pid 2557:tid 139840150554368] [client 108.162.219.111:38153] PHP Warning: Error while sending QUERY packet. PID=16527 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.674217 2018] [:error] [pid 1589:tid 139840254838528] [client 162.158.63.93:38079] PHP Warning: Error while sending QUERY packet. PID=16396 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.721415 2018] [:error] [pid 20975:tid 139840100198144] [client 162.158.63.135:38175] PHP Warning: Error while sending QUERY packet. PID=16520 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.725440 2018] [:error] [pid 2557:tid 139840125376256] [client 173.245.52.180:38147] PHP Warning: Error while sending QUERY packet. PID=16473 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.740133 2018] [:error] [pid 20975:tid 139840091805440] [client 162.158.62.32:38199] PHP Warning: Error while sending QUERY packet. PID=16491 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.744471 2018] [:error] [pid 9572:tid 139840133768960] [client 162.158.62.164:38023] PHP Warning: Error while sending QUERY packet. PID=16402 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.748034 2018] [:error] [pid 1589:tid 139840075020032] [client 162.158.62.188:38093] PHP Warning: Error while sending QUERY packet. PID=16458 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.763123 2018] [:error] [pid 20975:tid 139840024663808] [client 173.245.52.120:38191] PHP Warning: Error while sending QUERY packet. PID=16518 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.788244 2018] [:error] [pid 1811:tid 139840049841920] [client 162.158.63.249:38253] PHP Warning: Error while sending QUERY packet. PID=16508 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.791574 2018] [:error] [pid 2557:tid 139840016271104] [client 162.158.62.62:38151] PHP Warning: Error while sending QUERY packet. PID=16454 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.830379 2018] [:error] [pid 20975:tid 139840125376256] [client 173.245.52.156:38209] PHP Warning: Error while sending QUERY packet. PID=16494 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:51.993218 2018] [:error] [pid 1811:tid 139840007878400] [client 162.158.62.200:38231] PHP Warning: Error while sending QUERY packet. PID=16499 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.022539 2018] [:error] [pid 1589:tid 139839991092992] [client 162.158.63.39:38071] PHP Warning: Error while sending QUERY packet. PID=16394 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.061966 2018] [:error] [pid 1811:tid 139839991092992] [client 162.158.62.26:38211] PHP Warning: Error while sending QUERY packet. PID=16468 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.127989 2018] [:error] [pid 1811:tid 139840066627328] [client 108.162.219.249:38215] PHP Warning: Error while sending QUERY packet. PID=16469 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.249070 2018] [:error] [pid 1811:tid 139840158947072] [client 162.158.62.152:38219] PHP Warning: Error while sending QUERY packet. PID=16470 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.252676 2018] [:error] [pid 1811:tid 139840108590848] [client 108.162.219.213:38227] PHP Warning: Error while sending QUERY packet. PID=16497 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.267158 2018] [:error] [pid 1811:tid 139840150554368] [client 173.245.52.84:38233] PHP Warning: Error while sending QUERY packet. PID=16500 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.299956 2018] [:error] [pid 1811:tid 139839999485696] [client 108.162.219.219:38255] PHP Warning: Error while sending QUERY packet. PID=16509 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.304723 2018] [:error] [pid 1589:tid 139840175732480] [client 162.158.62.248:38069] PHP Warning: Error while sending QUERY packet. PID=16431 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.734295 2018] [:error] [pid 2557:tid 139840108590848] [client 173.245.52.138:38113] PHP Warning: Error while sending QUERY packet. PID=16448 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.734831 2018] [:error] [pid 2557:tid 139840007878400] [client 108.162.219.237:38159] PHP Warning: Error while sending QUERY packet. PID=16477 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.735088 2018] [:error] [pid 2557:tid 139840024663808] [client 162.158.63.231:38141] PHP Warning: Error while sending QUERY packet. PID=16472 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.735378 2018] [:error] [pid 2557:tid 139840142161664] [client 162.158.62.242:38111] PHP Warning: Error while sending QUERY packet. PID=16445 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.754340 2018] [:error] [pid 20975:tid 139840175732480] [client 108.162.219.93:38177] PHP Warning: Error while sending QUERY packet. PID=16484 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.754615 2018] [:error] [pid 20975:tid 139839999485696] [client 162.158.62.98:38179] PHP Warning: Error while sending QUERY packet. PID=16485 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:52.754876 2018] [:error] [pid 20975:tid 139840049841920] [client 108.162.219.45:38205] PHP Warning: Error while sending QUERY packet. PID=16519 in /home/salamzab/public_html/jadid/conversation/injas/wp-includes/wp-db.php on line 1924, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.585376 2018] [core:error] [pid 1589:tid 139840066627328] [client 162.158.62.74:38339] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.600489 2018] [core:error] [pid 1589:tid 139840083412736] [client 108.162.219.183:38361] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.602215 2018] [core:error] [pid 1589:tid 139840158947072] [client 162.158.63.153:38359] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.603737 2018] [core:error] [pid 1589:tid 139840058234624] [client 162.158.62.236:38355] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.605150 2018] [core:error] [pid 1589:tid 139839999485696] [client 162.158.62.188:38357] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:54.606512 2018] [core:error] [pid 1589:tid 139840049841920] [client 162.158.62.50:38353] End of script output before headers: index.php, referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    [Thu Aug 09 23:53:55.158606 2018] [:error] [pid 9572:tid 139840150554368] [client 162.158.62.56:38321] [client 162.158.62.56] ModSecurity: collections_remove_stale: Failed deleting collection (name "ip", key "51.38.65.209_5a9ed699074547eea0e786277f7a2201aa226525"): Internal error (specific information not available) [hostname "conversation.salamzaban.com"] [uri "/index.php"] [unique_id "W2yUvyqPvgmEZupXV4mIuwAAAEU"], referer: https://conversation.salamzaban.com/wp-admin/edit-comments.php
    
    • This reply was modified 5 years, 8 months ago by James Huff.
    • This reply was modified 5 years, 8 months ago by Jan Dembowski. Reason: Fixed formatting
    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Ok, that could just be PHP hitting its memory allocation.

    Here are two ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 256M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 256M to your .htaccess file.

    Which one you use depends on your server’s configuration, so you’ll need to check your documentation for that, but more than likely you’ll be able to use the first method.

    I know it’s tempting to allocate all of the memory on your server to PHP, but you’ll need most of it for other processes. 256M should be more than enough.

    Thread Starter yeknafar

    (@yeknafar)

    I really thank you for your answer.
    I used the first method but no result.
    Maybe I have to increase “max_allowed_packet” too.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    It’s possible, give that a try.

    Thread Starter yeknafar

    (@yeknafar)

    I increased max_allowed_packet to 500 M and memory_limit = 256M but no result.

    Thread Starter yeknafar

    (@yeknafar)

    Now it says:

    PHP Warning: Cannot modify header information – headers already sent by (output started at *****wp-includes/functions.php:3743)in *****wp-includes/functions.php on line 3782

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Ah, there’s the real problem.

    You have unexpected whitespace (either a space or an entire line) on line 3743 of the /wp-includes/functions.php file. See this guide for more info.

    Alternatively, replacing the file with one from a fresh download may resolve the issue.

    Thread Starter yeknafar

    (@yeknafar)

    I replaced it but no result. I even changed memory_limit = 256M and max_allowed_packet:1024 but I have the same problems. 😀

    That’s strange 🙂

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘My VPS goes down when I go to comments!!!’ is closed to new replies.