Page 1 of 1
using up to 100% cpu
Posted: Thu Jun 14, 2007 12:44 pm
by johnmck
I've cmsms installed on our local server here.
Just looking at cpu usage when we load a page. It jumps to 100% for a second! Worrying if we install this on a website with alot of traffic - any hints on how we can lower this?
has anybody else experienced this - what are your views / solutions
Re: using up to 100% cpu
Posted: Thu Jun 14, 2007 1:21 pm
by skypanther
If your server doesn't have much else going on, the OS will give all the CPU's attention to PHP, MySQL, and your web server. If it's busy with many tasks, it will allocate the CPU appropriately. I have run CMSMS in large shared hosting environments (hundreds of web sites on a single server) and have never had a problem.
Tim
Re: using up to 100% cpu
Posted: Fri Jun 15, 2007 2:44 pm
by johnmck
thanks Tim, that makes me less worried. we're using it, its great
Re: using up to 100% cpu
Posted: Fri Jun 29, 2007 1:45 pm
by johnmck
Hi,
ok I've just been told by my hosting company
We could find from the resource logs that your domain is trying to access more server resources which is preventing the sites form loading fine. Please take note that we have custom scripts in place that kill off all processes/scripts that are trying to use more resources.
======
Thu Jun 28 15:31:23 2007: 'php5 ' (Exe: php5 [/usr/local/cpanel/cgi-sys/php5], Script: '/usr/local/cpanel/cgi-sys/php5', Domain:
www.xxx.com, Request: '/admin/moduleinterface.php?mact=Album,m1_,addpicture,0&m1_albumid=14', Accessed from: xxxxxxx) - of using 16.55859375 MB memory Fri Jun 29 11:55:50 2007: 'php5 ' (Exe: php5 [/usr/local/cpanel/cgi-sys/php5], Script: '/usr/local/cpanel/cgi-sys/php5', Domain:
www.xxx.com, Request: '/lib/filemanager/ImageManager/thumbs.php?img=%2FOld+ICU+Pictures+001.jpg', Accessed from: ) - of using 72.94921875 MB memory Fri Jun 29 11:57:52 2007: 'php5 ' (Exe: php5 [/usr/local/cpanel/cgi-sys/php5], Script: '/usr/local/cpanel/cgi-sys/php5', Domain:
www.xxx.com, Request: '/lib/filemanager/ImageManager/thumbs.php?img=%2FOld+ICU+Pictures+001.jpg', Accessed from: ) - of using 72.87890625 MB memory ====== Please let us know if we can be of any further assistance. Thank you.
What can I do?
Re: using up to 100% cpu
Posted: Fri Jun 29, 2007 6:45 pm
by Pierre M.
Hello,
I agree with Tim. You'd be angry if the system allowed only 1% of the CPU to PHP/SQL with it has nothing else to do.
About your warning : your ImageManager is using a lot of memory. May be thumbnails computing ?
You can try to use lighter pictures.
Pierre M.