Now I'm not completely sure why this is happening, I did chat with a tech from my host provider and we've come to the discover my major CPU usage is coming form Brilliant Gallery (and frequently suspending my account).
My cpu_exceeded_logs show dozens of this type of entry at the moment of each crash
Sun Dec 23 03:45:41 2007: used 0.89 seconds of cpu time for HTTP Request: junk-drawer-mind.com : GET /drupal/modules/brilliant_gallery/image.php?imgp= (after "imgp=" a link to each image) this instance appears multiple times for the same image.
Only when saving a node that has a gallery somewhere within it, in less than a minute dozens executions flood the CPU causing it to exceed. its impressive how much CPU it can use in a minute! We had already eliminated the potential of too many people on the site because its 3am and no one visits my site even during peak hours. and BG was the only thing been executed during that save time.
I don't know what to report as the bug because once it happens I'm blocked from my site for a few minutes and by then its restored to how it was previously.
after disabling the module my site is fine.
any input on what this could be or any similar experiences?
Comments
Comment #1
vacilando commentedNot a bug.
The PHP functions used to resize images are quite CPU-intensive ( "imagecopyresampled" -- see http://www.php.net/manual/en/function.imagecopyresampled.php ). Especially if your master images are large.
The easy way to avoid this problem is to use caching - see your BG settings at /admin/settings/brilliant_gallery
If you are on a virtual server, use MySQL caching. If you have standard physical hosting, use file caching, which is both very fast and light on the CPU.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.