# Kafka jmxtrans to InfluxDB Caused by: java.net.SocketTimeoutException: connect timed out

**URL:** <https://community.influxdata.com/t/kafka-jmxtrans-to-influxdb-caused-by-java-net-sockettimeoutexception-connect-timed-out/28424>\
**Category:** Systems\
**Created:** [February 2, 2023, 4:40pm UTC](https://community.influxdata.com/t/kafka-jmxtrans-to-influxdb-caused-by-java-net-sockettimeoutexception-connect-timed-out/28424 "2023-02-02T16:40:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeep.girijavallab](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pradeep.girijavallab](https://community.influxdata.com/u/pradeep.girijavallab)\
**Post date:** [February 2, 2023, 4:40pm UTC](https://community.influxdata.com/t/kafka-jmxtrans-to-influxdb-caused-by-java-net-sockettimeoutexception-connect-timed-out/28424/1 "2023-02-02T16:40:53Z")

</div>

We are trying to push kafka java parameter using jmxtrans to influxDB. We are getting below error in jmxtrans

=========================  
INFO | jvm 1 | 2023/02/02 08:37:27 | 2023-02-02 08:37:27 [jmxtrans-result-2] WARN c.g.jmxtrans.jmx.ResultProcessor - Could not write results of query Query(objectName=kafka.server:type=BrokerTopicMetrics,name=FailedProduceRequestsPerSec,topic=REPL-exp1-us, keys=, attr=[Count, OneMinuteRate], typeNames=, resultAlias=kafka.server.BrokerTopicMetrics.FailedProduceRequestsPerSec.REPL-exp1-us, useObjDomainAsKey=false, allowDottedKeys=false, useAllTypeNames=false, outputWriterInstances=[com.googlecode.jmxtrans.model.output.support.ResultTransformerOutputWriter@306577, BaseOutputWriter(typeNames=, debugEnabled=false, settings={}, valueTransformer=com.googlecode.jmxtrans.model.results.IdentityValueTransformer@tyutrd5b), com.googlecode.jmxtrans.model.output.support.ResultTransformerOutputWriter@65488]) to output writer com.googlecode.jmxtrans.model.output.support.ResultTransformerOutputWriter@77567dfh  
INFO | jvm 1 | 2023/02/02 08:37:27 | org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: connect timed out  
INFO | jvm 1 | 2023/02/02 08:37:27 | at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:514)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at org.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:312)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at com.googlecode.jmxtrans.model.output.InfluxDbWriter.doWrite(InfluxDbWriter.java:208)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at com.googlecode.jmxtrans.model.output.support.ResultTransformerOutputWriter.doWrite(ResultTransformerOutputWriter.java:53)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at com.googlecode.jmxtrans.jmx.ResultProcessor$1.run(ResultProcessor.java:63)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.lang.Thread.run(Thread.java:745)  
INFO | jvm 1 | 2023/02/02 08:37:27 | Caused by: java.net.SocketTimeoutException: connect timed out  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.PlainSocketImpl.socketConnect(Native Method)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at java.net.Socket.connect(Socket.java:589)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.platform.Platform.connectSocket(Platform.java:124)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:223)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:149)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:195)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at org.influxdb.impl.GzipRequestInterceptor.intercept(GzipRequestInterceptor.java:42)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:144)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at okhttp3.RealCall.execute(RealCall.java:69)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at retrofit2.OkHttpCall.execute(OkHttpCall.java:180)  
INFO | jvm 1 | 2023/02/02 08:37:27 | at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:506)  
INFO | jvm 1 | 2023/02/02 08:37:27 | … 9 common frames omitted
