Log4j2 monitorInterval performance

Viewed 5214

In log4j2, monitorInterval attribute is available for Configuration element. I tried to read about the performance impact of this attribute but couldn't find any source anywhere. So, I have multiple questions regarding monitorInterval attribute.

  1. I would like to know, what performance impact it has by specifying a small value as 5 (5 seconds) and a large value let's say as 3000 (5 minutes) in Configuration element?

  2. What exactly happens? Does that mean, it will automatically detect every time a specified interval of time has elapsed?

  3. Is there any way to force log4j2 to reload configuration right away via configuration files (XML, JSON, YAML, PROPERTIES), not programmatic reconfiguration?

1 Answers
Related