IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  IS HeapDump

    Posted Wed November 19, 2014 01:01 AM

    Hello,

    wM: 8.2
    Java: 1.6

    Kill -3

    To take heap dump I have to kill the process, But which process id I have to give?

    For example, which one from below and why?

     UID   PID  PPID   C    STIME TTY         TIME CMD
    wdis003 28079 28048   0   Nov 06 ?         671:58 /opt/jdk1.6.0_85/jre/bin/sparcv9/java -ms1G -mx6G -XX:MaxPermSize=256M -server
    wdis003 28048  6685   0   Nov 06 ?           0:00 /bin/sh ./server.sh
    

    Thanks in advance.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: IS HeapDump

    Posted Wed November 19, 2014 01:57 AM

    Did you mean “Generate JVM Thread Dump”


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 3.  RE: IS HeapDump

    Posted Wed November 19, 2014 02:09 AM

    yes.

    also for taking heap dump using Jmap command, which Process Id I have to give?

    jmap -d64 -F -dump:live,format=b,file=/opt//IntegrationServer/heap.bin


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: IS HeapDump

    Posted Wed November 19, 2014 08:56 AM

    The answer is in your own post, kill reqires the pid (process id) ppid is the parent pocess id. You can get the pid by using ps or top.

    One advice: If using commands like kill you should know unix and unix process handling basics, otherwise you may damage the running system.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 5.  RE: IS HeapDump

    Posted Wed November 19, 2014 09:04 AM

    Thanks Martin.

    I am new to wM Administration.

    But I want to know which process id I have to kill. There are a list of process running for particular IS.

    for example below in wM 8.2 IS- Dev01 and JVM 1.6

    UID PID PPID C STIME TTY TIME CMD
    Dev01 7194 5907 0 05:56:38 pts/1 0:00 ps -ef
    Dev01 29730 29267 0 05:53:10 ? 0:00 /usr/lib/ssh/sshd
    Dev01 29267 29266 0 05:52:57 ? 0:00 /usr/lib/ssh/sshd
    Dev01 17220 6685 0 Nov 12 ? 0:00 /bin/sh ./server.sh
    Dev01 5907 5675 0 05:56:16 pts/1 0:00 -sh
    Dev01 29156 6685 0 Nov 14 ? 0:05 ./dsmagent 0 0 0 0 /var/tmp/javagui8774903728010394453.tmp
    Dev01 17273 17220 0 Nov 12 ? 1535:50 /opt/jdk1.6.0_85/jre/bin/sparcv9/java -ms3G -mx10G -XX:MaxPermSize=256M -server

    which process I have to kill to and why that process?

    I guess either one of below

    Dev01 17220 6685 0 Nov 12 ? 0:00 /bin/sh ./server.sh
    Dev01 17273 17220 0 Nov 12 ? 1535:50 /opt/jdk1.6.0_85/jre/bin/sparcv9/java -ms3G -mx10G -XX:MaxPermSize=256M -server.

    Thanks


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 6.  RE: IS HeapDump

    Posted Wed November 19, 2014 09:11 AM

    You have to find the pid of the JVM thread of the IS. Usually this is a child process of the server.sh starting the IS (if it is started by script and not as daemon or by Command Central). But I wont tell you a specific ID from you system just by looking on a screendump. That’s far to risky. Finding the correct pid on your system requires know how of your specific setup.
    And please be aware: Everything in the forums here comes without warranty and application is on you own risk.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 7.  RE: IS HeapDump

    Posted Wed November 19, 2014 10:28 AM

    What is your actual requirement? If you are looking for jvm thead dump you can get it from IS admin page itself.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB