output of jstack command
Bernd Eckenfels
ecki at zusammenkunft.net
Mon May 29 18:25:28 UTC 2017
And just because nobody mentioned it, don't forget `jcmd Thread.print -l`. I had the impression jcmd is preferred,over the older jps/jstack/jmap gang?
Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: serviceability-dev <serviceability-dev-bounces at openjdk.java.net> on behalf of Robbin Ehn <robbin.ehn at oracle.com>
Sent: Monday, May 29, 2017 5:33:53 PM
To: Ram Krishnan
Cc: serviceability-dev at openjdk.java.net serviceability-dev at openjdk.java.net; Ray Hindman; Asif Qamar
Subject: Re: output of jstack command
Hi,
The text stream originates from:
void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) {
in hotspot/src/share/vm/runtime/thread.cpp L4491
and jstack only forwards that to your terminal.
/Robbin
On 05/25/2017 05:07 PM, Kirk Pepperdine wrote:
> Hi Ramki,
>
> The source for jstack is in openJDK. Feel free to create your own copy of jstack where you can output the information in any format he likes. If you are suggesting that the existing format be changed do be aware that there are many tools that expect the current format. These have been adjusted to a change in format that was introduced with Java 8. I don’t see any reason why the format shouldn’t include information that is currently missing and is relevant. However I’d want to make sure that is is relevant and important before breaking the tool chain once again.
>
> I believe thread ids are already in the header. Certainly thread names are there. Not sure what you mean by types of threads.
>
> Kind regards,
> Kirk
>> On May 25, 2017, at 4:59 PM, Daniel D. Daugherty <daniel.daugherty at oracle.com> wrote:
>>
>> Adding serviceability-dev at ... since jstack is a Serviceability tool.
>>
>> I believe jstack is experimental which means the output format can
>> change at any time...
>>
>> Dan
>>
>> On 5/25/17 8:35 AM, Ram Krishnan wrote:
>>> Hi,
>>>
>>> I would like to leverage the output of jstack command for extracting
>>> additional information about the type of threads, thread ids etc. Since I
>>> will be parsing the output, I need the precise format. Is there any
>>> documentation on jstack output format changes and the openjdk release(s)
>>> where the changes happened?
>>>
>>> Thanks in advance.
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20170529/efbda268/attachment.html>
More information about the serviceability-dev
mailing list