Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Massive CPU usage

4 Posts
2 Users
0 Reactions
2,099 Views
(@pixual)
Member Customer
Joined: 7 years ago
Posts: 28
Topic starter  

Hello,

We had a massive CPU usage problem this morning. It was clear it was due to wpDiscuz because the process window on our server had a number of these lines showing heavy CPU usage:

usr/local/php72/bin/php wpdiscuz-ajax.php

We have a dedicated server, 4 core, 8 thread CPU and 32gb of RAM. We do have a lot of plugins running and on Saturday AM we have as many as 500 concurrent users on the site. We've been using wpDiscuz for a while and while it always used up some CPU power, it never went this high. This is the first weekend using our new dedicated server.

We were averaging 150% to 200% of CPU for most of the morning. The website was not available on/off for most of the morning costing us quite a bit if ad revenue.
Here are the steps I took:
1) First, I stopped live updates.
2) Then I disabled a few of the add-ons but the CPU usage continued.
3) Finally I disabled the plugin and the rest of the add-ons and emptied our cache, OPcache and object cache.
4) This finally started to calm the CPU after a few minutes.

Strangely, I am still seeing the php wpdiscuzz-ajax.php showing up in my process list even though the plugin has been disabled now for at least 2 hours!!


   
Quote
Topic Tags
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6444
 

Hi @pixual,

Could you please leave the example URL to allow us to check it. 


   
ReplyQuote
(@pixual)
Member Customer
Joined: 7 years ago
Posts: 28
Topic starter  

Hello Astghik

 

I had to deactivate the plugin because the site was non-functional.

I did figure out the php wpdiscuzz-ajax.php issue! The are running Apache with suexec. suexec was caching the php file and that's why it kept appearing in the process logs. I had to go in with SFTP and manually delete the file from the suexec cache. One part solved.

I can probably reactivate the plugin but I am sure it will be working fine during the week. Our traffic about 10%-20% of what it is Saturday morning. On Saturday we have over 500 and as many as 700 active users when measured in real time. Do you know if there is a limit is on active users?

Please let me know if you need me to turn the plugin back on. the site can be found at https://www.rvtravel.com

 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6444
 

@pixual

Could you please enable the "Use WordPress native AJAX functions" option and check again? 

The option is located in the Dashboard > Comments > Settings > General admin page. 

 


   
ReplyQuote
Share:
Scroll to top