PDA

View Full Version : OpenVZ, VM returns flood of: accept: too many open files



Fli
04-24-2014, 09:39 AM
Hello,


i enabled proxy from within my OpenVZ VM according to this tutorial (http://internetlifeforum.com/linux-forums/1326-fastest-way-make-linux-socks-proxy/) and then after around one hour, i started receiving flood of messages in my SSH terminal window being loged into VPS, so i cant even write a command, because new messages quickly flooding the screen.



accept: too many open files
accept: too many open files
accept: too many open files
accept: too many open files


So from host node i did:

# vzctl exec xxx ulimit -n
1024
# vzctl exec xxx cat /proc/sys/fs/file-max
2461979
vzctl exec xxx lsof
...
ssh 7755 root 957u IPv4 837165782 0t0 TCP vps.mydomainhere.com:socks->67.198.*.*.CUSTOMER.*.COM:* (FIN_WAIT2)
ssh 7755 root 958u IPv4 839566319 0t0 TCP vps.mydomainhere:socks->67.198.*.*.CUSTOMER.*.COM:* (ESTABLISHED)
...and around 200 similar..


And this is beancounters for the VM: http://pastebin.com/MKzSbLQG

after "pkill --f mysshporthere" the flood stopped.

Please can anyone advice me on what to change, on which file to check? Thx

PS: many people advice increasing imit by: ulimit -n numberhere