Hi Karthik,
For Java SE 5.0 or less you can probably try to use dvm:::monitor-*
probes from ''dvm'' provider
(https://solaris10-dtrace-vm-agents.dev.java.net/) to write Deadlock
detection script.
If you use Java SE 6 then you can try to use built-in JVM probes
hotspot:::monitor-*
(http://blogs.sun.com/roller/page/kamg?entry=built_in_dtrace_probes_in).
But probably more simple way is to use jstack or jconsole (which is part
of Java SE 6) to detect deadlocks.
(for more information read:
http://weblogs.java.net/blog/mandychung/archive/2005/11/thread_dump_and_1.html)
-katya
karthik k wrote:
> Hi,
> I am facing a Nested Monitor Deadlock situation in my java application.
> Is there any DTrace script to detect Deadlock with its trace.
>
> Regards
> Karthik
>
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1?/min.
>
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
>
>
>
>
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
>------------------------------------------------------------------------
>
>_______________________________________________
>dtrace-discuss mailing list
>dtrace-discuss at opensolaris.org
>
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
>