Today I faced an issue while logging into a VPS from node.
# vzctl enter 101
entered into CT 101
-bash: /bin/egrep: Too many open files in system
-bash: /bin/egrep: Too many open files in system
-bash: /bin/egrep: Too many open files in system
While checking the UBC parameters for the respective VPS server, by viewing the output of /proc/user_beancounters, I could see that the parameter ‘numfile’ was hitting failcount. Numfile is the parameter for number of open files in a VPS. Increasing the limit fixed the issue.
# vzctl set 101 –numfile 500000:500000 –save
UB limits were set successfully
Saved parameters for CT 101