User Tools

Site Tools


using-jp2-to-instrument-programs-based-on-apache-felix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

using-jp2-to-instrument-programs-based-on-apache-felix [2011/03/02 05:19]
weiwu
using-jp2-to-instrument-programs-based-on-apache-felix [2017/09/06 01:54]
Line 1: Line 1:
-JP2 is a Java Profiler developed by Binder et al. ((W. Binder and J. Hulaas, "Using bytecode instruction counting as portable cpu consumption metric",​ Electronic Notes In Theoretical Computer Science, vol. 153, pp. 57-77, May 2006.)). It can be used to count the executed bytecode number to estimate the CPU consumption of a Java program. 
-To do that, we need to modify the command executing the Java program like this: 
- 
-<​code>​ 
-java -Xmx2g \ 
-    -javaagent:​$JP2_HOME/​lib/​javaagent.jar \ 
-    -Xbootclasspath/​p:​$JP2_HOME/​lib/​Thread_JP2.jar:​$JP2_HOME/​lib/​asm-all-3.3.jar:​$JP2_HOME/​lib/​jp2.jar \ 
-    -Dch.usi.dag.jp2.Output="​program.output.gz"​ \ 
-    -Dch.usi.dag.jp2.InstrumentedClasses="​ProgramInstrumented"​ \ 
-    -Dch.usi.dag.jp2.UninstrumentedClasses="​ProgramUninstrumented"​ \ 
-    -cp YourClasspath YourMainClass ​ 
-</​code>​ 
- 
- 
- 
- 
-Felix is an Apache implementation of the OSGi specifications which define a dynamic service deployment framework ((http://​felix.apache.org/​site/​index.html)). The basic idea of OSGi is providing a framework on which the service implementations or bundles are plugged. The framework handles the service requests and responses. Each bundle communicates only with the framework. SIP communications is a Java VoIP and instant messaging client using Felix. 
- 
-While using JP2 to count the executed bytecode number of SIP communicator,​ we met  
  
using-jp2-to-instrument-programs-based-on-apache-felix.txt ยท Last modified: 2019/10/06 20:37 (external edit)