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

closes #414: adapts java args for docker-compose #420

Merged
merged 1 commit into from
May 10, 2023

Conversation

ivansenic
Copy link
Contributor

What this PR does:
Fixes memory java args in the docker-compose files:

  • remove low new heap size for the dse
  • set reasonable heap maximum sizes for all JVMs on a 2G container mem limit

After updates:

DSE

-XX:+AlwaysPreTouch -XX:CICompilerCount=4 -XX:CompileCommandFile=/opt/dse/resources/cassandra/conf/hotspot_compiler -XX:ConcGCThreads=3 -XX:+DebugNonSafepoints -XX:G1HeapRegionSize=1048576 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:GCLogFileSize=10485760 -XX:GuaranteedSafepointInterval=300000 -XX:+HeapDumpOnOutOfMemoryError -XX:InitialHeapSize=1610612736 -XX:+ManagementServer -XX:MarkStackSize=4194304 -XX:MaxDirectMemorySize=15892217856 -XX:MaxGCPauseMillis=500 -XX:MaxHeapSize=1610612736 -XX:MaxNewSize=965738496 -XX:MinHeapDeltaBytes=1048576 -XX:NumberOfGCLogFiles=10 -XX:OnOutOfMemoryError=kill -9 %p -XX:+ParallelRefProcEnabled -XX:+PrintGC -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution -XX:+ResizeTLAB -XX:-RestrictContended -XX:StringTableSize=1000003 -XX:ThreadPriorityPolicy=42 -XX:ThreadStackSize=256 -XX:+UnlockDiagnosticVMOptions -XX:-UseBiasedLocking -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC -XX:+UseGCLogFileRotation -XX:-UseNUMA -XX:+UseTLAB -XX:+UseThreadPriorities

Coordinator

java -server -Xmx1536M -Dcassandra.libjemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 -Dstargate.libdir=./stargate-lib -Djava.awt.headless=true -jar ./stargate-lib/stargate-starter-2.0.12.jar --cluster-name dse-6.8.34-cluster --cluster-version 6.8 --listen 192.168.48.2 --dc dc1 --rack rack1 --dse --enable-auth --developer-mode

JSON API

-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xms768m -Xmx1536m -XX:+UseG1GC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError

Which issue(s) this PR fixes:
Fixes #414

@ivansenic ivansenic requested a review from a team as a code owner May 9, 2023 12:36
@maheshrajamani
Copy link
Contributor

@ivansenic Why the max memory needs to be reduced to 1.5G?

@ivansenic
Copy link
Contributor Author

@ivansenic Why the max memory needs to be reduced to 1.5G?

@maheshrajamani container limits are at 2G, the heap needs to be smaller so there is enough space for non-heap memory regions..

@ivansenic ivansenic merged commit 0ed7054 into main May 10, 2023
@ivansenic ivansenic deleted the ise-414-docker-compose-oom branch May 10, 2023 15:31
@jeffreyscarpenter jeffreyscarpenter changed the title closes #414: adapts java args for docker-comspose closes #414: adapts java args for docker-compose May 10, 2023
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

Successfully merging this pull request may close these issues.

Docker-comspse memory settings cause coordinator OOM
2 participants