Reply To: Error is 11 ‘Resource temporarily unavailable’

NoMachine Terminal Server Products / Error is 11 ‘Resource temporarily unavailable’ / Reply To: Error is 11 ‘Resource temporarily unavailable’

#24419
GegaGega
Participant

Problem is caused by lack of resources, do you have enough RAM to run all that sessions? If yes please check also:
cat /proc/sys/kernel/threads-max
to see limit on the total number of processes on the system (threads)
To list also threads you need to add L switch to your ps command. e.g:
ps -efL | wc -l

Usually this problem comes out because of limits, specifically “number of processes” limit or “virtual memory” limit. You’ve shown us limits for common user, but as we’ve said before we’re more interested in limits of user “nx”, since it looks like that might be causing this issues. Let’s check limits set for nxserver daemon, since this process is run as user “nx”, to do that firstly run:
ps -ef | grep "nxserver.bin --daemon"
Then copy pid of daemon and run:
cat /proc/<pid>/limits

If you see that nproc or virtual memory limit are set, than you should set new limits in limits.conf.
nx soft nproc unlimited
nx hard nproc unlimited
nx hard as unlimited
nx soft as unlimited