IBM Cognos 10.2.1 - logs folder - catalina.log - java.net.socketException: Too many open files.
I have deployed cognos 10.2.1 (multi-tier environment).
I have observed that the cognos environment stop working after some time and i need to restart it. On having a look i saw that the catalina.log files are increasing in size in speed. Following error is appearing again and again in the file.
Sep 01, 2014 12:10:58 AM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed
java.net.SocketException: Too many open files.
and this error is appearing on every cognos server in the environment.
Kindly help.
Accepted answer
Hello Khalid,
in RRDI / Insight (that ship with Cognos 10.2.1) what I usually do in Redhat is the following:
1) To see the current limits:
[root@report ~]# 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) 40960
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
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) 40960
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2) If the open files is less that 65536; as a root user add or edit the following lines to the /etc/security/limits.conf file:
3) Restart the Linux system after the limits.conf file is modified.
Best Regards,
Francesco Chiossi
in RRDI / Insight (that ship with Cognos 10.2.1) what I usually do in Redhat is the following:
1) To see the current limits:
[root@report ~]# 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) 40960
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
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) 40960
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2) If the open files is less that 65536; as a root user add or edit the following lines to the /etc/security/limits.conf file:
* hard nofile 65536
* soft nofile 65536
3) Restart the Linux system after the limits.conf file is modified.
Best Regards,
Francesco Chiossi
2 other answers
This normally means that you have run out of "open files" limit (nofiles). Make sure that you have follow the instructions to set the limits properly before running the product.
http://pic.dhe.ibm.com/infocenter/analytic/v2r1m0/topic/com.ibm.discovery.es.in.doc/iiysiulimits.htm
If the limits are correctly set but the problem still persists, you may need to contact Support to get it investigated.
http://pic.dhe.ibm.com/infocenter/analytic/v2r1m0/topic/com.ibm.discovery.es.in.doc/iiysiulimits.htm
If the limits are correctly set but the problem still persists, you may need to contact Support to get it investigated.
Hi Donald, I have taken instructions from the link you shared but i faced one issue.
I don't think below mentioned will work on Redhat Linux, this is for AIX, please correct it.
2. To set or verify the ulimit values on Linux:
c. Log in as the admin_user_ID.
d. Restart the system:
esadmin system stopall
esadmin system startall