| 8:42 pm on Oct 22, 2010 (gmt 0)|
is any process stuck ? did you restart your server? is there a huge image to create a thumbnail of ? that might be causing the script to hang
| 9:33 pm on Oct 22, 2010 (gmt 0)|
no process stuck. i did restart the server and the problem continued and no large image
| 9:43 pm on Oct 22, 2010 (gmt 0)|
I remember that class it keeps a cache of images and no auto-cleanup if I remember correctly. You will have to clean up the thumbs manually (there should be a cache folder under phpThumb). What I don't understand though is that the thumb files must be accessed for the server load you describe.
If some traffic is causing it you may want to implement cold image linking where the images are outside the web-root and an intermediate server script accesses them and randomizes the image link so images cannot hot-linked.
| 10:32 pm on Oct 22, 2010 (gmt 0)|
the cache cleans out ok.
what i dont understand is this:
if it has worked for 4 years without trouble
i haven't changed anything in my site's code
i haven't changed anything at phpthumb
the traffic is the same
why is it causing such high server load?
i think it might be a php setting of some sort...maybe the people at my hoting server changed something (it's a deducated server)
| 9:43 am on Oct 23, 2010 (gmt 0)|
Can you check the dates of the thumbs? Are they recreated on every request for some reason?
| 11:16 am on Oct 23, 2010 (gmt 0)|
nope. i'm almost certain the cache works fine.
i'm wondering if it could be a server or php setting of some sort
can you think of anything of this type?
| 5:06 pm on Oct 23, 2010 (gmt 0)|
make a test php script on the server do
what's the memory limit?
| 11:19 am on Oct 25, 2010 (gmt 0)|
solved it...it was not phpthumb. it was imagemagick and the problem was i had two versions installed on my server