Happy Friday I need your advice , team . I am ru...
# help
Happy Friday I need your advice , team . I am running Stand alone WireMock server in the PCF Environment. In order to reduce memory usage of the server I am planning use use
cli option This is the way how I was trying to do it> I specified in user provided vars 1. JAVA_OPTS : --verbose 2. JBP_CONFIG_JAVA_MAIN: { arguments: “--verbose” } Both of those options failed. Do you know the right way to do it ?
Haven’t used a PCF environment before.
is used to configure the java runtime rather than the wiremock cli. In PCF is there somewhere where you have specified the command to execute ? For example, running standalone you would normally run:
Copy code
$ java -jar wiremock-jre8-standalone-2.35.0.jar
To pass command line arguments to that you would just append them to the end:
Copy code
$ java -jar wiremock-jre8-standalone-2.35.0.jar --help
Or in your case:
Copy code
$ java -jar wiremock-jre8-standalone-2.35.0.jar --no-request-journal
👍 1
Exactly. JAVA_OPTS is a normal pattern for Docker images but it's really processed outside of this environment. My last time with PCF was 8 years ago, but I doubt there is ina specifics there
Thanks a lot for the explanation. Will try to pass it as you suggested.