When JBOSS is started in the morning, the following error occurs:
Error occurred during initialization of VM
Cocould not reserve enough space for object heap
Cocould not create the Java virtual machine.
The error message is caused by insufficient memory space allocation.
View JBOSS startup script
JAVA_OPTS:-server-Xms1304m-Xmx1304m-XX: MaxPermSize = 256 m -Djava.net. prefer12004stack = true-Djboss. modules. system. pkgs = org. jboss. byteman-Djava. awt. headless = true
===!
JBOSS has allocated 1304 of the memory, and the entire system has MB of memory!
Angry configuration modification
The code is as follows: |
Copy code |
JAVA_OPTS:-server-Xms256m-Xmx800m-XX: MaxPermSize = 256 m -Djava.net. prefer12004stack = true-Djboss. modules. system. pkgs = org. jboss. byteman-Djava. awt. headless = true |
Change the red part to the value you want to allocate, but the value cannot exceed the memory value.
Restart JBOSS.