hi, i have a site hosted on hostgator, using drupal 6. Server has a ram of 1GB. The problem is whenever we upload bunch of images imageCache takes lot of memory and sometimes it consumes all the ram memory which causes server to stop and then we have to reboot it, any how there is some traffic but imageCache really takes much memory. The following modules are being used in imageCache.
-ImageAPI
-ImageAPI GD2
-Imagecache Profile Pictures
-ImageCache UI
how much ram should be enough for all these module to work properly ?. Actually the error we get in the server log is kernel: Out of memory: Killed process 5627 (httpd). I don't really know why its happening but i have been watching system status , ram size increases while uploading the images so most probably its imageCache, isn't it ?. It couldn't be imageCache. What i really want to know that does imageCache take that much memory ? please help here im really in need...
THANKS
Comments
Comment #1
sgriffin commentedTie a knot on on your apache.
R Limits and max connections.
Calculate how much ram your system uses without apache running, subtract that from your available memory.
Determine how much ram each process will use slice that up via max connections.
The R Mem limit will ensure you're processes that are spawned don't slide off the end of your memory rope so to speak.
Comment #2
inforeto commentedImages of 640x480 are easy but bigger images use more resources.
Usage also depends on the number of images processed at once.
This would limit the number of users uploading photos at the same time.
You may want to raise memory_limit for a given role instead of the whole site.
If you have problems with a small or single upload then it will require troubleshooting.
Comment #3
el_reverend commentedRecently, I have been playing with load testing and the website loadimpact.com provides a free test set (sign up for a free account to get a bit more info). While it's quite limited in free mode, it will provide you with some information you can use. Hope this helps even that long after....
Comment #4
diegodelgadoh commentedHi, first excusseme for my bad english.
I have a little the same problem, in my case my server is collapsed for to many petitions.
I have drupal 6 with ubercart.
I saw that in the log, there are lines like that all the time:
page not found 12/13/2011 - 11:13 sites/default/files/3_0.jpg
404: Unable to find sites/default/files/IMG_8414.jpg
These days there are a lot of vitits in the web , i now I have to move to another server faster.
Whay cai I do?
Thanks!
Comment #5
fizk commented