Error occurred during initialization of VM,

Source: Internet
Author: User
Tags jboss server

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.