Hello,
I use docker to manage our payara cluster. It is composed of test instances and 4 production instances that I create as follows:
[...]
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-production --config instance-production --portbase=21000 instance-production-1 && \
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-production --config instance-production --portbase=22000 instance-production-2 && \
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-production --config instance-production --portbase=23000 instance-production-3 && \
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-production --config instance-production --portbase=24000 instance-production-4 && \
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-recette --config instance-recette --portbase=31000 instance-recette-1 && \
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --port=4848 create-instance --node node-recette --config instance-recette --portbase=32000 instance-recette-2 && \
[...]
The current memory usage is as follows, which does not leave much free memory. The IT department refuses to increase the RAM for this VM.
PageSize:4KB RAM-Memory Swap-Space High-Memory Low-Memory
Total (MB) 15885.3 1024.0 - not in use - not in use
Free (MB) 897.7 1022.7
Free Percent 5.7% 99.9%
Are there any commands I can use when generating my image to limit the memory impact of my instances? For example, as I have seven processes (4 prod, 2 test, and 1 payara-admin) allocate 10% to each process? Or limit to 80% for all 7 payara processes?
Thanks for your help
Thierry