# While connecting to activemq using metricbeat, I am getting that error like error making http request: Post transport connection broken: malformed HTTP status code "MaxInactivityDurationInitalDelay"

**URL:** <https://discuss.elastic.co/t/while-connecting-to-activemq-using-metricbeat-i-am-getting-that-error-like-error-making-http-request-post-transport-connection-broken-malformed-http-status-code-maxinactivitydurationinitaldelay/335537>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 8, 2023, 1:26pm UTC](https://discuss.elastic.co/t/while-connecting-to-activemq-using-metricbeat-i-am-getting-that-error-like-error-making-http-request-post-transport-connection-broken-malformed-http-status-code-maxinactivitydurationinitaldelay/335537 "2023-06-08T13:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_Sett](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranjal_sett/32/98834_2.png) [@Pranjal\_Sett](https://discuss.elastic.co/u/Pranjal_Sett)\
**Post date:** [June 8, 2023, 1:26pm UTC](https://discuss.elastic.co/t/while-connecting-to-activemq-using-metricbeat-i-am-getting-that-error-like-error-making-http-request-post-transport-connection-broken-malformed-http-status-code-maxinactivitydurationinitaldelay/335537/1 "2023-06-08T13:26:12Z")

</div>

Hi Team,

I am getting the below error while connecting to activemq through metricbeat.  
" ERROR module/wrapper.go:259 Error fetching data for metricset activemq.queue: error making http request: Post "https://:/%3FinitialReconnectDelay=1000&maxReconnectAttempts=3&startupMaxReconnectAttempts=3&maxReconnectDelay=300&randomize=true&timeout=300": net/http: HTTP/1.x transport connection broken: malformed HTTP status code "MaxInactivityDurationInitalDelay\x06\x00\x00\x00\x00\x00\x00'\x10\x00\x13MaxFrameSizeEnabled\x01\x01\x00\x0fProviderVersion\t\x00\x065.18.0" "

activemq.yml file setting:

- module: activemq  
metricsets: ['broker', 'queue', 'topic']  
period: 10s  
hosts: [':']  
path: '?initialReconnectDelay=1000&maxReconnectAttempts=3&startupMaxReconnectAttempts=3&maxReconnectDelay=300&randomize=true&timeout=300'  
username: user # default username  
password: \*\*\*\*\* # default password  
ssl.verification\_mode: none

jolakia.yml settings:

- module: jolokia  
#metricsets: ["jmx"]  
period: 10s  
hosts: [":"]  
namespace: "metrics"  
path: "?initialReconnectDelay=1000&maxReconnectAttempts=3&startupMaxReconnectAttempts=3&maxReconnectDelay=300&randomize=true&timeout=300"  
username: "user"  
password: "\*\*\*\*"  
jmx.mappings:  
#- mbean: 'java.lang:type=Runtime'
# attributes:

# - attr: Uptime

# field: uptime
#- mbean: 'java.lang:type=Memory'
# attributes:

# - attr: HeapMemoryUsage

# field: memory.heap\_usage

# - attr: NonHeapMemoryUsage

# field: memory.non\_heap\_usage

# GC Metrics - this depends on what is available on your JVM
#- mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
# attributes:

# - attr: CollectionTime

# field: gc.cms\_collection\_time

# - attr: CollectionCount

# field: gc.cms\_collection\_count

# - mbean:

# attributes:

# - attr: Uptime

# field: uptime

jmx.application:  
jmx.instance:

where I am missing here? Please provide me some suggestions on that

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2023, 3:26pm UTC](https://discuss.elastic.co/t/while-connecting-to-activemq-using-metricbeat-i-am-getting-that-error-like-error-making-http-request-post-transport-connection-broken-malformed-http-status-code-maxinactivitydurationinitaldelay/335537/2 "2023-07-06T15:26:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
