2 Replies Latest reply on Sep 15, 2010 11:10 AM by peterj

    Heap Dump in Jboss.

    dokiinfy

      Hi,

       

      I am trying to take heap dump and I have configured this "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$JBOSS_HOME/server/heapDumps/" in run.conf. When I am trying to use the command "kill -3 <PID>, still it is generating the dump on the console itself. So can some one please guide me how to redirect this even on using "kill -3 <PID>"

        • 1. Re: Heap Dump in Jboss.
          wdfink

          Hi,

           

          if you are using run.sh you should redirect the STDOUT and STDERR to a file

          e.g.

          bin/run.sh -c default 2>&1 >server/default/log/start.log &

          • 2. Re: Heap Dump in Jboss.
            peterj

            The HeapDumpPath is used only when a heap dump is performed on an out-of-memory error, it is not used when you signal for a head dump. Besides, this functionality is entirely based on the JVM (JBoss AS has noithing to do with it), so you might try asking the supplier of your JVM about this (which I assume is Oracle).