"Too many open files" in scalix-api.log
Posted: Wed Apr 11, 2007 9:07 pm
After having SAC unavailable this morning i check through the tomcat logs to find the following in the scalix-api.log. A restart of tomcat solved the problem but tomcat was only running for just over one day before this and i really don't want to restart it daily.
I have already seen viewtopic.php?t=6236 and adjusted limits.conf
Any idea what the problem is?
I have already seen viewtopic.php?t=6236 and adjusted limits.conf
Any idea what the problem is?
Code: Select all
# rpm -qa | grep -i scalix
scalix-server-11.0.3.10719-1.rhel4
scalix-swa-11.0.3.31-1
scalix-tomcat-5.5.16-226
scalix-postgres-11.0.3.31-1
scalix-res-11.0.3.31-1
scalix-sac-11.0.3.31-1
scalix-mobile-11.0.3.31-1
scalix-tomcat-connector-11.0.3.31-1.rhel4
scalix-platform-11.0.3.31-1
scalix-sis-11.0.3.31-1
Code: Select all
grep -e scalix -e root /etc/security/limits.conf
scalix - nofile 32767
root - nofile 32767
Code: Select all
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 32767
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 98304
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Code: Select all
# pgrep imap41d | wc -l
437
Code: Select all
# pgrep ual.remote | wc -l
84
Code: Select all
#tail scalix-api.log
Caused by: java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(Unknown Source)
at com.sun.mail.util.SocketFetcher.getSocket(Unknown Source)
at com.sun.mail.iap.Protocol.<init>(Unknown Source)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(Unknown Source)
... 25 more
2007-04-12 09:53:49,227 ERROR [CheckAuthInterceptor.preHandle:57] Problem encoutered during authentication
A00005 reached maximum number of retries
at com.scalix.api.auth.ImapAuthenticationService.authenticate(ImapAuthenticationService.java:121)
at com.scalix.api.auth.Frontdoor.authenticate(Frontdoor.java:23)
at com.scalix.api.rest.CheckAuthInterceptor.preHandle(CheckAuthInterceptor.java:47)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:707)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
at com.scalix.api.PlatformDispatcherServlet.service(PlatformDispatcherServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.MessagingException: Too many open files
at com.sun.mail.imap.IMAPStore.protocolConnect(Unknown Source)
at javax.mail.Service.connect(Unknown Source)
at com.scalix.api.auth.ImapAuthenticationService.authenticate(ImapAuthenticationService.java:71)
... 22 more
Caused by: java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(Unknown Source)
at com.sun.mail.util.SocketFetcher.getSocket(Unknown Source)
at com.sun.mail.iap.Protocol.<init>(Unknown Source)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(Unknown Source)