Got this "out of swapping space while reading request body!" just now on an Enterprise license whilst trying to use a webmail kind of script, sending out an email with two attachments. One just short of 2Mb and one not even 1Mb. PHP upload limit is 12Mb.
Plenty of disk space and with 4Gb of ram top normally says something like:
Swap is hardly ever needed.
Restarting LSWS reenabled me to send out this email. So problem solved in that sense but I'd like to understand this issue better and see if I can prevent it from happening again.
What space exactly did it run out of?
Memory I/O Buffer is 120M and we don't have big downloads or uploads going on at any time of day. A 4Mb PDF may be about the biggest download happening and I doubt ever concurrently.
So given the server ram and hd spec, how did it think it runs out of any space? /tmp/lshttpd/swap filles up with numbered and lettered folders as expected. Restarting lsws doesn't seem to flush old swap folders as those dated before today remain on restart.
This is on v4.0.14 by the way.
Until this issue, things were running flawlessly.
Any insights you can offer?
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda2 19840 4708 14109 26% /
/dev/sda5 209559 37940 160802 20% /home
/dev/sda1 99 24 71 25% /boot
tmpfs 1976 0 1976 0% /dev/shm
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda2 19840 4708 14109 26% /
/dev/sda5 209559 37940 160802 20% /home
/dev/sda1 99 24 71 25% /boot
tmpfs 1976 0 1976 0% /dev/shm
Mem: 4046812k total, 3514924k used, 531888k free, 324524k buffers
Swap: 1052248k total, 84k used, 1052164k free, 1970004k cached
Swap: 1052248k total, 84k used, 1052164k free, 1970004k cached
Restarting LSWS reenabled me to send out this email. So problem solved in that sense but I'd like to understand this issue better and see if I can prevent it from happening again.
What space exactly did it run out of?
Memory I/O Buffer is 120M and we don't have big downloads or uploads going on at any time of day. A 4Mb PDF may be about the biggest download happening and I doubt ever concurrently.
So given the server ram and hd spec, how did it think it runs out of any space? /tmp/lshttpd/swap filles up with numbered and lettered folders as expected. Restarting lsws doesn't seem to flush old swap folders as those dated before today remain on restart.
This is on v4.0.14 by the way.
Until this issue, things were running flawlessly.
Any insights you can offer?