首页 > 其他分享 >prometheus报错too many open files解决

prometheus报错too many open files解决

时间:2023-06-14 20:57:54浏览次数:64  
标签:files many prometheus 报错 too open

背景:

公司用的prometheus突然有一天报too many open files错误,通过网上搜索及查看prometheus日志发现,prometheus的open files限制只有1024,太小了

 但是系统的ulimit上限很大,因此需要解决prometheus上限只有1024的问题

解决方案:

找到问题以后,解决就好说了,因为我们是用systemd管理的prometheus,因此在systemd的配置里加上LimitNOFILE=102400(具体值视实际情况定)即可

 参考文章:

Dealing with “too many open files”

Prometheus打开缓慢问题解决方案:避免Too many open files错误

标签:files,many,prometheus,报错,too,open
From: https://www.cnblogs.com/276815076/p/17481312.html

相关文章