Answer the question
In order to leave comments, you need to log in
Where to write these parameters?
The Manual has this thing:
Can I change the threshold?
Yes, you can change the threshold and behavior of this alert using the following system properties:
diagnostics.jvm.garbage.collector.percent
diagnostics.jvm.garbage.collector.monitoring.period.secs
diagnostics.jvm.memory.check.period. secs
Answer the question
In order to leave comments, you need to log in
like diagnostics.jvm.garbage.collector.percent
et al this is jvm
config so yes via $CATALINA_HOME/bin/setenv.sh
in export JAVA_OPTS= ...
via -D
https://docs.oracle.com/cd/E15523_01/web.1111/e138...
cat /usr/local/tomcat/bin/setenv.sh
export JAVA_OPTS="-Dlog4j2.debug=true -Dapp.env=staging -Dlog4j.configurationFile=$CATALINA_BASE/conf/log4j2.xml -Ddiagnostics.jvm.memory.check.period.secs=30 -Ddiagnostics.jvm.garbage.collector.percent=30 -
Ddiagnostics.jvm.garbage.collector.monitoring.period.secs=30"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question