Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [ Titanic ] java.net.SocketException: Too many open files
[ Titanic ] java.net.SocketException: Too many open files [message #538115] Sat, 05 June 2010 07:35 Go to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi RAP team:

I know there is a similar issue about this problem that has long lasted for 7 years in eclipse platform and mostly occured in Eclipse IDE.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986

Unfortunately, we knocked into this iceberg in RAP recently, really mass destruction.

We found that over 400 handlers had been used to handle org.eclipse.rap.ui/context/resource/static/image/blank.gif and over 400 for files something like " org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/ ctabfolder/close.gif " or "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"

what I would like to know is: does the problem here in RAP share the same root cause with the Eclipse IDE? Do we have any other ideas to workarround it than modifying the max file handlers of the OS?

the problem occurs on Linux whose default max file handler is 1024, and our RAP version is: 1.2.0, the container is Tomcat 6.0.20.

Any suggestion will be greatly appreciated.

Thanks and Best Regards

Yours: Tingel Christian
Re: [ Titanic ] java.net.SocketException: Too many open files [message #538311 is a reply to message #538115] Mon, 07 June 2010 10:10 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1293
Registered: July 2009
Senior Member

Hi Christian,

this can't be related to the bug you mentioned since the handling of
resources works completely different in RAP. The theming images you
refer to are read once and registered as static resources with the HTTP
service. The file handles are immediately released after this.

Maybe the servlet container keeps some file handles open for whatever
reasons? Is the list of open handles static or does it change frequently?

Ralf

Tingel Christian wrote:
> Hi RAP team:
>
> I know there is a similar issue about this problem that has long lasted
> for 7 years in eclipse platform and mostly occured in Eclipse IDE.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986
>
> Unfortunately, we knocked into this iceberg in RAP recently, really mass
> destruction.
>
> We found that over 400 handlers had been used to handle
> org.eclipse.rap.ui/context/resource/static/image/blank.gif and over 400
> for files something like "
> org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/
> ctabfolder/close.gif " or
> "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"
>
> what I would like to know is: does the problem here in RAP share the
> same root cause with the Eclipse IDE? Do we have any other ideas to
> workarround it than modifying the max file handlers of the OS?
>
> the problem occurs on Linux whose default max file handler is 1024, and
> our RAP version is: 1.2.0, the container is Tomcat 6.0.20.
>
> Any suggestion will be greatly appreciated.
>
> Thanks and Best Regards
>
> Yours: Tingel Christian
Re: [ Titanic ] java.net.SocketException: Too many open files [message #538342 is a reply to message #538311] Mon, 07 June 2010 12:30 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi Ralf:

The handlers relative to blank.gif and images such as close.gif and maxmize.gif etc are static, but the ones relative to random numbers something like context/resource/themes/images/c3558a6c are not static~~~

would it be better if I file a bug?

Thanks and Best Regards!

Yours: Tingel Christian

Ralf Sternberg wrote on Mon, 07 June 2010 18:10
Hi Christian,

this can't be related to the bug you mentioned since the handling of
resources works completely different in RAP. The theming images you
refer to are read once and registered as static resources with the HTTP
service. The file handles are immediately released after this.

Maybe the servlet container keeps some file handles open for whatever
reasons? Is the list of open handles static or does it change frequently?

Ralf

Tingel Christian wrote:
> Hi RAP team:
>
> I know there is a similar issue about this problem that has long lasted
> for 7 years in eclipse platform and mostly occured in Eclipse IDE.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986
>
> Unfortunately, we knocked into this iceberg in RAP recently, really mass
> destruction.
>
> We found that over 400 handlers had been used to handle
> org.eclipse.rap.ui/context/resource/static/image/blank.gif and over 400
> for files something like "
> org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/
> ctabfolder/close.gif " or
> "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"
>
> what I would like to know is: does the problem here in RAP share the
> same root cause with the Eclipse IDE? Do we have any other ideas to
> workarround it than modifying the max file handlers of the OS?
>
> the problem occurs on Linux whose default max file handler is 1024, and
> our RAP version is: 1.2.0, the container is Tomcat 6.0.20.
>
> Any suggestion will be greatly appreciated.
>
> Thanks and Best Regards
>
> Yours: Tingel Christian

Re: [ Titanic ] java.net.SocketException: Too many open files [message #538396 is a reply to message #538342] Mon, 07 June 2010 14:40 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1293
Registered: July 2009
Senior Member

Tingel Christian wrote:
> Hi Ralf:
>
> The handlers relative to blank.gif and images such as close.gif and
> maxmize.gif etc are static, but the ones relative to random numbers
> something like context/resource/themes/images/c3558a6c are not static~~~
>
> would it be better if I file a bug?

Unless there are a) many open filehandles for the same file or b) many
filehandles kept open over a long time, I don't think that there is a
bug in RAP. If the list of opened files changes frequently and does not
grow continuously than I'd guess that the server is just under heavy
load. After all, Tomcat needs to open files in order to deliver them.

This exception seems to be a common problem with Tomcat/Linux. There are
many threads out there explaining how to increase the limit for open
file handles.

Anyway, if you think there is a bug in RAP, feel free to report it.

Ralf

> Ralf Sternberg wrote on Mon, 07 June 2010 18:10
>> Hi Christian,
>>
>> this can't be related to the bug you mentioned since the handling of
>> resources works completely different in RAP. The theming images you
>> refer to are read once and registered as static resources with the HTTP
>> service. The file handles are immediately released after this.
>>
>> Maybe the servlet container keeps some file handles open for whatever
>> reasons? Is the list of open handles static or does it change frequently?
>>
>> Ralf
>>
>> Tingel Christian wrote:
>> > Hi RAP team:
>> > > I know there is a similar issue about this problem that has long
>> lasted
>> > for 7 years in eclipse platform and mostly occured in Eclipse IDE.
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986
>> > > Unfortunately, we knocked into this iceberg in RAP recently,
>> really mass
>> > destruction.
>> > > We found that over 400 handlers had been used to handle
>> > org.eclipse.rap.ui/context/resource/static/image/blank.gif and over 400
>> > for files something like "
>> > org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/
>> > ctabfolder/close.gif " or
>> > "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"
>> > > what I would like to know is: does the problem here in RAP share the
>> > same root cause with the Eclipse IDE? Do we have any other ideas to
>> > workarround it than modifying the max file handlers of the OS?
>> > > the problem occurs on Linux whose default max file handler is
>> 1024, and
>> > our RAP version is: 1.2.0, the container is Tomcat 6.0.20.
>> > > Any suggestion will be greatly appreciated.
>> > > Thanks and Best Regards
>> > > Yours: Tingel Christian
>
>
Re: [ Titanic ] java.net.SocketException: Too many open files [message #538408 is a reply to message #538396] Mon, 07 June 2010 15:11 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Thanks, Ralf~~~

I am sorry to say that but you know, there are more than 400 handlers dealing with the same file blank.gif when there is no concurrent sessions requests, I think it really incredible~~~

The painful point is that increasing the upper limit for open file handlers is strictly prohibited by our clients, So... Crying or Very Sad Crying or Very Sad

I am now planning to have a test using Jetty, do you think that would be better?Cos I do realized that most of the out of handlers cases are related with Tomcat~~~

Thanks and Best Regards

Tingel Christian

Ralf Sternberg wrote on Mon, 07 June 2010 22:40
Tingel Christian wrote:
> Hi Ralf:
>
> The handlers relative to blank.gif and images such as close.gif and
> maxmize.gif etc are static, but the ones relative to random numbers
> something like context/resource/themes/images/c3558a6c are not static~~~
>
> would it be better if I file a bug?

Unless there are a) many open filehandles for the same file or b) many
filehandles kept open over a long time, I don't think that there is a
bug in RAP. If the list of opened files changes frequently and does not
grow continuously than I'd guess that the server is just under heavy
load. After all, Tomcat needs to open files in order to deliver them.

This exception seems to be a common problem with Tomcat/Linux. There are
many threads out there explaining how to increase the limit for open
file handles.

Anyway, if you think there is a bug in RAP, feel free to report it.

Ralf

> Ralf Sternberg wrote on Mon, 07 June 2010 18:10
>> Hi Christian,
>>
>> this can't be related to the bug you mentioned since the handling of
>> resources works completely different in RAP. The theming images you
>> refer to are read once and registered as static resources with the HTTP
>> service. The file handles are immediately released after this.
>>
>> Maybe the servlet container keeps some file handles open for whatever
>> reasons? Is the list of open handles static or does it change frequently?
>>
>> Ralf
>>
>> Tingel Christian wrote:
>> > Hi RAP team:
>> > > I know there is a similar issue about this problem that has long
>> lasted
>> > for 7 years in eclipse platform and mostly occured in Eclipse IDE.
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986
>> > > Unfortunately, we knocked into this iceberg in RAP recently,
>> really mass
>> > destruction.
>> > > We found that over 400 handlers had been used to handle
>> > org.eclipse.rap.ui/context/resource/static/image/blank.gif and over 400
>> > for files something like "
>> > org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/
>> > ctabfolder/close.gif " or
>> > "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"
>> > > what I would like to know is: does the problem here in RAP share the
>> > same root cause with the Eclipse IDE? Do we have any other ideas to
>> > workarround it than modifying the max file handlers of the OS?
>> > > the problem occurs on Linux whose default max file handler is
>> 1024, and
>> > our RAP version is: 1.2.0, the container is Tomcat 6.0.20.
>> > > Any suggestion will be greatly appreciated.
>> > > Thanks and Best Regards
>> > > Yours: Tingel Christian
>
>
Re: [ Titanic ] java.net.SocketException: Too many open files [message #538411 is a reply to message #538408] Mon, 07 June 2010 15:24 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1293
Registered: July 2009
Senior Member

Tingel Christian wrote:
> Thanks, Ralf~~~
>
> I am sorry to say that but you know, there are more than 400 handlers
> dealing with the same file blank.gif when there is no concurrent
> sessions requests, I think it really incredible~~~

400 open handles for the same file is strange. If you can reproduce it,
please open a bug.

> The painful point is that increasing the upper limit for open file
> handlers is strictly prohibited by our clients, So... :cry: :cry:
> I am now planning to have a test using Jetty, do you think that would be
> better?Cos I do realized that most of the out of handlers cases are
> related with Tomcat~~~

at least I cannot reproduce the problem with Jetty running the RAP demo
from Eclipse.

> Ralf Sternberg wrote on Mon, 07 June 2010 22:40
>> Tingel Christian wrote:
>> > Hi Ralf:
>> > > The handlers relative to blank.gif and images such as close.gif and
>> > maxmize.gif etc are static, but the ones relative to random numbers
>> > something like context/resource/themes/images/c3558a6c are not
>> static~~~
>> > > would it be better if I file a bug?
>>
>> Unless there are a) many open filehandles for the same file or b) many
>> filehandles kept open over a long time, I don't think that there is a
>> bug in RAP. If the list of opened files changes frequently and does not
>> grow continuously than I'd guess that the server is just under heavy
>> load. After all, Tomcat needs to open files in order to deliver them.
>>
>> This exception seems to be a common problem with Tomcat/Linux. There are
>> many threads out there explaining how to increase the limit for open
>> file handles.
>>
>> Anyway, if you think there is a bug in RAP, feel free to report it.
>>
>> Ralf
>>
>> > Ralf Sternberg wrote on Mon, 07 June 2010 18:10
>> >> Hi Christian,
>> >>
>> >> this can't be related to the bug you mentioned since the handling of
>> >> resources works completely different in RAP. The theming images you
>> >> refer to are read once and registered as static resources with the
>> HTTP
>> >> service. The file handles are immediately released after this.
>> >>
>> >> Maybe the servlet container keeps some file handles open for whatever
>> >> reasons? Is the list of open handles static or does it change
>> frequently?
>> >>
>> >> Ralf
>> >>
>> >> Tingel Christian wrote:
>> >> > Hi RAP team:
>> >> > > I know there is a similar issue about this problem that has long
>> >> lasted
>> >> > for 7 years in eclipse platform and mostly occured in Eclipse IDE.
>> >> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=42986
>> >> > > Unfortunately, we knocked into this iceberg in RAP recently,
>> >> really mass
>> >> > destruction.
>> >> > > We found that over 400 handlers had been used to handle
>> >> > org.eclipse.rap.ui/context/resource/static/image/blank.gif and
>> over 400
>> >> > for files something like "
>> >> > org.eclipse.rap.ui/context/resource/themes/Custom_1/widgets/
>> >> > ctabfolder/close.gif " or
>> >> > "org.eclipse.rap.ui/context/resource/themes/images/148ab7bc"
>> >> > > what I would like to know is: does the problem here in RAP
>> share the
>> >> > same root cause with the Eclipse IDE? Do we have any other ideas to
>> >> > workarround it than modifying the max file handlers of the OS?
>> >> > > the problem occurs on Linux whose default max file handler is
>> >> 1024, and
>> >> > our RAP version is: 1.2.0, the container is Tomcat 6.0.20.
>> >> > > Any suggestion will be greatly appreciated.
>> >> > > Thanks and Best Regards
>> >> > > Yours: Tingel Christian
>> > >
>
Previous Topic:[Upload Widget] Access Denied?
Next Topic:Deploying war with RAP 1.3RC3
Goto Forum:
  


Current Time: Thu Nov 27 12:10:25 GMT 2014

Powered by FUDForum. Page generated in 0.01825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software