Contents from my configs related to the error.
Xms represents the initial size of total heap space
Xmx represents the maximum size of total heap space
-Xms8g
-Xmx8g
################################################################
Expert settings
################################################################
All settings below this section are considered
expert settings. Don't tamper with them unless
you understand what you are doing
################################################################
GC configuration
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
G1GC Configuration
NOTE: G1GC is only supported on JDK version 10 or later.
To use G1GC uncomment the lines below.
#10-:-XX:-UseConcMarkSweepGC
#10-:-XX:-UseCMSInitiatingOccupancyOnly
#10-:-XX:+UseG1GC
#10-:-XX:InitiatingHeapOccupancyPercent=75
DNS cache policy
cache ttl in seconds for positive DNS lookups noting that this overrides the
JDK security property networkaddress.cache.ttl; set to -1 to cache forever
-Des.networkaddress.cache.ttl=60
cache ttl in seconds for negative DNS lookups noting that this overrides the
JDK security property networkaddress.cache.negative ttl; set to -1 to cache
forever
-Des.networkaddress.cache.negative.ttl=10