2 Replies Latest reply on Aug 20, 2008 4:19 PM by aberryjr

    ThreadDump to a File

    mummanas

      Hi,
      We are using Jboss4.0.5 Version on the solaris. I want to redirect the Threaddump details to a file. we are running the Jboss server in the silent mode.

      Could you please help me regarding.

      Thanks
      Srinivas

        • 1. Re: ThreadDump to a File
          peterj

          Providing a thread dump is the responsibility of the JVM, not JBossAS. A JVM thread dump always goes to the stdout. You could always redirect stdout to a file when launching JBossAS.

          Other alternatives:

          * Use JConsole of VisualVM - they both let you take thread dumps and I believe you can save them to a file

          * Use the listThreadDump operation of the jboss.system:type=ServerInfo Mbean. If you did this using twiddle you could redirect the results to a file.

          • 2. Re: ThreadDump to a File

            if you want to do it on command you can use jstack (pid) > threadDump.out

            Alex.