While using OpenLiberty docker image I found that by default ws-javaagent.jar
enabled on server. Is their any way skip this ?
Asked
Active
Viewed 543 times
1

Scott Kurz
- 4,985
- 1
- 18
- 40

Sarang Ratnalikar
- 13
- 4
-
1Sarang, I'm pretty sure you're only asking to remove the agent from the JVM execution...not to rebuild the image minus the JAR, and this explains my answer below. I'm going to edit the question to clarify this if you don't object. – Scott Kurz Feb 25 '21 at 14:06
-
Yes Scott. Is it possible to run `monitor-1.0` server feature without ws-javaagent.jar ? – Sarang Ratnalikar Mar 02 '21 at 09:19
-
I think the `monitor-1.0` feature does require this agent.. the WebSphere Liberty doc: https://www.ibm.com/support/knowledgecenter/en/SSD28V_liberty/com.ibm.websphere.wlp.core.doc/ae/twlp_monitor10.html seems to say it is needed, and this function is essentially the same in Open Liberty. – Scott Kurz Mar 02 '21 at 14:49
-
Right. Thanks a lot @ScottKurz for more details. It worked for me. – Sarang Ratnalikar Mar 04 '21 at 08:28
1 Answers
1
You can disable simply by setting environment variable:
WLP_SKIP_BOOTSTRAP_AGENT=true
As noted in the Open Liberty doc this will prevent you from using certain trace and monitoring capabilities.

Scott Kurz
- 4,985
- 1
- 18
- 40