Skip to content

Startup on Mac is extremely slow consistently. #2111

Open
@brr53

Description

@brr53

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationAffects the configuration system in a general wayperformanceIssues or PRs that affect performance, throughput, latency, etc.

    Type

    No type

    Projects

    Status

    To triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions