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

Unable to set CPU count #83

Open
Danpiel opened this issue Aug 29, 2022 · 0 comments
Open

Unable to set CPU count #83

Danpiel opened this issue Aug 29, 2022 · 0 comments

Comments

@Danpiel
Copy link

Danpiel commented Aug 29, 2022

Hello, I have deployed Stardog in Kubernetes cluster, and to reduce idle resource usage I reduced cpu request to 0.2.

Java args used javaArgs: "-Xmx2g -Xms2g -XX:MaxDirectMemorySize=1g -XX:+UseContainerSupport -XX:MaxRAMPercentage=80 -XX:ActiveProcessorCount=2"

Stardog detects 0.2 CPU and fails to start, overrides from JVM args does not work, here is example

/opt/stardog/bin/stardog-admin server start --foreground --port 5820 --home /var/opt/stardog/ -XX:+UseContainerSupport -XX:MaxRAMPercentage=80 -XX:ActiveProcessorCount=2
Improperly specified VM option 'ActiveProcessorCount=0.2'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

If I unset the cpu request, I got empty ActiveProcessorCount

/opt/stardog/bin/stardog-admin server start --foreground --port 5820 --home /var/opt/stardog/ -XX:+UseContainerSupport -XX:MaxRAMPercentage=80 -XX:ActiveProcessorCount=2
Improperly specified VM option 'ActiveProcessorCount='
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Maybe there is another workaround ?

Reference Java doc: https://www.oracle.com/java/technologies/javase/8u191-relnotes.html

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

No branches or pull requests

1 participant