# Thread dump - where does it get logged?

**URL:** https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814
**Category:** Elasticsearch
**Created:** [May 22, 2012, 8:38pm UTC](https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814 "2012-05-22T20:38:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)
#### Post date: [May 22, 2012, 8:38pm UTC](https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814/1 "2012-05-22T20:38:21Z")

</div>

Hi,

I'm trying to do a thread dump using "sudo /etc/init.d/elasticsearch dump",  
but all I get is this in /wrapper.log file:

STATUS | wrapper | 2012/05/22 16:26:40 | Dumping JVM state.

I also tried directly kill -QUITing the ES JVM process, but couldn't find  
the dump anywhere. I didn't see it in /logs/.log  
where I thought I'd see it.

Any pointers would be greatly appreciated.

## Thanks, Otis

Search Analytics - [http://sematext.com/search-analytics/index.html](http://sematext.com/search-analytics/index.html)  
Scalable Performance Monitoring - [http://sematext.com/spm/index.html](http://sematext.com/spm/index.html)

---

<div class="post-metadata">

### Author: ![Mauricio\_Linhares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mauricio_linhares/32/880_2.png) [@Mauricio\_Linhares](https://discuss.elastic.co/u/Mauricio_Linhares)
#### Post date: [May 22, 2012, 8:41pm UTC](https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814/2 "2012-05-22T20:41:24Z")

</div>

Have you tried:

jstack -l PID\_HERE

?

- 

Maurício Linhares  
[http://techbot.me/](http://techbot.me/) - [http://twitter.com/#!/mauriciojr](http://twitter.com/#!/mauriciojr)

On Tuesday, May 22, 2012 at 5:38 PM, Otis Gospodnetic wrote:

> Hi,
> 
> I'm trying to do a thread dump using "sudo /etc/init.d/elasticsearch dump", but all I get is this in /wrapper.log file:
> 
> STATUS | wrapper | 2012/05/22 16:26:40 | Dumping JVM state.
> 
> I also tried directly kill -QUITing the ES JVM process, but couldn't find the dump anywhere. I didn't see it in /logs/.log where I thought I'd see it.
> 
> Any pointers would be greatly appreciated.
> 
> ## Thanks, Otis
> 
> Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)  
> Scalable Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)

---

<div class="post-metadata">

### Author: ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)
#### Post date: [May 23, 2012, 8:47pm UTC](https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814/3 "2012-05-23T20:47:08Z")

</div>

How why would I use something as simple as jstack when I can use kill  
-QUIT? Just kidding - that worked, thanks!

## Otis

Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)  
Scalable Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)

On Tuesday, May 22, 2012 4:41:24 PM UTC-4, Maurício Linhares wrote:

> Have you tried:
> 
> jstack -l PID\_HERE
> 
> ?
> 
> - 
> 
> Maurício Linhares  
> [http://techbot.me/](http://techbot.me/) - [http://twitter.com/#!/mauriciojr](http://twitter.com/#!/mauriciojr)
> 
> On Tuesday, May 22, 2012 at 5:38 PM, Otis Gospodnetic wrote:
> 
> Hi,
> 
> I'm trying to do a thread dump using "sudo /etc/init.d/elasticsearch  
> dump", but all I get is this in /wrapper.log file:
> 
> STATUS | wrapper | 2012/05/22 16:26:40 | Dumping JVM state.
> 
> I also tried directly kill -QUITing the ES JVM process, but couldn't find  
> the dump anywhere. I didn't see it in /logs/.log  
> where I thought I'd see it.
> 
> Any pointers would be greatly appreciated.
> 
> ## Thanks, Otis
> 
> Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)  
> Scalable Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)

---

<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, 2017, 3:27am UTC](https://discuss.elastic.co/t/thread-dump-where-does-it-get-logged/7814/4 "2017-07-06T03:27:29Z")

</div>


