Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes


Accepted answer

Permanent link
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:
* hard nofile 65536
* soft nofile 65536


3) Restart the Linux system after the limits.conf file is modified.

Best Regards,

Francesco Chiossi
Khalid Mehmood selected this answer as the correct answer

0 votes


2 other answers

Permanent link
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.

0 votes

Comments

Let me perform these changes and get back to you. Thanks for the reply.


Permanent link
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

0 votes

Comments

There are two parts of instructions in that document - one for AIX and one for Linux. The last two commands are for Cognos, which I'm actually not familiar with. Sorry. I think you can just use the product and see if the problem persists.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 51

Question asked: Sep 01 '14, 2:18 p.m.

Question was seen: 8,251 times

Last updated: Sep 10 '14, 4:50 a.m.

Confirmation Cancel Confirm