java left logo
java middle logo
java right logo
 

Home arrow Other API Tips
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 4094
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
What can I do if NetBeans runs out of file descriptors? E-mail
User Rating: / 0
PoorBest 

If you open very many projects at once in the IDE, it is possible for all file descriptors available to the Java process to be consumed. In Linux the limit is set to 1024 by default; you can check this by typing in a shell:

ulimit -n

If the IDE consumes all the file descriptors you will get many exceptions and the IDE will not function properly. (If this happens, shut down the IDE, delete $userdir/var/cache/ and $userdir/config/Services/org-netbeans-modules-project-ui-OpenProjectList.settings, and restart.)

You may find out the number of file descriptors you are currenty using by running

ls -1 /proc/`jps -l | fgrep org.netbeans.Main | cut -d' ' -f1 | head -1`/fd | wc -l

You can work around the problem by increasing the number of file descriptors allowed for processes of the given user. You need to edit the file /etc/security/limits.conf as root, adding the following two lines there:

   USERNAME           soft    nofile          2048
   USERNAME           hard    nofile          2048

where USERNAME is the Unix username. Then you need to log out and log back in as the user USERNAME.

Source: NetBeans User FAQ


 Related Tips

 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.