Check the open FD limit for a given process in Linux

后端 未结 7 1848
粉色の甜心
粉色の甜心 2020-12-04 10:13

I recently had a Linux process which “leaked” file descriptors: It opened them and didn\'t properly close some of them.

If I had monitored this, I could tell – in adv

7条回答
  •  日久生厌
    2020-12-04 11:04

    You can try to write script which periodically call lsof -p {PID} on given pid.

提交回复
热议问题