# \[ELK\] jstack doesn't produce results

**URL:** <https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478>\
**Category:** Elasticsearch\
**Created:** [April 4, 2019, 7:23pm UTC](https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478 "2019-04-04T19:23:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessio\_Creo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alessio_creo/32/43381_2.png) [@Alessio\_Creo](https://discuss.elastic.co/u/Alessio_Creo)\
**Post date:** [April 4, 2019, 7:23pm UTC](https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478/1 "2019-04-04T19:23:28Z")

</div>

Hi there,

I'm having some troubles with a server, part of a 3 nodes cluster in a production environment, running ELK 6.7 that goes out of memory. To do some troubleshooting I've tried to execute  
`jstack -l pid`  
to see how many threads is running but the command takes 100% of CPU and produce no results even after 20 minutes. Trying with another 3 nodes cluster with ELK 6.2.4 version the results come out in seconds.  
I would know if it is a normal behaviour or if there is some recurrence in java processes for new version.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 5, 2019, 8:44am UTC](https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478/2 "2019-04-05T08:44:17Z")

</div>

Just something I usually stumble over myself when using jstack. You need to run it as the same user running the java process in order to get results. Is this the case?

---

<div class="post-metadata">

**Author:** ![Alessio\_Creo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alessio_creo/32/43381_2.png) [@Alessio\_Creo](https://discuss.elastic.co/u/Alessio_Creo)\
**Post date:** [April 5, 2019, 9:07am UTC](https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478/3 "2019-04-05T09:07:21Z")

</div>

Thank you for the answer.

My bad. That was the problem. Thnks a lot.

---

<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:** [May 3, 2019, 9:07am UTC](https://discuss.elastic.co/t/elk-jstack-doesnt-produce-results/175478/4 "2019-05-03T09:07:22Z")

</div>

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