stardog-union / helm-charts

Stardog Helm Charts
Apache License 2.0
9 stars 12 forks source link

Unable to set CPU count #83

Open Danpiel opened 1 year ago

Danpiel commented 1 year ago

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