-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Too many files open - Linux issue
PostPosted: Mon Jan 30, 2006 5:50 am 
Newbie

Joined: Mon Jan 30, 2006 5:28 am
Posts: 1
Hi,

We have developed a JSF+Spring+Hibernate based portlet application and it is running in Websphere Portal Server(WPS).

While running the portlet in WPS on a linux machine, we are getting the following error.
' Too many open files'....
And after investigating the issue further, we saw that the files that were being kept open were having the file name as <package name>.<POJO name>.data files. These POJOs are being maintained by hibernate. However, this problem does not occur when the portlet is run in WPS on a window machine.

Has anyone come across this problem before? Appreciate any help in this regard !

Thanks in advance...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i dont know of any code inside hibernate that creates/maintain .data files.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:23 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
May be this comes from the cache.

Do you have a very large cache not fitting in the memory, that allows writing to the disc?

Regards Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:26 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
You can of course also increase the number of open file handles in Linux. Standard Linux seems to be quite restrictive so enlarge this.

Google for this topic.

Regards Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
...but overflowing the second level cache to disk very rarely makes sense. Your database will most likely be faster to store and recreate data from disk than any secondlevel cache implementation.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.