Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

怎么排查Java应用句柄数(proc/pid/fd)异常的问题?

最近处理生产环境问题时发现,Linux下/proc/pid/fd有异常增长的问题,怀疑是代码缺陷,想要定位到具体的线程和代码块。

我目前只能根据pid找到对应的fd目录,通过ls -al /proc/pid/fd查看到对应的相关信息,可以看到有很多的socket连接,有一个innode可以与/proc/pid/net/tcp中对应上,但是我不知道怎么将tcp的信息与线程tid对应上,以及如何与实际的代码块对应上。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...