Configuring Memory of Docker Container

You can increase the memory of a Docker container to get faster performance. Before building the Docker image, you must change the valid values in the entry-point.sh file in each component directory located at docker/build/.

To change psc Docker container, perform the following steps:

1. Navigate to docker/build/Psc/ directory and open the entry-point.sh file.
2. Add or modify any valid arguments for the JAVA_OPTS parameter, for example, The Xms default value is 512m.
Copy
JAVA_OPTS="-Xms512m -Xmx${mem_in_mb}m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -Djdk.tls.client.protocols=TLSv1.2 -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.as.management.blocking.timeout=3600 -XX:ErrorFile=${ERROR_FILENAME}-java-$$ -XX:HeapDumpPath=${HEAP_DUMP_PATH}" $@