View Full Version : Gallery2 - CPU Quota
samholton
01-29-2007, 06:49 AM
Has anyone on Bluehost been able to successfully run an installation of Gallery2 (the one offered through Fantasico) without continuously receiving the CPU Quota message? I can understand encountering this error when creating thumbnails or the re-sized images. However, I constantly get this error just when browsing the gallery.
I've disabled many of the features, set the priority option to low and enabled page caching in an attempt to reduce server load but still get the message. Let me know if anyone has been able to run Gallery2 without this problem. Perhaps I have something configured incorrectly.
Thanks,
--Sam
samholton
01-29-2007, 11:14 AM
It appears the thumbs may not have actually been created when adding the photos to the gallery. After going through all pages one time (and several CPU warnings) it seems to be working now without any CPU Quota problems. I will make another post after I have a chance to look into it more.
--Sam
samholton
01-29-2007, 08:54 PM
Well, I guess I'm the only one posting in this thread. Either nobody else is trying to run gallery2 or they aren't having the same problems I'm having.
Here is my setup that seems to work alright. I set the helper methods priority to low in the admin interface. When I add items to a gallery, I make sure that the create thumbnails box is NOT checked. Then under the maintenance tab, I click the option to repair/create thumbs option. When this page comes up, I enable ReloadEvery in Firefox to refresh the page every minute (can also do this in Opera). Since scripts timeout somewhere in the neighborhood of 40 seconds on Bluehost, gallery will create as many thumbs as it can in 40 seconds, and then give the server a 20 second break before refreshing the page and resuming the thumbnail creation. If your CPU quota is reached, the page will be automatically refreshed anyhow and the process will continue.
I have noticed a few times where it appears the script stop in the middle of a thumb. However, this thumb is corrected after it is viewed once. Doing this, I've yet to have a CPU usage message.
--Sam
siguie
01-30-2007, 04:11 AM
Gallery 2 works fine for me and always has but I try to avoid using Fantastico for anything other than a test drive so it was a manual install.
samholton
01-30-2007, 06:29 AM
I see. Perhaps I should have done a manual install. You never have any problems creating thumbs/resized images? Do you create them when adding the items to the gallery? I've been adding about 300 at a time, so that may also be the problem. Generated over 4000 last night using the method I described so I don't know if I want to try a manual install now that I'm this far along. Maybe I'll install a manual copy to another location and see how it goes. Are you using version 2.1?
Thanks,
--Sam
dholt
01-30-2007, 06:42 AM
I have just started getting this CPU Quota message as I use another Gallery. Blue host may have got too big as a year ago you would not have seen this problem.
The one you are using is a nice free Gallery as I know the Designer of that Software.
Hope it all works out for you as support for this problem there is none, except move to another hosting company or buy your own server.
samholton
01-30-2007, 05:45 PM
Gallery 2 works fine for me and always has but I try to avoid using Fantastico for anything other than a test drive so it was a manual install.
What image toolkit do you have active on your installation of gallery? I'm wondering if maybe that is causing my problem. Simply rotating several images will push me over my CPU Quota.
My priority list is: Gd, ImageMagick, NetPBM
--Sam
samholton
01-31-2007, 05:01 PM
Just an update... I have moved the GB toolkit to the bottom of my priority list and disabled EXIF data from displaying. It appears that the current version of gallery does not cache the EXIF data in the database. Reading this data on each display (most of my images are 2.5mb and up) was using a lot of resources. So until there is an update to cache EXIF data (or I dive into the source myself) it looks like I'll be without it.
--Sam
send2steph
02-07-2007, 10:34 AM
I'm having the same problems. So, are you saying that once you get the thumbnails all updated and there, that the CPU problem is fixed? Is this for all users, or only you and your personal cache?
Also, for the toolkits, you said you moved Gd to the bottom, what is the order of your other toolkits?
samholton
02-07-2007, 11:45 AM
Currently my priority list is ImageMagick, NetPBM, GD. Once the thumbs are created, they are stored in the g2data/cache/derivation folder I believe. It is this process of creating the thumbs has uses the majority of CPU resources. I wouldn't say that the CPU Quota issue is completely fixed once these thumbs are created, however I only receive the error occasionally.
As for my previous comment about the EXIF data, I'm not sure how much of an impact this has. I'm sure it uses additional cpu resources by extracting the data on each view rather than caching the data in the database, but I'm not sure how much this contributes to the cpu quota problems.
I also have many of the extra features/modules disabled such as the sidebar with the random image. I have page acceleration set to partial. My main reason for putting all of my full resolution images online is for backup purposes so I suppose I can live with the occasional CPU Quota problem.
For the most part, I'm the only one using my gallery. I'm not sure how well it would stand up under multiple users.
--Sam
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.