Environment Variables to Start TrueTime TrueCoverage manually

0 Likes

Problem:

I have a sun java VM being invoked through JNI (or, I'm using a tool that invokes a java VM through API, eg, WebSphere & some CORBA ORB's), and the DevPartner Remote Agent isn't getting profiling information on the invoked VM - What can I do?

Resolution:

You can make the instantiated VM start with some special environment variables that will get TrueTime (or TrueCoverage, or Memory Profiler) to profile it.These are:


  • NM_DOING_PROFILING=1
  • NM_JPCINSTR_DOING_PROFILING=1
  • NM_PROFILE_JAVA=1
  • _classload_hook=jpcinstr
  • _JAVA_OPTIONS=-Xrunjpcinstr -Xbootclasspath/p: -Djava.security.policy=\java.policy
  • _RUNTIMECLASSPATH=E:\JDKs\SARoot

If you run into problems, try turning on:

NMDEBUG=1

NMVERBOSE=1

This will give tech support some more information with which to diagnose the problem.

For Memory Profiler, use:

NM_DOING_MEMORY=1

NM_JPCINSTR_DOING_MP=1

instead of DOING_PROFILING.

For TrueCoverage, use:

NM_DOING_COVERAGE=1

NM_JPCINSTR_DOING_COVERAGE=1

Old KB# 11010
Comment List
Anonymous
Related Discussions
Recommended