che icon indicating copy to clipboard operation
che copied to clipboard

Leak of open file descriptors

Open skabashnyuk opened this issue 10 years ago • 3 comments

[Short description of problem here]

Reproduction Steps: A lot of start and stop of new processes.

Expected behavior: All opened files descriptors will be closed Observed behavior:

Each time we start new process with MachineProcessManager.exec method we open a new file with process output. But this descriptor never released back. I'm proposing to close it and delete output file during process termination.

skabashnyuk avatar Sep 28 '16 13:09 skabashnyuk

We definitely need to fix that. I have several monitoring system warning already. I used to restart codenvy service. It is a problem for on-prem installations.

skryzhny avatar Sep 28 '16 13:09 skryzhny

Actually, deletion of output file doesn't release file descriptor. And I think, that log file shouldn't be deleted after process termination. May be after workspace stop, but it is clean up problem, which doesn't concerned with leaking of file descriptors.

mmorhun avatar Oct 19 '16 10:10 mmorhun

Fixed

mmorhun avatar Oct 20 '16 06:10 mmorhun