-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
xnio high cpu usage jhipster 7.9.3 #27161
Comments
we switched from undertow to tomcat to see if that removes the seemingly randomly occurring 100% cpu usage in undertow/xnio. |
Can you reproduce with the latest version (8.7.0) or the main branch? |
Closing due to lack of feedback. If you can reproduce this issue with v8.7.1, please reopen this issue. |
FWIW: We've not had the issue since moving the gateway to Tomcat. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the issue
Generated jhipster gateway intermittently consumes 100% cpu until restarted.
Suspected infinite loop in undertow + xnio. Unclear as to why it goes into the loop.
Motivation for or Use Case
Reproduce the error
The gateway service is run from a docker container in a k8s cluster and configured to authenticate against a keycloak server. The jhipster gateway will consume such high cpu it will potentially starve other microservices of resources.
Steps:
Related issues
In a thread-dump we found XNIO threads (part of undertow) in an infinite loop.
I've seen reports of other users having issues with xnio that might be related:
https://stackoverflow.com/questions/44665552/undertow-xnio-i-o-thread-consistently-eat-cpu
Suggest a Fix
JHipster Version(s)
7.9.3
JHipster configuration
INFO! Using JHipster version installed locally in current project's node_modules
INFO! Using JHipster version installed globally
INFO! Executing jhipster:info
INFO! Options: from-cli: true
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.16.1" 2022-08-12 LTS
OpenJDK Runtime Environment Microsoft-40648 (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-40648 (build 11.0.16.1+1-LTS, mixed mode)
git version 2.46.0
node: v8.17.0
npm: 6.13.4
yarn: 1.22.19
Docker version 27.2.0, build 3ab4256
INFO! Congratulations, JHipster execution is complete!
Browsers and Operating System
The text was updated successfully, but these errors were encountered: