geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trygve Hardersen <try...@jotta.no>
Subject too many open files --> fills disk
Date Fri, 05 Jun 2009 09:36:01 GMT
Hi

We had a nasty problem on our servers that caused the Geronimo process to
open too many files. This is a problem in our code, but there's a
unfortunate side-effect in Geronimo or Jetty. It seems like the server goes
into a loop totally spamming the log file with messages like these several
times every millisecond:

04:35:10,830 WARN  [log] EXCEPTION
java.io.IOException: Too many open files
    at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
    at
org.mortbay.jetty.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:75)
    at
org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:498)
    at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:185)
    at
org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
    at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:707)
    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
    at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
04:35:10,831 WARN  [log] EXCEPTION
java.io.IOException: Too many open files
    at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
    at
org.mortbay.jetty.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:75)
    at
org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:498)
    at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:185)
    at
org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
    at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:707)
    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
    at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
04:35:10,831 WARN  [log] EXCEPTION
java.io.IOException: Too many open files
    at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
    at
org.mortbay.jetty.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:75)
    at
org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:498)
    at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:185)
    at
org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
    at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:707)
    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
    at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

This of course fills the disk pretty quickly. The messages are logged to the
geronimo.out log when using the default logging configuration.

Trygve Hardersen
Jotta AS

Mime
View raw message