# Logstash.instrument.periodicpoller.jvm purpose / how to disable via logstash settings?

**URL:** <https://discuss.elastic.co/t/logstash-instrument-periodicpoller-jvm-purpose-how-to-disable-via-logstash-settings/179857>\
**Category:** Logstash\
**Created:** [May 6, 2019, 11:02pm UTC](https://discuss.elastic.co/t/logstash-instrument-periodicpoller-jvm-purpose-how-to-disable-via-logstash-settings/179857 "2019-05-06T23:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgeels](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bgeels/32/25678_2.png) [@bgeels](https://discuss.elastic.co/u/bgeels)\
**Post date:** [May 6, 2019, 11:02pm UTC](https://discuss.elastic.co/t/logstash-instrument-periodicpoller-jvm-purpose-how-to-disable-via-logstash-settings/179857/1 "2019-05-06T23:02:40Z")

</div>

Hi All,

I'm trying to diagnose where time is going starting up my logstash instance. I have multiple pipelines with many filters in each.

Watching the debug logs I see many statements like the below ( I'm not positive but it seem like it's likely one per plugin). It seems like these are just metric collectors for use via the API to perform some introspection? ( I may be wrong ).

I'm also guessing that this may disable creating them?

> <https://github.com/elastic/logstash/blob/master/logstash-core/lib/logstash/environment.rb#L37>

I've tried setting:  
`metric.collect: false`  
to no avail in /etc/logstash/logstash.yml. ( After setting that and restarting logstash I still see the below in the logs ).

Any help would be greatly appreciated. Thanks!

```
[2019-05-06T22:45:01,289][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:01,290][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2019-05-06T22:45:06,296][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:06,297][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2019-05-06T22:45:11,304][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:11,304][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2019-05-06T22:45:16,311][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:16,312][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2019-05-06T22:45:21,319][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:21,320][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
[2019-05-06T22:45:26,381][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Young Generation"}
[2019-05-06T22:45:26,382][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"G1 Old Generation"}
```

---

<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:** [June 3, 2019, 11:06pm UTC](https://discuss.elastic.co/t/logstash-instrument-periodicpoller-jvm-purpose-how-to-disable-via-logstash-settings/179857/2 "2019-06-03T23:06:12Z")

</div>

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