You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "qingzheguo-flash (via GitHub)" <gi...@apache.org> on 2025/08/17 03:34:21 UTC
[I] [Improvement][server] About JVM parameter -XX:-UseContainerSupport [dolphinscheduler]
qingzheguo-flash opened a new issue, #17429:
URL: https://github.com/apache/dolphinscheduler/issues/17429
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
I've noticed the startup script start.sh for master, worker and api modules, have a "**-XX:-UseContainerSupport**" JVM parameter when starting with Docker mode.
<img width="1472" height="309" alt="Image" src="https://github.com/user-attachments/assets/cd6bd2c4-86d1-42da-9c72-5fa014914106" />
Looks like "-UseContainerSupport" **tells the JVM to ignore container awareness**. As a result, the system CPU core count and memory size obtained by the program will be those of the host machine, not the current container.
Will this affect such as master/worker load awareness or other features when dolphinscheduler running in containers?
If so, I'd be happy to remove this JVM parameter through a pull request. :)
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][server] About JVM parameter -XX:-UseContainerSupport [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17429:
URL: https://github.com/apache/dolphinscheduler/issues/17429#issuecomment-3194842169
Your understanding of the parameter `UseContainerSupport` is wrong.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][server] About JVM parameter -XX:-UseContainerSupport [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #17429: [Improvement][server] About JVM parameter -XX:-UseContainerSupport
URL: https://github.com/apache/dolphinscheduler/issues/17429
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][server] About JVM parameter -XX:-UseContainerSupport [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #17429:
URL: https://github.com/apache/dolphinscheduler/issues/17429#issuecomment-3194953719
Sorry, I didn't read your description carefully, and your understanding is correct. The reason why we disable this function by default is that the cpu detection of the container will be inaccurate in jdk8, such as using `Runtime.getRuntime().availableProcessors`=1 if requests.limts.cpu is not configuredin K8S. At present, we only support jdk8 and 11. And Jdk8 has the most users. You can modify this parameter yourself if you need it. @qingzheguo-flash
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][server] About JVM parameter -XX:-UseContainerSupport [dolphinscheduler]
Posted by "qingzheguo-flash (via GitHub)" <gi...@apache.org>.
qingzheguo-flash commented on issue #17429:
URL: https://github.com/apache/dolphinscheduler/issues/17429#issuecomment-3194934856
Hi @SbloodyS !, thanks for your reply!
I checked this parameter in some java docs, I cannot understand what's wrong with my understanding. Looks like the functions of this parameter in docs is aligned with my understanding.
Could you kindly point out what's wrong with my understanding? Many thanks!
<img width="2916" height="594" alt="Image" src="https://github.com/user-attachments/assets/e9cc07f3-b9d5-4799-907c-dec950baa4c4" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org