Sample Header Ad - 728x90

JAVA OPTS Xms Xmx MetaspaceSize MaxMetaspaceSize relationship with server resources

0 votes
1 answer
5783 views
I have just started working with jboss application servers and recently we had a problem when trying to deploy an application in a new test server (RHEL 7), it happened that, when starting the jboss service (jboss eap 7.1) with the application in the deployment area, the server began to freeze, that is, it began to respond extremely slowly and it was necessary to turn it off, we solved the problem simply by adding more cpu and ram, in the configuration (standalone.conf) there are these parameters: JAVA_OPTS="-Xms4096m -Xmx4096m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m Could you give me a brief explanation of the meaning of each one and its relationship with the memory and cpu of the server? Is there any rule or recommendation to take into account to configure these parameters and server resources? Thanks in advance.
Asked by miguel ramires (9 rep)
Jul 11, 2022, 11:01 PM
Last activity: Jun 11, 2025, 04:05 PM