[
https://issues.apache.org/jira/browse/OOZIE-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729941#comment-13729941
]
Rohini Palaniswamy commented on OOZIE-1388:
-------------------------------------------
Best way to debug such cases is
http://nurkiewicz.blogspot.com/2012/08/which-java-thread-consumes-my-cpu.html
http://ileriseviye.wordpress.com/2012/08/28/variation-on-a-theme-which-java-thread-consumes-the-most-of-your-cpu/
This information is not available via Java APIs though unless we use
sun.jvm.hotspot classes (https://gist.github.com/rednaxelafx/843622) which will
not be compatible with non-sun jvms. Added a simple page that shows memory
information, thread stack traces and thread cpu and user time for a given
period. This will still be very useful.
Page can be accessed as http://localhost:11000/oozie/admin/jvminfo.jsp
> Add a admin servlet to show thread stack trace and CPU usage per thread
> -----------------------------------------------------------------------
>
> Key: OOZIE-1388
> URL: https://issues.apache.org/jira/browse/OOZIE-1388
> Project: Oozie
> Issue Type: Improvement
> Reporter: Rohini Palaniswamy
> Assignee: Rohini Palaniswamy
> Attachments: OOZIE-1388-1.patch
>
>
> ThreadMXBean can be used to display the stack trace and also CPU usage per
> thread. The servlet will be very useful for debugging.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira