-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to enable JFR when integrate AppDynamic in an app #235
Comments
Are you able to run this combination elsewhere? Like on your laptop? From what I can tell, the Java buildpack exec.d helper is adding the flags as it is designed to do. The problem occurs when the JVM is trying to start, so I'm not sure this is really a buildpacks issue. Perhaps an incompatibility with AppDynamics & Flight Recorder? They both try to do roughly the same thing, so perhaps a conflict? |
I try it in my laptop and use docker to run the image, the same issue happened. Besides, it works when I use AppliationInsights instead of AppDynamic, it maybe caused by AppDynamic buildpack?
|
Hi @dmikusa , |
As @dmikusa mentioned, this does look like an incompatibility between the operations of the AppDynamics agent and JFR with Java 11. Can you confirm you were using 11? I cannot reproduce this when the JVM version is set to 17 or 8. I also cannot reproduce when the AppDynamics agent attempts to start but backs away, e.g. due to missing config - JFR enables successfully with 11. If this is the case, a bug might need to be raised with AppDynamics |
@zhoufenqin - Sorry, I meant can you run your app not built through buildpacks with these two options enabled? i.e. just a regular |
@showpune - I don't think there would be any guarantee of compatibility there. Buildpacks are just bundling and pulling together these different pieces of software. The buildpack you've referenced has both of those, but whether you can use the two together is really up to the individual tool (i.e. AppDynamics and JFR) not the buildpacks. The buildpacks just enable the flags and install the software. |
+1 This doesn't look like something related to the buildpacks. It is probably just an incompatibility with the two tools. The fact that AppInsight works with JFR is just another data point that supports it being an issue with AppDynamics & JFR not the buildpacks. |
paketo-buildpacks/microsoft-openjdk: 2.6.0
paketo-buildpacks/libjvm v1.40.0
when build and deploy a java app with AppDynamics, then try to enable JFR at runtime,
--env BPL_JFR_ENABLED
, then the app fail to startExpected Behavior
JFR is enabled when the java app integrate with APM like AppDynamics
Current Behavior
Failure when starting JFR
Possible Solution
Steps to Reproduce
Motivations
The text was updated successfully, but these errors were encountered: