I have a Spring boot app deployed into PCF cloud. I need to setup a Java agent on it. How do I give the JVM options? How to include the agent jar in the deployed jar file? I use Maven to build.
You will have to pass the JVM options as env settings in the application manifest file.
This link provides details on manifest options - https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
And here's an article that has tips for java developers. It has examples on setting memory and other settings for java app. - https://docs.cloudfoundry.org/buildpacks/java/java-tips.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With