[Building Sakai] Too many open files error

Omer Piperdi omer at rice.edu
Tue Jul 13 14:41:45 PDT 2010


Hi Alan,

After increasing ulimit on Linux for 'open files' from 1024 to 4098 for 
the user that runs Tomcat, it is stable now.. We will be monitoring more 
and see if it was the case..

Thanks
Omer

On 7/13/2010 4:14 PM, Berg, Alan wrote:
> Hi Omer,
>
> I am curious, is the Tomcat running SSL. If so can you send to the list the server.xml information e.g:
>
>      <Connector port="443" maxHttpHeaderSize="8192"
>                 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                 enableLookups="false" disableUploadTimeout="true"
>                 acceptCount="100" scheme="https" secure="true"
>                 SSLEngine="on"
>                 SSLCertificateFile="${catalina.base}/conf/localhost.crt"
>                 SSLCertificateKeyFile="${catalina.base}/conf/localhost.key" />
>
>
> Alan B
>
> Alan Berg
> QA Director - The Sakai Foundation
>
> Senior Developer / Quality Assurance
> Group Education and Research Services
> Central Computer Services
> University of Amsterdam
>
> http://home.uva.nl/a.m.berg
> ________________________________________
> From: sakai-dev-bounces at collab.sakaiproject.org [sakai-dev-bounces at collab.sakaiproject.org] on behalf of Omer Piperdi [omer at rice.edu]
> Sent: 13 July 2010 21:01
> To: Sakai Dev
> Subject: [Building Sakai] Too many open files error
>
> We are seeing "Too many open files" error in our test 2.7.x (r79223)
> install.. It starts from one tool and eventually kills the Tomcat..
>
> We tried to increase the file descriptor limit on Linux but it did not
> work. Any idea or suggestion?
>
> Thanks
> Omer
>
>
> Error Message in catalina.out
> ----------------
> java.net.SocketException: Too many open files
>           at java.net.PlainSocketImpl.socketAccept(Native Method)
>           at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
>           at java.net.ServerSocket.implAccept(ServerSocket.java:453)
>           at
> com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl..java:259)
>           at
> org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:118)
>           at
> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:408)
>           at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:71)
>           at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>           at java.lang.Thread.run(Thread.java:619)
> ----------------
>
> The machine has
> RHEL 4 Update 8 with 16G of RAM
> Java 1.6.0_20
> Tomcat 5.5.29
> Oracle 10.2
>
> JAVA_OPTS:
>
> -server -d64 -Xms5200m -Xmx5200m -Xmn1g -XX:MaxPermSize=512m
> -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:GCTimeRatio=19
> -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90
> -XX:MaxTenuringThreshold=31 -verbose:gc -XX:+PrintGCDetails
> -XX:+PrintGCTimeStamps -Djava.awt.headless=true
> -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
> -Dsun.lang.ClassLoader.allowArraySyntax=true
> -Xloggc:/usr/site/tomcat/logs/gc.log
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>
> !DSPAM:2294,4c3cd7e2274437901415906!
>
>


More information about the sakai-dev mailing list