How to investigate "Too many open files" error? [message #540057] |
Mon, 14 June 2010 13:30  |
Eclipse User |
|
|
|
Hi,
I'm using eclipse-cpp-galileo-SR2-linux-gtk.tar.gz which (amongst others) contains the Eclipse Platform, the C/C++ IDE and the Mylin components. I'm experiencing "Too many open files" errors (details follow below) and I'm looking for a way to investigate further. Since I cannot tell which component creates the problem I'm seeking your advice here. If there is a place more appropriate where to ask please direct me to it.
After running for a few days the java process - which is only used by Eclipse - exhausts the allowed number of open files per process ('ulimit -Hn', 8192). From that time on Eclipse is unable to sensibly 'work' much longer and creates "Too many open files" errors in all components used. Using 'lsof | grep java' (last line shown here)
java 15330 ftheinen 8191r REG 0,3 0 8804280 /proc/15330/maps
shows that about 8000 of the open file descriptors are read accesses to the process memory map file (lines differ in the file descriptor only). Using 'lsof' from time to time shows that the number of file descriptors increases steadily, maybe one or two per minute on average.
How can I systematically investigate which component is creating these file descriptors (without having to do many time consuming experiments)?
Regards, Frank
|
|
|
|
Re: How to investigate "Too many open files" error? [message #540854 is a reply to message #540767] |
Thu, 17 June 2010 09:46   |
Eclipse User |
|
|
|
mxm wrote on Thu, 17 June 2010 06:00 | I am experiencing the same problems. I ran eclipse over night and since than
"Too many Files error" after working some minutes, that leads to not being able to store changes and a broken workspace.
I it tried to raise the local limit, but ulimit -n 2000, which is the doubled value, but that does not change anything.
|
You are setting the 'soft' limit, not the 'hard' limit as with 'ulimit -Hn 2000'. But it doesn't seem to work anyway: I enlarged the hard limit from 8192 to 16384 (soft limit is 1024), but after the java process used file descriptor 8191 the problem occurred again.
Quote: | I can not restart, did that help for you? I can not restart here!
|
When closing Eclipse the file descriptors are freed, so restarting helps.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08551 seconds