high-hospital-85984
02/18/2022, 11:12 AMjava.lang.OutOfMemoryError: Java heap space when loading a particularly large entity (large schema, with descriptions and tags), and we realized we haven't touched the JAVA_OPTS . As a complete Java beginner, are there any rule of thumb or recommendations for setting the heap size?square-activity-64562
02/18/2022, 11:34 AMextraEnvs:
- name: JAVA_OPTS
value: "-Xms1g -Xmx1g"
resources:
limits:
cpu: 500m
memory: 1280Mi
requests:
cpu: 300m
memory: 1280Misquare-activity-64562
02/18/2022, 11:34 AMsquare-activity-64562
02/18/2022, 11:34 AM1g is 1 GBsquare-activity-64562
02/18/2022, 11:35 AM2 GB is something you can start with i.e. 2g in the JAVA_OPTSsquare-activity-64562
02/18/2022, 11:35 AMsquare-activity-64562
02/18/2022, 11:36 AM-Xms2g -Xmx2gsquare-activity-64562
02/18/2022, 11:36 AMhigh-hospital-85984
02/18/2022, 11:38 AM-Xmx to the same as the k8s resource request, a small buffer is probably good. What would be a good ratio? 75% or more?'square-activity-64562
02/18/2022, 11:44 AMhigh-hospital-85984
02/18/2022, 11:46 AM