CPU spikes

I just did a search for a solution to this but all I could really find was lots of people experiencing this issue but no real solution.

There was one suggestion by dolphin_jay who said the following:


So the fix is as followed:

Open   /inc/security.inc.php

And replace line 5 from   if (-1 != $iImpactLog || -1 != $iImpactBlock) {

To    if ((-1 != $iImpactLog || -1 != $iImpactBlock) && !defined('BX_DOL_CRON_EXECUTE')) {

Save the file

Open   /periodic/cron.php

Remove  define('BX_DOL_CRON_EXECUTE', '1');

from line 28 and move it to line 21 just under

$GLOBALS['bx_profiler_disable'] = true;

Save the file.

Now keep in mind this has nothing to do with xml.php and the way its called.

This has to do with  "PHPIDS can cause crontab to consuming more CPU resources that it needs, so disabling PHPIDS for cron execution can save some CPU resources"

According to the ticket from Alex.

Also keep in mind that phpids will be disabled be defualt in upcoming versions of dolphin from my understanding.


Has anyone tried this out yet?

Or are there any other suggestions?

Quote · 6 May 2010

If I remember right this is not in d7.0.0, but if you have d7.0.1 it has been applied in the update/new version. I haven't noticed anything better or worse, it seems the same, but I don't watch the resource stats 24-7 either.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 6 May 2010

Hi gameutopia

Yes I do have 7.0.1 and if anything, the spikes have gotten worse. I have also just moved to a VPS with the new 7.0.1 patch and my hosting company said that it's even wreaking havoc on that.

It needs to be sorted asap as at this rate I'll soon need a server with the capacity to answer the Ultimate Question of Life, the Universe, and Everything.

Quote · 6 May 2010

I just checked those 2 files and they have been applied via the 7.0.1 patch but that was obviously not the solution.

@AlexT......do you have any other suggestions?

@Andrew.......has this problem been given the attention and resources it really requires? You would think that with so many people mentioning this CPU spike problem from over a month ago, that this would have been resolved by now.

I am assuming that you have some sort of ranking system based upon urgency for the many bugs needing resolving. Would be nice to see what this list looks like.

Anyway, this spiking was the reason my site was suspended a couple of times as it caused the shared server my site was on to crash. Hence the reason I am now on a VPS. Saying that, the server my VPS is on is only 1 quarter full which will mean that as that server reaches maximum capacity, the problem should only get worse.

It doesn't look very professional when your site continually crashes.

Might I suggest you set up Boonex.com to simulate the inner workings of Dolphin and have the Simple Messenger running as well as a Chat Room. It might help push things along if Boonex.com was spiking too.

Just my two cents worth  :)

Quote · 6 May 2010

OK. This is not funny anymore. Just heard from my hosting company and they sent me this:


 /flash/XML.php?module=im&action=updateInvite&recipient=2484
You'll need to disable that.

30517 xxxxxxxx   20   4  133m  24m 6844 R 94.8  2.4   0:00.48 php
30508 xxxxxxxx   19   4  133m  24m 6792 R 92.9  2.4   0:00.49 php
30518 xxxxxxxx   20   4  133m  23m 6768 R 86.9  2.3   0:00.44 php
30526 xxxxxxxx   19   4  132m  23m 6768 R 77.1  2.3   0:00.39 php
30533 xxxxxxxx   20   4  127m  17m 6512 R 59.3  1.8   0:00.30 php
30535 xxxxxxxx   19   4  125m  15m 6456 R 41.5  1.5   0:00.21 php
30555 xxxxxxxx   21   4  124m  14m 6484 R 39.5  1.4   0:00.20 php
30536 xxxxxxxx   21   4  124m  14m 6456 R 37.5  1.4   0:00.19 php
30538 xxxxxxxx   20   4  124m  14m 6456 R 35.6  1.4   0:00.18 php

Those show php processes running for 48 seconds
That is not regular and I strongly suggest looking into it
We've been forced to shut down the vPS as the CPU usage was taking down the entire server


 

So what does that updateInvite do? What functionality will I lose if I disable it?

 

Has anyone found a solution yet?

Quote · 7 May 2010

I had a similar issue with resource useage. My test installation was consuming over 8% of the CPU for periods of over a minute - a violation of my WSP's TOS (it's on a shared server). Our solution was simply to reduce the frequency of the cron. This seemed to satisfy them.

BUT I would hazard a guess that this will not help you.

It looks like an invite is being sent out to user 2484, but is failing for some reason - check your RayImPendings table to see if there are any messages for user 2484.

HTH/DM

Dolphin - Ajax Masturbation
Quote · 7 May 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.