Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLeaking fds until rlimits reached #4498
Comments
This comment has been minimized.
This comment has been minimized.
|
@crosbymichael |
This comment has been minimized.
This comment has been minimized.
|
@sipian thanks! |
This comment has been minimized.
This comment has been minimized.
|
@crosbymichael |
This comment has been minimized.
This comment has been minimized.
|
Ya. The consul setup is pretty standard. Prom Args:
I had a bug that was SIGHUP'ing prom every 5min to cause it to reload the configuration and after I fixed that, it's still growing but at a slower rate now. So it is probably related to SIGHUP and reload causing the fast consumption. You can see after the 19th, when i pushed the fix, it is still growing but not as fast as before. |
This comment has been minimized.
This comment has been minimized.
|
Yeah looks like repeated SIGHUP is causing this. |
This comment has been minimized.
This comment has been minimized.
|
Well I can tell you that it isn't expected ;) Probably just a small bug somewhere on reload not causing old conns or clients to be closed before creating new ones. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil And after reloading config, I think this might be the culprit. According to net/http-godoc,
golang/go#4049 might be of interest. |
This comment has been minimized.
This comment has been minimized.
|
Does this fix it: 1cd29f7 |
This comment has been minimized.
This comment has been minimized.
|
Yeah, the above commit fixes it on my consul setup. I didn't notice this before but a similar issue has been reported before #4425. |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve What are your views on this? |
This comment has been minimized.
This comment has been minimized.
|
Try to replicate it before patching it? In general it is a bad idea to fix code that you haven't run. You could test it, but sadly I don't think any SD mechanisms have tests :( |
This comment has been minimized.
This comment has been minimized.
|
Yes it seems identical to #4425. Hopefully @crosbymichael will confirm that it fixes the problem. |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve |
This comment has been minimized.
This comment has been minimized.
|
Thanks, i'll build and deploy master and let you know if that commit fixes it. |
This comment has been minimized.
This comment has been minimized.
|
I'm closing this as it is most probably fixed in #4443 Please let me know if it's otherwise. |


crosbymichael commentedAug 14, 2018
Bug Report
What did you do?
Run prom with consul discovery
What did you expect to see?
Prom not become unresponsive and eat fds.
What did you see instead? Under which circumstances?
Environment
System information:
Linux 4.15.0-30-generic x86_64Prometheus version:
2.3.2
Prometheus configuration file: