You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by lsacco <oc...@gmail.com> on 2009/02/27 21:30:36 UTC

Archiva "too many files open"

We have Archiva 1.1.3 running on Linux ELH AS4/Tomcat 5.5.25 and we have
recently noticed this issue after the server is only been up a day or less
sometimes:

java.net.SocketException: Too many open files
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312)
        at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:666)
        at
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:876)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)

We recently upgraded to 1.1.3 but we have seen this problem in the past too. 
Does any have any suggestions other than to keep upping the file descriptors
on the box (currently at 8192!)?  Could this be Tomcat 5.5?

As a comparison, my counterparts in another group are using Nexus with fd's
set to 1024 and have never seen this.  

TIA!
-- 
View this message in context: http://www.nabble.com/Archiva-%22too-many-files-open%22-tp22253843p22253843.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Archiva "too many files open"

Posted by lsacco <oc...@gmail.com>.
We have 3 repos and 1 central proxy repo.  Our SNAPSHOTS, Release and sandbox
scan hourly (0 0 * * * ? *), but we offset the time for each by 15 minutes
or so for each repo.  Our SNAPSHOT is our biggest repo with about 25K+ files
around 41GB.  When we initially set it up we thought this would be a
reasonable scan interval, but when I look at the scan statistics the
durations can be pretty long 5-30 minutes!  Perhaps the repos are getting
too big now to scan at this duration??

Any recommendations or suggestion with regard to scan intervals?  

Also, has anyone used Archiva successfully on a VM?

Thanks,
Lou
-- 
View this message in context: http://www.nabble.com/Archiva-%22too-many-files-open%22-tp22253843p22259962.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Archiva "too many files open"

Posted by Arnaud HERITIER <ah...@gmail.com>.
It's a common problem I have but I never had to increase the number of fd
uper than 2048 (using ulimit)Didn't you have schedule too often the
repository scanning ?


Arnaud

On Fri, Feb 27, 2009 at 9:30 PM, lsacco <oc...@gmail.com> wrote:

>
> We have Archiva 1.1.3 running on Linux ELH AS4/Tomcat 5.5.25 and we have
> recently noticed this issue after the server is only been up a day or less
> sometimes:
>
> java.net.SocketException: Too many open files
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>        at java.net.ServerSocket.accept(ServerSocket.java:421)
>        at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312)
>        at
>
> org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:666)
>        at
>
> org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:876)
>        at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>        at java.lang.Thread.run(Thread.java:595)
>
> We recently upgraded to 1.1.3 but we have seen this problem in the past
> too.
> Does any have any suggestions other than to keep upping the file
> descriptors
> on the box (currently at 8192!)?  Could this be Tomcat 5.5?
>
> As a comparison, my counterparts in another group are using Nexus with fd's
> set to 1024 and have never seen this.
>
> TIA!
> --
> View this message in context:
> http://www.nabble.com/Archiva-%22too-many-files-open%22-tp22253843p22253843.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>


-- 
Arnaud