-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
句柄打满监控 #24
Comments
简单的思路似乎是可以先采集 fd 数: 然后当 fd 数异常飚升时,用 lsof -p pid 把信息采集下来 不过感觉这个采集 fd 数成本好像有点高啊。。 等我把采集函数给拆掉应该可以试试 |
"不过感觉这个采集 fd 数成本好像有点高啊。。" 对,我们线上有高并发模块,物理机部署,采集 fd 数 挺慢的。。 |
@xiezhenouc 看你描述是大流量,如果是连接数的socket句柄导致的,通过goroutine的dump是可以抓到现场的。 |
嗯,感谢大佬~ |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最近遇到流量比较大的模块,可能会出现too many files句柄打满错误。其中一个原因是物理机句柄限制。另外一个,由于是偶现,抓不到现场,现在还不知道原因。。所以这个工具是否可以帮助我们抓到这个现场,定位到具体的问题。
The text was updated successfully, but these errors were encountered: