You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JBoss and Tomcat plugins both add transformers for org.apache.catalina.core.StandardHostValve.
When both plugins are enabled, the agent throws an exception, complaining that there are more than 1 transformer for the class and it does not know which one to use for instrumentation.
The best solution would be to have the agent "automagically" figure out which transformer to use when the class is loaded, but this is currently out of reach.
Instead, we'll simply (and crudely) add conditional checks that does the following:
If the application is a Tomcat application, or a SpringBoot application (launched by their respective main-classes), add Tomcat transformers.
If the application is a JBoss application, add JBoss transformers.
There should also be an option that disables these checks completely in pinpoint.config - profiler.tomcat.conditional.transform, profiler.jboss.conditional.transform.
One drawback to the solution above would be that standalone applications that run embedded Tomcat (or SpringBoot applications running Tomcat launched from an IDE) will not automatically register Tomcat transformers for their relevant classes. For such cases, profiler.tomcat.conditional.transform should be set to false.
The text was updated successfully, but these errors were encountered:
Tomcat plugin checks if the application was launched via Tomcat's Bootstrap, or one of SpringBoot's many launchers.
JBoss plugin checks if the application was launched via JBoss' Main.
Configuration option is added to disable this check entirely.
Tomcat plugin checks if the application was launched via Tomcat's Bootstrap, or one of SpringBoot's many launchers.
JBoss plugin checks if the application was launched via JBoss' Main.
Configuration option is added to disable this check entirely.
Tomcat plugin checks if the application was launched via Tomcat's Bootstrap, or one of SpringBoot's many launchers.
JBoss plugin checks if the application was launched via JBoss' Main.
Configuration option is added to disable this check entirely.
JBoss and Tomcat plugins both add transformers for
org.apache.catalina.core.StandardHostValve
.When both plugins are enabled, the agent throws an exception, complaining that there are more than 1 transformer for the class and it does not know which one to use for instrumentation.
The best solution would be to have the agent "automagically" figure out which transformer to use when the class is loaded, but this is currently out of reach.
Instead, we'll simply (and crudely) add conditional checks that does the following:
There should also be an option that disables these checks completely in pinpoint.config -
profiler.tomcat.conditional.transform
,profiler.jboss.conditional.transform
.One drawback to the solution above would be that standalone applications that run embedded Tomcat (or SpringBoot applications running Tomcat launched from an IDE) will not automatically register Tomcat transformers for their relevant classes. For such cases,
profiler.tomcat.conditional.transform
should be set tofalse
.The text was updated successfully, but these errors were encountered: