Comment #2 on issue 39 by idaroglou: EpisodeLogger in RLVizLib opens lots
of files.
http://code.google.com/p/rl-viz/issues/detail?id=39
I think I've found the culprit:
private void makeTheFile() {
try {
theLogFile = File.createTempFile("episode", "log");
//**** you should probably call: theLogFile.close() here..
//Make sure the file doesn't outlive the program's life
theLogFile.deleteOnExit();
} catch (IOException ex) {
System.err.println("Error ::was unable to create temporary log
file in
EpisodeLogger. Suppressing further log messages after Exception printout.");
System.err.println(ex);
failedWithError = true;
}
}
I'm not quite sure whether File.createTempFile closes the newly generated
file
descriptor, but in case it doesn't, that's what might explain why the
system runs out
of available file descriptors (too many open files).
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings