apache / apache/logging-log4j2
Startup on Mac is extremely slow consistently.
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
## Description
When starting an application with:
`Logger logger = LogManager.getLogger("test");`
It takes 5 seconds consistently for the first logger to initiate. Afterwards, this command can be repeated and there is no slowdown.
This makes it extremely troublesome to run tests, debug as program start time is increased by 5 seconds.
## Configuration
**Version:** [Log4j version]
2.21.1
**Operating system:** [OS and version]
macOS Montery (m1 processor)
**JDK:** [JDK distribution and version]
openjdk-21.0.1
## Reproduction
`
public static void main(String[] args) {
long ts = System.currentTimeMillis();
LogManager.getLogger("test");
System.out.println(System.currentTimeMillis() - ts); // eg. 5432
}
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.