COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: spikyman on 22 Nov 2013 04:51:05 AM

Title: Catalina log files
Post by: spikyman on 22 Nov 2013 04:51:05 AM
Hi All,
We have been checked our logs on Cognos 10.2.1. We run it on Linux Red Hat 9.5.

We found one error that repeats all the time on catalina log files.

There is all the time this error :


org.apache.tomcat.util.net.JIoEndpoint$Acceptor run

SEVERE: Socket accept failed

java.net.SocketException: Too many open files

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.AbstractPlainSocketImpl.accept(Unknown Source)

at java.net.ServerSocket.implAccept(Unknown Source)

at java.net.ServerSocket.accept(Unknown Source)

at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)

at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)

at java.lang.Thread.run(Unknown Source)



Could anyone please help me with it? I didn't find any combination of this error with cognos.

Cognos is working properly, only sometimes it just crash down - maybe it is or maybe this error  isn't  reason of this.

But it makes our logs too big - some days it takes over 100 MB every day.
Thank you for helping me.
Title: Re: Catalina log files
Post by: Grim on 22 Nov 2013 07:45:48 AM
What are your ulimits set too?

Based on the following message in the error:
java.net.SocketException: Too many open files

It seems that it might be too low for the "cognos" user.
Title: Re: Catalina log files
Post by: spikyman on 22 Nov 2013 08:04:14 AM
when I run ulimit -Sa I get:

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 257124
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) 257124
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

When I run ulimit -Ha I get:


core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 257124
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) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 257124
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

I didn't set any of those settings. Is it ok?

Title: Re: Catalina log files
Post by: prikala on 25 Nov 2013 03:46:43 AM
"open files" is probably the cause of problem.
I think you should increase it to at least 65536 (both hard & soft).
Title: Re: Catalina log files
Post by: Grim on 25 Nov 2013 07:57:49 AM
Quote from: prikala on 25 Nov 2013 03:46:43 AM
"open files" is probably the cause of problem.
I think you should increase it to at least 65536 (both hard & soft).

Quoteopen files                      (-n) 1024
^
Yup!