Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

810 High CPU in combination with openjdk11 and log4j2 #823

Merged
merged 1 commit into from
May 25, 2021
Merged

810 High CPU in combination with openjdk11 and log4j2 #823

merged 1 commit into from
May 25, 2021

Conversation

bgoorden
Copy link
Contributor

@bgoorden bgoorden commented May 25, 2021

Issue link

All PRs MUST have a corresponding issue linked and issue number in PR name. i.e.:

    [ISSUE: 810] High CPU in combination with openjdk11 and log4j2

Purpose

When using OpenJDK11 and log4j2 in combination with dozer mapper causes high cpu while stackwalking. Several issues have been reported in on the openjdk combination with log4j2.

Approach

Dozer creates loggers each time the map() function is called in 'MappingProcessor' and 'LogMsgFactory'. This causes stackwalking which drastically decreases performance.
While running a small test mapping objects, mapping times improved by 50%.

Open Questions and Pre-Merge TODOs

@garethahealy garethahealy merged commit 92f708e into DozerMapper:master May 25, 2021
@bgoorden bgoorden deleted the bugfix/810-High-CPU-in-combination-with-openjdk11-and-log4j2 branch May 28, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants