Petals ESB Container

Add a script to launch a JVisualVM instance connected to the local Petals node

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.0.0
  • Fix Version/s: 4.1.0
  • Component/s: Client-cli
  • Security Level: Public
  • Description:
    Hide

    A new script to launch a JVisualVM instance connected to the local Petals node would be useful.

    Script name: $PETALS_HOME/bin/petals-jvisualvm.sh

    Usage: petals-jvisualvm.sh [pid]

    • if several Petals nodes are running on the same computer, an error message is displayed if the argument 'pid' is not set. The error message includes the list of all Petals ESB processes.
    • if the argument 'pid' pid is set but it is not a Petals ESB process, an error is displayed and all Petals ESB processes are listed.
    Show
    A new script to launch a JVisualVM instance connected to the local Petals node would be useful. Script name: $PETALS_HOME/bin/petals-jvisualvm.sh Usage: petals-jvisualvm.sh [pid]
    • if several Petals nodes are running on the same computer, an error message is displayed if the argument 'pid' is not set. The error message includes the list of all Petals ESB processes.
    • if the argument 'pid' pid is set but it is not a Petals ESB process, an error is displayed and all Petals ESB processes are listed.
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 17 Apr 2012 - 09:37:41 +0200

JVisualVM options are ('jvisualvm --help'):

General options:
  --help                show this help 
  --jdkhome <path>      path to Java(TM) 2 SDK, Standard Edition
  -J<jvm_option>        pass <jvm_option> to JVM

  --cp:p <classpath>    prepend <classpath> to classpath
  --cp:a <classpath>    append <classpath> to classpath
Module reload options:
  --reload /path/to/module.jar  Installs or reinstalls a module JAR file.

Additional Module(s) Option(s):
  --openfile <arg>          open file specified by <arg>, file can be Application snapshot, NetBeans Profiler snapshot or HPROF heap dump.
  --openid <arg>            open application with id <arg>
  --openpid <arg>           open application with process id <arg>
  --openjmx <arg>           open application specified by JMX connection (host:port)

Core options:
  --laf <LaF classname> use given LookAndFeel class instead of the default
  --fontsize <size>     set the base font size of the user interface, in points
  --locale <language[:country[:variant]]> use specified locale
  --userdir <path>      use specified directory to store user settings
  --nosplash            do not show the splash screen
Show
Christophe DENEUX added a comment - Tue, 17 Apr 2012 - 09:37:41 +0200 JVisualVM options are ('jvisualvm --help'):
General options:
  --help                show this help 
  --jdkhome <path>      path to Java(TM) 2 SDK, Standard Edition
  -J<jvm_option>        pass <jvm_option> to JVM

  --cp:p <classpath>    prepend <classpath> to classpath
  --cp:a <classpath>    append <classpath> to classpath
Module reload options:
  --reload /path/to/module.jar  Installs or reinstalls a module JAR file.

Additional Module(s) Option(s):
  --openfile <arg>          open file specified by <arg>, file can be Application snapshot, NetBeans Profiler snapshot or HPROF heap dump.
  --openid <arg>            open application with id <arg>
  --openpid <arg>           open application with process id <arg>
  --openjmx <arg>           open application specified by JMX connection (host:port)

Core options:
  --laf <LaF classname> use given LookAndFeel class instead of the default
  --fontsize <size>     set the base font size of the user interface, in points
  --locale <language[:country[:variant]]> use specified locale
  --userdir <path>      use specified directory to store user settings
  --nosplash            do not show the splash screen
Christophe DENEUX made changes - Tue, 17 Apr 2012 - 09:37:50 +0200
Field Original Value New Value
Fix Version/s 3.3.0 [ 10334 ]
Priority Blocker [ 1 ]
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 10:07:04 +0200
Summary Add a script to launch a JVisualVM instance cpnnected to the local Petals node Add a script to launch a JVisualVM instance connected to the local Petals node
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 10:08:07 +0200
Description Add the parameter {{'jvisualvm [pid]'}} to the Petals ESB startup script {{'petals-esb.sh'}} to launch a JVisualVM instance connected to the local Petals node.
If several Petals nodes are running on the same computer, an error message is displayed if the argument {{'pid'}} is not set.
Add the parameter {{'jvisualvm \[pid\]'}} to the Petals ESB startup script {{'petals-esb.sh'}} to launch a JVisualVM instance connected to the local Petals node.
If several Petals nodes are running on the same computer, an error message is displayed if the argument {{'pid'}} is not set.
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 10:16:11 +0200
Priority Blocker [ 1 ] Major [ 3 ]
Hide
Vincent Zurczak added a comment - Wed, 18 Apr 2012 - 12:09:23 +0200

This may be helpful sometimes. But not for everyone.
It would be better to put it in a secondary script, e.g. petals-jvisual-vm.sh

Show
Vincent Zurczak added a comment - Wed, 18 Apr 2012 - 12:09:23 +0200 This may be helpful sometimes. But not for everyone. It would be better to put it in a secondary script, e.g. petals-jvisual-vm.sh
Hide
Christophe DENEUX added a comment - Wed, 18 Apr 2012 - 16:31:06 +0200

Ok, description of the issue was updated

Show
Christophe DENEUX added a comment - Wed, 18 Apr 2012 - 16:31:06 +0200 Ok, description of the issue was updated
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 16:31:06 +0200
Description Add the parameter {{'jvisualvm \[pid\]'}} to the Petals ESB startup script {{'petals-esb.sh'}} to launch a JVisualVM instance connected to the local Petals node.
If several Petals nodes are running on the same computer, an error message is displayed if the argument {{'pid'}} is not set.
A new script to launch a JVisualVM instance connected to the local Petals node would be useful.

Script name: {{$PETALS_HOME/bin/petals-jvisualvm.sh}}

Usage: {{petals-jvisualvm.sh \[pid\]}}
* if several Petals nodes are running on the same computer, an error message is displayed if the argument {{'pid'}} is not set. The error message includes the list of all Petals ESB processes.
* if the argument {{'pid'}} pid is set but it is not a Petals ESB process, an error is displayed and all Petals ESB processes are listed.
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 17:45:47 +0200
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 17:45:50 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 18 Apr 2012 - 17:49:47 +0200

New script added in trunk

Show
Christophe DENEUX added a comment - Wed, 18 Apr 2012 - 17:49:47 +0200 New script added in trunk
Christophe DENEUX made changes - Wed, 18 Apr 2012 - 17:49:47 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1d 8h 9m
1
Christophe DENEUX
Wed, 18 Apr 2012 - 17:45:47 +0200
Open Open In Progress In Progress
3s
1
Christophe DENEUX
Wed, 18 Apr 2012 - 17:45:50 +0200
In Progress In Progress Resolved Resolved
3m 57s
1
Christophe DENEUX
Wed, 18 Apr 2012 - 17:49:47 +0200



People

Dates

  • Created:
    Tue, 17 Apr 2012 - 09:36:39 +0200
    Updated:
    Wed, 18 Apr 2012 - 17:49:47 +0200
    Resolved:
    Wed, 18 Apr 2012 - 17:49:47 +0200