jmx_exporter icon indicating copy to clipboard operation
jmx_exporter copied to clipboard

rmi timeout

Open congyewudi opened this issue 3 years ago • 3 comments
trafficstars

How to configure the timeout of jmx_prometheus_httpserver rmi

congyewudi avatar Jun 25 '22 13:06 congyewudi

connectTimeout and responseTimeout

congyewudi avatar Jun 25 '22 13:06 congyewudi

I add parameters(-Dsun.rmi.transport.tcp.responseTimeout=10000) that have no effect on the command line

congyewudi avatar Jun 25 '22 13:06 congyewudi

Hmm, I don't see why standard configuration wouldn't work. The JmxScraper creates a straightforward MBeanServerConnection:

https://github.com/prometheus/jmx_exporter/blob/master/collector/src/main/java/io/prometheus/jmx/JmxScraper.java#L95-L96

fstab avatar Jun 26 '22 20:06 fstab

Closing as stale. Please reopen if you would like to continue the discussion.

dhoard avatar Jul 08 '23 04:07 dhoard