M
M
MoyMirok2022-03-31 21:09:49
tomcat
MoyMirok, 2022-03-31 21:09:49

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


But it is not written to which file and in what format. in setenv.sh? Then in what format? Through -D -XX: or what?

https://confluence.atlassian.com/confkb/confluence...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2022-04-01
@MoyMirok

like diagnostics.jvm.garbage.collector.percentet 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 question

Ask a Question

731 491 924 answers to any question