ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Do I need to recycle JVM to turn off/on tracing in toggles.pbd?


Article ID: 104619


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


Do I need to recycle JVM to turn off/on tracing in toggles.pbd?


Java Agents from 9.7 release until 10x


AutoProbe cannot dynamically instrument the tracers configured with SubstituteClass directives. For example, the tracer for SocketTracing have been configured with the following:
SubstituteClassIfFlagged: SocketTracing

This is the reason why you cannot dynamically change the SocketTracing by commenting / uncommenting TurnOn: SocketTracing.

You can say the same to UDPTracing as well. In fact, if you look into java2.pbd, there are a few tracers using SubstituteClass. They require a restart if you toggle it on/off in toggles pbd:

SetFlag: SocketTracing
SetFlag: UDPTracing
SetFlag: FileSystemTracing
SetFlag: ThreadTracing

Other tracers as most in j2ee.pbd do not use substitute class, and therefore can be dynamically instrumented.