Topic
  • 6 replies
  • Latest Post - ‏2013-03-13T15:10:04Z by SystemAdmin
SystemAdmin
SystemAdmin
642 Posts

Pinned topic ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

‏2013-02-07T14:57:56Z |
Hello

I installed IBM Support Assistant Team Server 5.0 Beta 2 using the Compressed Zip on a Linux system. The installation went fine and the startup as well.

Now I want to create Garbage Collection reports using command line commands. I read the following in the documentation that is accessible via the ISA Console help:

Use the following command to run GCMV from a command-line prompt:
isa_install_dir/rcp/rcplauncher -nosplash -application com.ibm.java.diagnostics.visualizer.headless.application gcmv_args

However, in my isa_install_dir, there is no rcp directory. In my whole isa_install_dir, I don't find the rcplauncher. (In ISA 4.1 this file was present, so I wonder if the documentation for 5.0 beta 2 is really up to date)

Does anyone know how to use the 5.0 beta GCMV in command line mode?
Greets
Updated on 2013-03-13T15:10:04Z at 2013-03-13T15:10:04Z by SystemAdmin
  • rbwright
    rbwright
    227 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-02-13T20:39:27Z  
    Hi Michiel,

    What edition of GCMV do you want to launch from the command line? The desktop edition is similar to what you get with ISA 4.1. The report edition runs the tool in headless mode with various parameters that you select when launching it from ISA 5.

    What's the reason you need to run GCMV with ISA 5 from the command line?

    Thanks,
    Russell
  • SystemAdmin
    SystemAdmin
    642 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-02-27T13:08:37Z  
    • rbwright
    • ‏2013-02-13T20:39:27Z
    Hi Michiel,

    What edition of GCMV do you want to launch from the command line? The desktop edition is similar to what you get with ISA 4.1. The report edition runs the tool in headless mode with various parameters that you select when launching it from ISA 5.

    What's the reason you need to run GCMV with ISA 5 from the command line?

    Thanks,
    Russell
    Hello

    Thanks for your reply, sorry I didn't notice it earlier...

    The ISA Build ID: 5.0.0.0_Beta2_20121212-0706
    The Garbage Collection and Memory Visualize (GCMV) Report verion: 2.6.0.201206251625

    If I click in the "Tool Help" of the Garbage Collection and Memory Visualize (GCMV) Report, I see a section "Running the tool from the command lin"... But so as I stated earlier, this section speaks about an "rpclauncher" utility and I don't find this on my filesystem.

    Greets
    Michiel
  • SystemAdmin
    SystemAdmin
    642 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-02-27T13:12:30Z  
    Hello

    Thanks for your reply, sorry I didn't notice it earlier...

    The ISA Build ID: 5.0.0.0_Beta2_20121212-0706
    The Garbage Collection and Memory Visualize (GCMV) Report verion: 2.6.0.201206251625

    If I click in the "Tool Help" of the Garbage Collection and Memory Visualize (GCMV) Report, I see a section "Running the tool from the command lin"... But so as I stated earlier, this section speaks about an "rpclauncher" utility and I don't find this on my filesystem.

    Greets
    Michiel
    Hello

    About the reason why we want to use the tool in command line, is that we have to create a lot of Garbage Collection Reports for stress tests.
    We have a procedure that goes on the server, cuts a specific section from a the GC logfile and then we have a script that, based on a ISA-template, creates a GC report for the GC logfile that we provide. This goes of course much faster then creating the report interactively...

    Greets
    Michiel
  • PeteRobbins
    PeteRobbins
    45 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-02-27T14:53:12Z  
    Hello

    About the reason why we want to use the tool in command line, is that we have to create a lot of Garbage Collection Reports for stress tests.
    We have a procedure that goes on the server, cuts a specific section from a the GC logfile and then we have a script that, based on a ISA-template, creates a GC report for the GC logfile that we provide. This goes of course much faster then creating the report interactively...

    Greets
    Michiel
    The documentation for running GCMV from command line is only applicable for the ISA v4 version as it uses the eclipse rcp which is part of the ISA installation.

    For ISA 5 we currently do not have a solution. The Report mode launched via the ISA 5 browser interface does in fact launch GCMV in the background so all the components are there to achieve what you want.

    I'll take a look and see if I can come up with a simple launch script.
  • PeteRobbins
    PeteRobbins
    45 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-02-28T11:23:34Z  
    Hello

    About the reason why we want to use the tool in command line, is that we have to create a lot of Garbage Collection Reports for stress tests.
    We have a procedure that goes on the server, cuts a specific section from a the GC logfile and then we have a script that, based on a ISA-template, creates a GC report for the GC logfile that we provide. This goes of course much faster then creating the report interactively...

    Greets
    Michiel
    If you run the GCMV report and look at the xxxxx-err.log you will see the command used to launch GCMV. eg;

    java -showversion -Xms128M -Xmx1024M -Dosgi.install.area=/home/robbins/ISA5/ToolBox/eclipse -Dosgi.sharedConfiguration.area=/home/robbins/ISA5/ToolBox/eclipse/configuration -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/home/robbins/ISA5/ToolBox/com.ibm.java.diagnostics.visualizer -Dosgi.configuration.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/config -Dosgi.instance.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/workspace -jar /home/robbins/ISA5/ToolBox/eclipse/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -consoleLog -application com.ibm.java.diagnostics.visualizer.headless.application -f /home/robbins/ISA5/isa/cases/0000/native_stderr.log -o /home/robbins/ISA5/isa/cases/0000/native_stderr.log-visualizer_ISA_PD -p Generational Heap

    Running that command from a command prompt works for me. Obviously you can set appropriate values for the temporary osgi.configuration.area and Dosgi.instance.area and of course the path to the ISA5 installation.

    Hope this helps
  • SystemAdmin
    SystemAdmin
    642 Posts

    Re: ISA 5.0 Beta 2 Garbage Collection and Memory Visualizer command line usage

    ‏2013-03-13T15:10:04Z  
    If you run the GCMV report and look at the xxxxx-err.log you will see the command used to launch GCMV. eg;

    java -showversion -Xms128M -Xmx1024M -Dosgi.install.area=/home/robbins/ISA5/ToolBox/eclipse -Dosgi.sharedConfiguration.area=/home/robbins/ISA5/ToolBox/eclipse/configuration -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/home/robbins/ISA5/ToolBox/com.ibm.java.diagnostics.visualizer -Dosgi.configuration.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/config -Dosgi.instance.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/workspace -jar /home/robbins/ISA5/ToolBox/eclipse/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -consoleLog -application com.ibm.java.diagnostics.visualizer.headless.application -f /home/robbins/ISA5/isa/cases/0000/native_stderr.log -o /home/robbins/ISA5/isa/cases/0000/native_stderr.log-visualizer_ISA_PD -p Generational Heap

    Running that command from a command prompt works for me. Obviously you can set appropriate values for the temporary osgi.configuration.area and Dosgi.instance.area and of course the path to the ISA5 installation.

    Hope this helps
    Hello,

    Thanks for your answer...
    When I try to run the GCMV Report tool and click on "Browse" for the "Input Files and Folders", a screen opens to select a file. In this screen I see a folder "PMR". I don't know where this folder is and I can't do anything withit.. Is this a directory on the server or on my local PC? I tried to specify a full path to a logfile, once on the server and once on my pc, but when clicking submit, I get a message stating ".. invalid path for tool invocation ...."

    So I'm not able to generate the logfile where you see the command that is launched in the background when using the tool interactively...

    When I try to run the command you posted on the server, with an adapted ISA installation path I get the following error:
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build pxa6460sr12-20121025_01(SR12))
    IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr12-20121024_126067 (JIT enabled, AOT enabled)
    J9VM - 20121024_126067
    JIT - r9_20120914_26057
    GC - 20120928_AA)
    JCL - 20121014_01

    !SESSION 2013-03-13 15:22:04.798
    eclipse.buildId=M20110210-1200
    java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr12-20121024_126067 (JIT enabled, AOT enabled)
    J9VM - 20121024_126067
    JIT - r9_20120914_26057
    GC - 20120928_AA
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Framework arguments: -application com.ibm.java.diagnostics.visualizer.headless.application -f /appl/gwwa000d/ibm/ISA5/i sa/cases/ -o /appl/gwwa000d/ibm/ISA5/isa/cases/0000/native_stderr.log-visualizer_ISA_PD -p Generational Heap
    Command-line arguments: -consoleLog -application com.ibm.java.diagnostics.visualizer.headless.application -f /appl/gwwa 000d/ibm/ISA5/isa/cases/ -o /appl/gwwa000d/ibm/ISA5/isa/cases/0000/native_stderr.log-visualizer_ISA_PD -p Generational H eap

    !ENTRY org.eclipse.osgi 4 0 2013-03-13 15:22:16.287
    !MESSAGE Application error
    !STACK 1
    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    /tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/config/org.eclipse.osgi/bundles/113/1/.cp /libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
    swt-pi-gtk (Not found in java.library.path)
    /tmp/swtlib-64/libswt-pi-gtk-3659.so (/tmp/swtlib-64/liblibswt-pi-gtk-3659.so.so: cannot open shared object file : No such file or directory)
    /tmp/swtlib-64/libswt-pi-gtk.so (/tmp/swtlib-64/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
    /tmp/swtlib-64/libswt-pi-gtk-3659.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or direc tory)

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:267)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174)
    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:692)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
    at com.ibm.java.diagnostics.visualizer.headless.Application.start(Unknown Source)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    ...............

    I wasn't sure what to specify for the "temporary osgi.configuration.area and Dosgi.instance.area" though... This is the command I launched:
    ISAPATH=/appl/gwwa000d/ibm/ISA5

    java -showversion -Xms128M -Xmx1024M -Dosgi.install.area=${ISAPATH}/ToolBox/eclipse -Dosgi.sharedConfiguration.area=${ISAPATH}/ToolBox/eclipse/configuration -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=${ISAPATH}/ToolBox/com.ibm.java.diagnostics.visualizer -Dosgi.configuration.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/config -Dosgi.instance.area=/tmp/com.ibm.java.diagnostics.visualizer-t0116.143003.546898.d/eclipse/workspace -jar ${ISAPATH}/ToolBox/eclipse/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -consoleLog -application com.ibm.java.diagnostics.visualizer.headless.application -f ${ISAPATH}/isa/cases/${LOGILFE} -o ${ISAPATH}/isa/cases/0000/native_stderr.log-visualizer_ISA_PD -p Generational Heap