Dashboard > LAMS 2 > ... > Test Harness > Profiling
  LAMS 2 Log In | Sign Up   View a printable version of the current page.  
  Profiling
Added by Fiona Malikoff , last edited by Fiona Malikoff on Sep 22, 2006  (view change)
Labels: 
(None)

When running the TestHarness, you may wish to run a profiler. This page describes one way we have got a profiler running - it may not be the best way or the best profiler but it worked and we were having a lot of trouble getting anything to work. (Turned out the issue was not the profiling but one particular PC doesn't seem to like profilers.)

  1. Downloaded the JBossProfiler and extract out the files.
  2. Created a directory c:/temp/jbossprofiler
  3. Modified run.bat adding the XrunjbossInspector entry:
    set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XrunjbossInspector:c:/temp/jbossprofiler,include=org.lamsfoundation,ignore=*
  4. Added the directory containing jbossInspector.dll in my path. In my case, I added "C:\jboss-profiler-1.0.CR4\jvmpi\windows".
  5. The jboss-profiler.war shound NOT be in deploy
  6. Started jboss using the run.bat (ie from windows, not eclipse).
  7. Logged into LAMS, made sure everything was working okay. When ready to start profiling, went to the run.bat command window and did CTRL-BREAK. This turned on the data collection.
  8. Ran a learner session in LAMS. Went to the run.bat command window and did CTRL-BREAK. This turned off the data collection.
  9. Stopped JBOSS, reset the run.bat to its normal JAVA_OPTS setting.
  10. Added jboss-profiler.war to deploy and removed lams.ear from deploy.
  11. Back in Eclipse I started JBOSS server and went to http://localhost:8080/jboss-profiler/, selected the directory where my log files were (C:\temp\jbossprofiler), selected the process id. It went through the gz files, processed the registers
  12. Have a cuppa as it was going to take a while, work on something else while it works away in the background (having two PCs is handy at this point).
  13. Bingo - results processed. Save the results because I don't want to wait another minor eternity if the browser crashes.

I had

  • jbossInspector.dll in my path
  • profilerConsole.jar in D:\jboss-4.0.2\server\default\lib (I don't know if this is needed but I've got it there anyway)
  • jboss-profiler-noAOP.sar in the deploy directory (again, as I'm using CTRL-BREAK to start and stop this may not be needed)
  • lams.ear in deploy for generating the log files and jboss-profiler.war in deploy for analysing the log files.

Powered by a free Atlassian Confluence Open Source Project License granted to Learning Activity Management System (LAMS). Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators