Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   High CPU usage (http://www.mysidiaadoptables.com/forum/showthread.php?t=2368)

Nemesis 09-01-2011 09:00 PM

High CPU usage
 
Is there ever a time when the script goes hay wire and uses all the cpu? I have a client who's site was suspended due to high cpu usage. The server admin said it was affecting everyone's sites, as I did have some pm's on sites being down, and he went ahead and suspended it. Not a problem as I can reinstate it, but don't want it to happen again. History has a few hundred of these "Updating disk usage in my sql"

I currently have 42 clients sign ups/emails and 25 sites right now remain active. No other sites having these issues as i have been checking the logs. And I am no where near over capacity on this server. so why did this one site use up all resources a few 100 times in a day? And what should I do reinstall the script?

SilverDragonTears 09-01-2011 09:04 PM

This was the site I was working on and have no idea why it would do that. I work on my own site a million times a day and have never had this issue.

Nemesis 09-01-2011 09:29 PM

it is rather weird im thinking it was just a glitch and no ones fault I will reinstate it tomorrow and see if i can find out anything

Chibi_Chicken 09-01-2011 10:05 PM

Could it be caused by heavy use of GD image library?

I know if you use large images in my custom pet mod that it will slowdown, and take a while to display the preview then the final adopt.
How much CPU time it is taking I dont know. I am unsure how to test it on a local server.

SilverDragonTears 09-01-2011 10:11 PM

I don't think he's using that... but I'm not sure.

Nemesis 09-02-2011 09:29 AM

site is re activated I am gonna see if i can get to the bottom of this. Only thing i can think of is a bunch of people on at same time adopting a lot and leveling each others a lot.

Slix 09-02-2011 08:31 PM

It very well could be the signature images. I had my server hanging for a while, so I took out most of the code on the siggy.php file to only leave the part where it actually checks the id and displays the image... it never hung after that.

Try that, if you're risky and wanna try it. XD

Nemesis 09-03-2011 10:33 AM

sounds interesting, will wait for another coders thoughts on that though.

BMR777 09-05-2011 11:37 AM

I'm also fairly positive it's siggy.php. Also, check your site's vote_voters table in the database. Any records that are over 24 hours old can probably be safely deleted and a lot of records here could cause slowdowns as every time someone clicks a pet it has to check this table, so more than 50,000 records here indicates this may be a source of slowness.

Nemesis 09-06-2011 04:31 PM

thank you guys for helping it did happen again. slix may I see your siggy.php please?


All times are GMT -5. The time now is 07:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.