[infinispan-commits] Infinispan SVN: r1006 - trunk/bin.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Mon Oct 26 07:43:56 EDT 2009


Author: manik.surtani at jboss.com
Date: 2009-10-26 07:43:56 -0400 (Mon, 26 Oct 2009)
New Revision: 1006

Modified:
   trunk/bin/profile.sh
Log:
Better script

Modified: trunk/bin/profile.sh
===================================================================
--- trunk/bin/profile.sh	2009-10-26 11:12:57 UTC (rev 1005)
+++ trunk/bin/profile.sh	2009-10-26 11:43:56 UTC (rev 1006)
@@ -9,6 +9,9 @@
 PROFILED=false
 if [ $1 = "-p" ] ; then
   PROFILED=true
+  SESSION_ID=$2
+  shift
+  shift
 fi
 
 ## Set up a classpath.
@@ -34,7 +37,7 @@
 
 if [ $PROFILED = "true" ] ; then
   JVM_OPTS="$JVM_OPTS 
--agentlib:jprofilerti=offline,id=177,config=/opt/jprofiler_cfg/config.xml  -Xbootclasspath/a:/opt/jprofiler/bin/agent.jar"
+-agentlib:jprofilerti=offline,id=${SESSION_ID},config=/opt/jprofiler_cfg/config.xml  -Xbootclasspath/a:/opt/jprofiler/bin/agent.jar"
 fi
 
 export LD_LIBRARY_PATH=/opt/jprofiler/bin/linux-x86:$LD_LIBRARY_PATH



More information about the infinispan-commits mailing list