https://linen.dev logo
#help
Title
m

Mihail

08/11/2023, 7:32 PM
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
--no-request-journal
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 ?
l

Lee Turner

08/12/2023, 2:17 PM
Haven’t used a PCF environment before.
JAVA_OPTS
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
o

Oleg Nenashev

08/13/2023, 12:06 AM
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
m

Mihail

08/15/2023, 12:48 AM
Thanks a lot for the explanation. Will try to pass it as you suggested.