php - Internal Server Error uploading a file -


error
have web app mass uploader (plupload) photos , when upload twenty photos, 6 (around 30 %) fail internal server error. have checked apache error.log domain , has nothing new (i know i'm looking @ right error.log since older errors did show here).

this happens on vps on dreamhost (my hosting provider) servers while on development server runs silky smooth.

oh, , things used work fine month ago , started fail. using uploadify , since used flash, impossible me debug upload failed.

files , script
uploaded files photos, 100 kb big, though i've uploaded (and still can) 3 mb photos. .htaccess naturally doesn't change during uploads. on server side php script uses gd2 library move , resize photo.

server state
have upgraded vps 300 400 mb of ram. thing used work , upgraded memory ruled out reason. memory limit php @ 200 mb, should sufice.

i getting mighty frustrated dreamhost not want help, stating "we can not responsible error code causes" , "we still not able assist in debugging issue unfortunately."
has been week of sparse "support" while app doesn't work , clients frustrated.

questions

  1. is kind of "you're on own" support standard across industry, i.e. host handle differently?
  2. how can debug this?

i'm going assume have standard apache + php setup. 1 possible configuration pre-forked setup; in case apache adapt system load forking more children of itself.

with 400 mb of ram you're pretty tight, if you're running 20 processes each take 200mb (assuming every process handles pretty big files using gd) you're getting hot waters memory manager.

i reduce total number of instances 2 first see how go; keep eye on memory usage running top.

regardless, might beneficial run separate task manager such gearman perform resize tasks upload has focus on moving uploaded file , run resize task; way can reduce memory required run php instances.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -