Hi friends,
Working on a linux X86-64 bit system, I suddenly started getting this error (mentioned in subject) from various scripts.
I googled, found that there are couple of reason which causes this issue.
- less memory
I am pretty sure, memory seems to be stable on my system and at the time of facing issue, I am still having good amount of free RAM.
free -m
total used free shared buffers cached
Mem: 64445 25898 38546 0 192 3389
-/+ buffers/cache: 22316 42128
Swap: 66431 24824 41607
- crossed max no of process limit
ps gives me only 600 processes.
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 532480
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 532480
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
- crossed max PID integer limit.
cat /proc/sys/kernel/pid_max
32768
For the last point, It has been observed that the PID has been reached till 32762 but definitely not beyond that.
I am unable to reach to conclusion.
Moreover, I know that even if PID reached at max limit, the kernel resets the counter to 300 or something !
I am clueless. Need you help.