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

ArcDevConsoleProcessor.collectBeanInfo() is taking a long time #27281

Closed
Postremus opened this issue Aug 15, 2022 · 2 comments · Fixed by #27287
Closed

ArcDevConsoleProcessor.collectBeanInfo() is taking a long time #27281

Postremus opened this issue Aug 15, 2022 · 2 comments · Fixed by #27287
Labels
area/arc Issue related to ARC (dependency injection) area/devmode kind/bug Something isn't working
Milestone

Comments

@Postremus
Copy link
Member

Postremus commented Aug 15, 2022

Describe the bug

Quarkus 2.11 takes 13s to do a restart in dev mode, forced by pressing s in the terminal.

A large chunk of this time is spent on ArcDevConsoleProcessor.collectBeanInfo.

The app has 730 non removed beans, and 130 entities.

I can't export a flamegraph file on my current environment, however I can send you a .nps (sampling snapshot created by visualvm) privatly.

Thread, build-41 taking 71% of overall profiling time.
image

Timeline:
image

Screenshot from another run sampled with visualvm:
image

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

Microsoft Windows [Version 10.0.19044.1826]

Output of java -version

openjdk 18.0.2 2022-07-19 OpenJDK Runtime Environment Temurin-18.0.2+9 (build 18.0.2+9) OpenJDK 64-Bit Server VM Temurin-18.0.2+9 (build 18.0.2+9, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.11.2.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 18.0.2, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\18 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response

@Postremus Postremus added the kind/bug Something isn't working label Aug 15, 2022
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Aug 15, 2022
@Postremus Postremus added area/devmode area/arc Issue related to ARC (dependency injection) and removed env/windows Impacts Windows machines triage/needs-triage labels Aug 15, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 15, 2022

/cc @manovotn, @mkouba

@mkouba
Copy link
Contributor

mkouba commented Aug 15, 2022

@Postremus #27287 should help significantly. It would be great if you could test your app with this changeset, i.e. build quarkus from the branch and run your app in the dev mode with quarkus 999-SNAPSHOT.

mkouba added a commit to mkouba/quarkus that referenced this issue Aug 16, 2022
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Aug 16, 2022
miador pushed a commit to miador/quarkus that referenced this issue Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) area/devmode kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants