1 year ago
#73040
user16408944
Disable log4j2 scripting configuration module
I'm using Log4j2 in a scala application but noticed that it loads several scripting engines to process its configuration using JSR 223 (see "Scripts" session in https://logging.apache.org/log4j/2.x/manual/configuration.html). We don't really need this functionality since our configuration is programmatically generated through scala code. We also noticed this has a quite high memory usage (more than 100MB) as it loads a javascript and a scala scripting engine. Is there a way to disable this through either a log4j configuration or some other Java knob? I haven't found one so far.
Thank you
javascript
java
scala
log4j
log4j2
0 Answers
Your Answer