Skip to content

Commit

Permalink
Enable G1GC and GC logging for uniconfig container
Browse files Browse the repository at this point in the history
Signed-off-by: Maros Marsalek <[email protected]>
  • Loading branch information
marosmars authored and MartinSunal committed Mar 12, 2021
1 parent 96f1c9d commit 2f6fc07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composefiles/swarm-uniconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
max-size: "10m"
environment:
- JAVA_MAX_MEM=4G
# Enable G1GC and GC logging
- _JAVA_OPTIONS=-XX:+AlwaysPreTouch -Djna.nosys=true -XX:+CrashOnOutOfMemoryError -XX:MaxGCPauseMillis=200 -Xloggc:/opt/uniconfig-frinx/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=5M -XX:+PrintGCDateStamps -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1
- dbPersistence_enabled=true
- dbPersistence_connection_dbName=uniconfig
- dbPersistence_connection_username=postgres
Expand Down

0 comments on commit 2f6fc07

Please sign in to comment.