dotcms crashes with "java.io.IOException: Too many open files"

56 views
Skip to first unread message

Alex M

unread,
Dec 6, 2015, 11:12:47 AM12/6/15
to dot...@googlegroups.com

Hi, 

Our server crashed yesterday and needed to reboot it.  Below are a few log messages during the crash.  How can I fix this?

My ulimit is set to "unlimited". Doctms version is 3.2.4.

Thanks,


Alex


2015-12-05 15:08:37,286 ERROR com.dotmarketing.portlets.contentlet.business.exporter.ImageFilterExporter - Exception in com.dotmarketing.image.filter.ResizeImageFilter :null

05-Dec-2015 16:55:53.791 SEVERE [http-nio-xxx.xxx.xxx-6666-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed

 java.io.IOException: Too many open files

at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)

at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)

at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:688)

at java.lang.Thread.run(Thread.java:745)


05-Dec-2015 16:55:53.848 SEVERE [http-nio-xxx.xxx.xxx-6666-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed

 java.io.IOException: Too many open files

at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)

at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)

at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:688)

at java.lang.Thread.run(Thread.java:745)


Brent Griffin

unread,
Dec 7, 2015, 10:04:56 AM12/7/15
to dotCMS User Group
What operating system are you running on?

Since you mentioned ulimit, I assume you are running some type of linux.  You can run the "lsof" command here to help diagnose the situation.  Are the majority of your open "files" sockets or actual files?  

If sockets, you likely have too much load on the server or some type of configuration problem.  "lsof -U" will show you the open sockets

If files, perhaps you have too many es indexes active.  I they are actual files, looking at the paths to those files.

This should get you started.  Post results here and then we can figure out next steps.

Brent Griffin
Sr. Java Architect
dotCMS

Alex M

unread,
Dec 9, 2015, 4:38:46 PM12/9/15
to dot...@googlegroups.com
Brent -

Thank you so much for your help.

Yes, I am running Ubuntu Linux 12.04.2.

The way I fixed the situation was by rebooting the server.

Here is the output of the commands you advise me to do now on the server:

Attached you will find the output of the two commands "lsof" and "lsof -U".

Thanks for your help!

Alex




--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

lsof.txt
lsof-U.txt
Reply all
Reply to author
Forward
0 new messages