Skip to content

Commit

Permalink
Merge pull request #2840 from IBM/heap-sizing
Browse files Browse the repository at this point in the history
Reduce the default min heap size and remove the default max heap size
  • Loading branch information
prb112 authored Oct 15, 2021
2 parents 837d726 + 5bd4cf5 commit a4a2b29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
2 changes: 2 additions & 0 deletions fhir-server/liberty-config/configDropins/defaults/jvm.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Set a fixed, higher than default, initial heap size that could serve a moderate workload
-Xms768M
11 changes: 6 additions & 5 deletions fhir-server/liberty-config/configDropins/disabled/jvm.options
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Reduced heap size for constrained environments
# Set a fixed max heap size
-Xmx3072M

# Initial heap size (same as max so no reallocations will occur)
-Xms3072M
# Turn on verbose classloading
#-verbose:class

# Maximum heap size
-Xmx3072M
# Turn on verbose garbage collection
#-verbose:gc
11 changes: 1 addition & 10 deletions fhir-server/liberty-config/jvm.options
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,4 @@
-Dcom.ibm.jsse2.renegotiate=DISABLED

# Prevents Apache Xerces from overactively using the service loader to find a class
-Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault

# Initial heap size (same as max so no reallocations will occur)
-Xms4096M

# Maximum heap size
-Xmx4096M

# Uncomment to turn on verbose classloading
#-verbose:class
-Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault

0 comments on commit a4a2b29

Please sign in to comment.