I deploy 4 different war in a clustered environment on Wildfly 10 and Wildfly consumes a lot of memory.
My configuration on standalone.conf is;
...
JAVA_OPTS="-Xms256m -Xmx1400m -XX:MetaspaceSize=128M -XX:MaxMetaspaceSize=320m -Djava.net.preferIPv4Stack=true"
...
After Wildfly started, it takes 1.7 GB of memory and it increases to 1.8 GB in a short time.
Why Wildfly starts with using so much memory?
What is the reason of this and how can I prevent from this situation.