M
M
mitaichik2017-07-18 23:32:12
Java
mitaichik, 2017-07-18 23:32:12

Too many open files - what kind of beast is this?

Added this code:

try (
  FileOutputStream fout = new FileOutputStream(filepath);
  ObjectOutputStream oos = new ObjectOutputStream(fout)
) {
  oos.writeObject(item);
}

Called frequently (5 times per second), after a day the application crashes with Too many open files.
Before this code worked for months...
What am I doing wrong? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question