Tomcat 7 gets CreateJavaVM error with error

I have an Apache tomcat 7.0.5 server on a Windows R2 Server and I deployed webApp (java JSF) on it, everything works fine, but it suddenly stopped and will no longer work. when I try to start it, it tells me: “Error 1067: the process terminated unexpectedly”, and in the logs I get these files:

tomcat7-stdout.2012-08-08.log

2012-08-08 18:00:06 Commons Daemon procrun stdout initialized 

Common-daemon.2012-08-08.log

 [2012-08-08 19:02:30] [info] Commons Daemon procrun finished [2012-08-08 19:13:02] [info] Commons Daemon procrun (1.0.4.0 64-bit) started [2012-08-08 19:13:02] [info] Running 'Tomcat7' Service... [2012-08-08 19:13:02] [info] Starting service... [2012-08-08 19:13:02] [error] CreateJavaVM Failed [2012-08-08 19:13:03] [info] Service started in 1000 ms. [2012-08-08 19:13:03] [info] Run service finished. [2012-08-08 19:13:03] [info] Commons Daemon procrun finished 

tomcat7-stderr.2012-08-08.log

 2012-08-08 18:00:06 Commons Daemon procrun stderr initialized Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future Unrecognized VM option '+HeapDumpOnOutOfMemoryError ' 

since I had some perm perm memory error, I added some things to my Apache Tomcat properties, following this link how to handle Perm Gen

so my java options look like this:

 -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0 -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\logging.properties -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError 

Any ideas as to why the server is no longer starting up? THANKS!

~ Myy

+7
source share
4 answers

After spending hours trying to figure it out, I finally found it. I had extra space at the end of the VM team.

  '+HeapDumpOnOutOfMemoryError ' 

which gave me the Unrecognized VM option .....

Thanks for reading, I hope when you get this error, you can take extra steps to check the syntax.

+10
source

to manage the memory needed to set some Xms and Xmx options

  • Xms controls the size of the initial heap
  • Xmx controls maximum heap size

So try adding:

 -Xms=256m -Xmx=256m 

considers

0
source

The error is included in the option "HeapDumpOnOutOfMemoryError", which is not even indicated in your message. Can you publish the screen print on the Java tab from the tomcat service screen (similar to the link you provided)? This will tell us the actual parameters that you are using, as well as the memory you set.

0
source

copy the msvcr71.dll file from the bin directory of your java installation to the bin directory from the tomcat installation.

0
source

All Articles