cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r170639 - /cocoon/trunk/cocoon.bat
Date Tue, 17 May 2005 18:53:22 GMT
Author: reinhard
Date: Tue May 17 11:53:21 2005
New Revision: 170639

URL: http://svn.apache.org/viewcvs?rev=170639&view=rev
Log:
add option to initialize YourKit (of course Yourkit needs to be installed

Modified:
    cocoon/trunk/cocoon.bat

Modified: cocoon/trunk/cocoon.bat
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon.bat?rev=170639&r1=170638&r2=170639&view=diff
==============================================================================
--- cocoon/trunk/cocoon.bat (original)
+++ cocoon/trunk/cocoon.bat Tue May 17 11:53:21 2005
@@ -108,6 +108,7 @@
 if ""%1"" == ""servlet-admin"" goto doAdmin
 if ""%1"" == ""servlet-debug"" goto doDebug
 IF ""%1"" == ""servlet-profile"" goto doProfile
+IF ""%1"" == ""yourkit-profile"" goto doYourkitProfile
 
 echo Usage: cocoon (action)
 echo actions:
@@ -116,6 +117,7 @@
 echo   servlet-admin   Run Cocoon in a servlet container and turn container web administration
on
 echo   servlet-debug   Run Cocoon in a servlet container and turn on remote JVM debug
 echo   servlet-profile Run Cocoon in a servlet container and turn on JVM profiling
+echo   yourkit-profile Run Cocoon in a servlet container and turn on Yourkit JVM profiling
 goto end
 
 :: ----- Cli -------------------------------------------------------------------
@@ -156,6 +158,14 @@
 
 :doProfile
 %EXEC% "%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -Xrunhprof:heap=all,cpu=samples,thread=y,depth=3
-classpath "%CP%" "-Djava.endorsed.dirs=%COCOON_HOME%\lib\endorsed" "-Dwebapp=%JETTY_WEBAPP%"
"-Dhome=%COCOON_HOME%" -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT%
-Djetty.admin.port=%JETTY_ADMIN_PORT% "-Dloader.jar.repositories=%COCOON_HOME%\tools\jetty\lib;%COCOON_HOME%\lib\endorsed"
-Dloader.main.class=org.mortbay.jetty.Server Loader "%COCOON_HOME%\tools\jetty\conf\main.xml"
+goto end
+
+:: ----- Yourkit Profile --------------------------------------------------------
+
+:doYourkitProfile
+echo x
+%EXEC% "%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -Xrunyjpagent:port=10000 -classpath "%CP%"
"-Djava.endorsed.dirs=%COCOON_HOME%\lib\endorsed" "-Dwebapp=%JETTY_WEBAPP%" "-Dhome=%COCOON_HOME%"
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Djetty.port=%JETTY_PORT% -Djetty.admin.port=%JETTY_ADMIN_PORT%
"-Dloader.jar.repositories=%COCOON_HOME%\tools\jetty\lib;%COCOON_HOME%\lib\endorsed" -Dloader.main.class=org.mortbay.jetty.Server
Loader "%COCOON_HOME%\tools\jetty\conf\main.xml"
+goto end
 
 :: ----- End -------------------------------------------------------------------
 



Mime
View raw message