Too many open files error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Too many open files error

DİLEK ARIKAN
Hello, 

I am using MacOS Sierra 10.12.6 (16G29). The program that i ran millions of times in Windows environment, is not working with below error on Mac OS after switching to Mac. 

1 The file d4_2 could not be opened java.io.FileNotFoundException: d4_2 (Too many open files)


Current limits are : 

maxfiles    64000          524288 


I still have got the same error. 


For the information, the program is running a genetic algorithm.

 

Could you please help me ? 


Best Regards, 


Dilek Arikan

Reply | Threaded
Open this post in threaded view
|

Re: Too many open files error

Eduard Karel de Jong
Hi,

This error you report is a very low level one, and  indicates a clear bug in the code of the program where it doesn't close a file that has been opened. 

Why this bug didn't matter on Windows, is a good question: it might be that that Windows does this closing internally, it also might be that the native library that implements the file access for Java on Windows and Unix/Mac are a subtly different.

This errors has almost certainly error has no relationship to Java or NetBeans.

If you have access to the code you could start hunting for this bug. And, if you are lucky the FileNotFoundException arises from the location in teh code that does the opening of files that don't get closed properly, i.e. closed under all circumstances.

Cheers,
Eduard de Jonh

DİLEK ARIKAN wrote:
Hello, 

I am using MacOS Sierra 10.12.6 (16G29). The program that i ran millions of times in Windows environment, is not working with below error on Mac OS after switching to Mac. 

1 The file d4_2 could not be opened java.io.FileNotFoundException: d4_2 (Too many open files)


Current limits are : 

maxfiles    64000          524288 


I still have got the same error. 


For the information, the program is running a genetic algorithm.

 

Could you please help me ? 


Best Regards, 


Dilek Arikan