Observing CLOSE_WAIT connections when using JMX Exporter

275 views
Skip to first unread message

Angelin Christina

unread,
Jul 7, 2021, 3:50:12 AM7/7/21
to Prometheus Users
Hi ,

We are using JMX exporter with Kafka and Prometheus to scrape the metrics. 
When Kafka is on high load, JMX exporter takes long time to respond and Prometheus scrape times out ending up in lots of CLOSE_WAIT sockets. 

Is there any timeout that we can set on JMX exporter to clear those sockets? 
Or is there any alternate solution? 

Thanks,
Angelin

Dan Gherman

unread,
Apr 18, 2023, 9:35:33 AM4/18/23
to Prometheus Users
Did you solve this? I know it's a very old message, but I'm facing similar issues.
Using jmx-exporter-javaagent version 0.2.0.
Thanks!

Doug Hoard

unread,
Apr 21, 2023, 1:31:06 PM4/21/23
to Prometheus Users
Angelin,

Can you clarify where you are seeing the CLOSE_WAIT sockets? Prometheus server? Kafka server?
Reply all
Reply to author
Forward
0 new messages