Re: running out of file descriptors

Jeffrey Fredrick <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
I think this is related to this issue:

http://jira.public.thoughtworks.org/browse/CC-831

I think you might be able to work around the problem with this:

http://confluence.atlassian.com/display/DOC/Fix+'Too+many+open+files'+error+on+Linux+by+increasing+filehandles

What I think is happening is that each Ajax request from the dashboard
to view the in progress build results in a new socket being created.
That connection is short lived but there's a minimum timeout for a
TCP/IP socket. These sockets should close and go away on their own,
but in your case I you're hitting the file handle limit (each socket =
1 file handle) before the old sockets have timed out.

Jtf

On Tue, Feb 3, 2009 at 4:30 AM, dgan <[email protected]> wrote:
>
> I've removed the rmiport but then the dashboard application could not connect
> to the server and I do need the dashboard to function.
> But today I noticed that CruiseControl is also listening on a high port,
> 48216 for example, and that all the hundreds of connections it opens are
> connected to that port (CruiseControl's pid is 19305):
>
> tcp        0      0 :::48216                    :::*
> LISTEN      19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37479
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37472
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37473
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37474
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37475
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37468
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37469
> ESTABLISHED 19305/java
> tcp        0      0 ::ffff:127.0.0.1:48216      ::ffff:127.0.0.1:37470
> ESTABLISHED 19305/java
>
> ....
>
> I currently have over 800 connections like those.
> I see some RMI traffic on that 48216 port but I can't really say what role
> it plays and more important - how to prevent it from keeping so many
> established connections.
>
> I'll appreciate any information about it.
>
> Thanks,
> Dgan.
>
>
>
> Matthijs van der Klip-2 wrote:
>>
>>> -----Original Message-----
>>> Did you find a solution to your problem ?
>>
>> I have currently disabled the '--rmiport' option altogether avoiding this
>> issue. This was suggested to me by another reader of this list. It's not a
>> real solution but at least I have a running CC instance again.
>>
>> I'm really surprised that nobody on this list seems to know what's up with
>> that rmiport (1099) and it's random higher port.
>>
>>
>> Regards,
>>
>> --
>> Matthijs van der Klip
>> Director of IT Architecture
>>
>> Phone:    +31 (0) 35 646 6300
>> Fax:      +31 (0) 35 646 6301
>> Email:    [email protected]
>> Linkedin: http://www.linkedin.com/in/mvdklip
>>
>> SPIL GAMES BV
>> Arendstraat 23
>> 1223 RE  Hilversum
>> The Netherlands
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Cruisecontrol-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>
>>
>
> --
> View this message in context: http://www.nabble.com/running-out-of-file-descriptors-tp21609648p21808948.html
> Sent from the CruiseControl - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>



-- 
 Free hour of CI consulting: http://the.ci-guys.com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.