# Input painfully slow while fetching messages from activemq topic

**URL:** <https://discuss.elastic.co/t/input-painfully-slow-while-fetching-messages-from-activemq-topic/165765>\
**Category:** Logstash\
**Created:** [January 25, 2019, 12:00pm UTC](https://discuss.elastic.co/t/input-painfully-slow-while-fetching-messages-from-activemq-topic/165765 "2019-01-25T12:00:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueSpirit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluespirit/32/44056_2.png) [@BlueSpirit](https://discuss.elastic.co/u/BlueSpirit)\
**Post date:** [January 25, 2019, 12:00pm UTC](https://discuss.elastic.co/t/input-painfully-slow-while-fetching-messages-from-activemq-topic/165765/1 "2019-01-25T12:00:08Z")

</div>

I have configured JMS input in logstash to subscribe to JMS topic messages and push messages to elastic search.

Current config:

```
input {

  jms {
	  id => "my_first_jms"
	  yaml_file => "D:\softwares\logstash-6.4.0\config\jms-amq.yml"
	  yaml_section => "dev"
	  use_jms_timestamp => true
	  pub_sub => true
	  destination => "mytopic"
# threads => 50
	}
}

filter {
	json{
	  source => "message"
	}
	
}

output {
	stdout { codec => json }

	elasticsearch {
	  hosts => ['http://localhost:9401']
	  index => "jmsindex"
  }
}

```

System specs:  
RAM: 16 GB  
Type: 64 bit  
Processor: Intel i5-4570T CPU @ 2.9 GHz

This is extremely slow. Like 1 message every 3-4 minutes. How should I debug to figure out what is missing?

Note: Before this, I was doing this with @JMSListener in java and that could process 200-300 records per sec easily.

---

<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:** [February 22, 2019, 12:00pm UTC](https://discuss.elastic.co/t/input-painfully-slow-while-fetching-messages-from-activemq-topic/165765/2 "2019-02-22T12:00:09Z")

</div>

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