Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup a Java agent in a Spring boot app deployed in PCF cloud

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.

like image 975
Ben Avatar asked Apr 01 '26 00:04

Ben


1 Answers

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

like image 174
K.AJ Avatar answered Apr 02 '26 12:04

K.AJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!