Error occurred during initialization of VM,
This afternoon, suddenly the company's GTV management platform went down.
The page is displayed, indicating that the page cannot be found.
Log on to the terminal to view the service process.
Ps-ef | grep jboss
This process is not found. What should I do? The instance is started.
Enter nohup/home/cdms/jboss-4.0.5.GA/bin/run. sh &
View the process again after startup.
Ps-ef | grep jboss
Then, the process is still not started. Strange. view the log.
The following error is reported when tail-n 200-f nohup. out is found:
========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /home/cdms/jboss-4.0.5.GA JAVA: /home/cdms/jdk1.6.0_32/bin/java JAVA_OPTS: -Dprogram.name=run.sh -server -Xms12000m -Xmx12000m -XX:NewSize=256m -Xss128k -XX:MaxNewSize=512m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Djboss.platform.mbeanserver CLASSPATH: /home/cdms/jboss-4.0.5.GA/bin/run.jar:/home/cdms/jdk1.6.0_32/lib/tools.jar=========================================================================Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the futureError occurred during initialization of VMCould not reserve enough space for object heap
There are no problems in the first few lines of the log, and "Normal" is displayed. An error is reported when the following lines are displayed.
Google found that the memory is insufficient and cannot be started.
Then I checked the remaining memory space,
Free-m
It is really not enough. If you find the problem, you can solve it.
Release memory
Echo 1>/proc/sys/vm/drop_caches
Then view the memory again
It is indeed released a lot, and then start the jboss service again
But...
The error persists.
Check the log information carefully. I found that the memory size set in the JAVA_OPTS configuration above is 12000 mb. Which of the following is the enough memory? I decided to change it to 512 MB.
Start jboss Server
View process again
OK