# Logstash slow processing

**URL:** <https://discuss.elastic.co/t/logstash-slow-processing/80815>\
**Category:** Logstash\
**Created:** [March 31, 2017, 1:06pm UTC](https://discuss.elastic.co/t/logstash-slow-processing/80815 "2017-03-31T13:06:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankush\_goswami](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ankush\_goswami](https://discuss.elastic.co/u/ankush_goswami)\
**Post date:** [March 31, 2017, 1:06pm UTC](https://discuss.elastic.co/t/logstash-slow-processing/80815/1 "2017-03-31T13:06:02Z")

</div>

Hey Hi Team,

Want to know the current number of queued events in logstash using an http server being introduced in logstash 5.0. Aside to this I can see my logstash processing slow. I want to know the reason behind this. Please see below is my jvm status.  
curl -s localhost:9600/\_node/jvm?pretty

````auto
  "host" : "ip-172-13-19-58",
  "version" : "5.1.1",
  "http_address" : "127.0.0.1:9600",
  "id" : "aca42774-1c03-4cd1-b93e-72e33cdd7401",
  "name" : "ip-172-31-9-158",
  "jvm" : {
    "pid" : 23951,
    "version" : "1.8.0_111",
    "vm_name" : "OpenJDK 64-Bit Server VM",
    "vm_version" : "1.8.0_111",
    "vm_vendor" : "Oracle Corporation",
    "start_time_in_millis" : 1490867448456,
    "mem" : {
      "heap_init_in_bytes" : 2147483648,
      "heap_max_in_bytes" : 2130051072,
      "non_heap_init_in_bytes" : 2555904,
      "non_heap_max_in_bytes" : 0
    },
    "gc_collectors" : ["ParNew", "ConcurrentMarkSweep"]
  }```

I also want to understand the difference between heap_init_in_bytes and heap_max_in_bytes. In jvm.options my conf is:-- -Xms2g
-Xmx2g
````

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 31, 2017, 1:45pm UTC](https://discuss.elastic.co/t/logstash-slow-processing/80815/2 "2017-03-31T13:45:20Z")

</div>

> Want to know the current number of queued events in logstash

Not sure what you mean by this. Logstash doesn't queue events.

> Aside to this I can see my logstash processing slow. I want to know the reason behind this.

How do you know that Logstash is your bottleneck? What kind of throughput are you getting? On what kind of hardware? What does your configuration look like?

---

<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:** [April 28, 2017, 1:45pm UTC](https://discuss.elastic.co/t/logstash-slow-processing/80815/3 "2017-04-28T13:45:54Z")

</div>

Closed on April 28, 2017, 1:45pm UTC

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