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

ExtLogRecord creation is more costly following the update to SmallRye Common 2.4.0 #42858

Closed
gsmet opened this issue Aug 29, 2024 · 2 comments · Fixed by #42918
Closed

ExtLogRecord creation is more costly following the update to SmallRye Common 2.4.0 #42858

gsmet opened this issue Aug 29, 2024 · 2 comments · Fixed by #42918
Labels
area/smallrye triage/upstream Used for issues which are caused by issues in upstream projects/dependency
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Aug 29, 2024

I was having a look at #42855 , which actually creates quite some log records (but not something that is completely weird either).

While the very visible issue looks fixed in main, I still had the impression things were a bit slower.

I had a look at some flame graphs and stumbled upon the ExtLogRecord creation being a lot more costly in main:

ExtLogRecord creation in 3.11.x

Screenshot from 2024-08-29 11-47-13

ExtLogRecord creation in main

Screenshot from 2024-08-29 12-11-14

The problem is due to the upgrade of SmallRye Common and from what I can see to this patch: smallrye/smallrye-common@016ad93 which removes the cache for the process name.

/cc @dmlloyd

@quarkus-bot
Copy link

quarkus-bot bot commented Aug 29, 2024

/cc @Ladicek (smallrye), @jmartisk (smallrye), @phillip-kruger (smallrye), @radcortez (smallrye)

@radcortez radcortez added the triage/upstream Used for issues which are caused by issues in upstream projects/dependency label Aug 29, 2024
@gsmet
Copy link
Member Author

gsmet commented Aug 29, 2024

Ideally it's something we should address before 3.15 is released as it could be considered a regression compared to previous LTS (3.8).

dmlloyd added a commit to dmlloyd/smallrye-common that referenced this issue Aug 29, 2024
Fixes performance problem when creating log records or other things which frequently request the PID or process name.

See quarkusio/quarkus#42858 for more info.
@geoand geoand closed this as completed in 7caa6d5 Aug 31, 2024
@quarkus-bot quarkus-bot bot added this to the 3.16 - main milestone Aug 31, 2024
@gsmet gsmet modified the milestones: 3.16 - main, 3.14.2 Sep 2, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue Sep 2, 2024
Fixes quarkusio#42858. Fixes part of quarkusio#42248.

(cherry picked from commit 7caa6d5)
gsmet pushed a commit to gsmet/quarkus that referenced this issue Sep 3, 2024
Fixes quarkusio#42858. Fixes part of quarkusio#42248.

(cherry picked from commit 7caa6d5)
danielsoro pushed a commit to danielsoro/quarkus that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/smallrye triage/upstream Used for issues which are caused by issues in upstream projects/dependency
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants