503 on file upload

#1
Hi,

I've read the forums and searched the web, but I can't seem to solve this issue.

I get a 503 error when I try to upload a 500 MB file through PHP.

My PHP limits are set to 700M, and Max Request Body Size (bytes) to 700 M

Any ideas?

Gerald
 

mistwang

LiteSpeed Staff
#4
Please run shell command "ulimit -a" from a PHP script and check the output to make sure the memory limit has been set properly.
Also, check lsws/logs/stderr.log and lsws/logs/error.log for PHP errors.
 
#5
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
memory(kbytes) unlimited
locked memory(kbytes) 32
process 200
nofiles 1024
vmemory(kbytes) 716800 locks unlimited

I can't see any errors relating to the file upload in the log files.
 
#6
Here's another one, with bash instead of the default shell.

core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 2048
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 200
virtual memory (kbytes, -v) 716800
file locks (-x) unlimited
 

mistwang

LiteSpeed Staff
#7
looks like the memory has been set properly. I am not sure 700MB is enough or not.
You can check the memory useage of the PHP process, and you can "strace" the PHP process, I think it must be crashed for some reason.
 
Top