Unable to start up Java application

Created:

2016-12-18 06:42:35 UTC

Modified:

2017-08-08 13:31:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start up Java application

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Attempt to restart an application via Plesk > Domains > domain.tld > Java Applications , the following error appears:

Error: Unable to start up Java application: Possible reason - Tomcat Java service is not currently running on the server.

Tomcat log file C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\logs\\catalina.2016-10-31.log contains the following error:

Dec 09, 2016 11:43:04 AM org.springframework.beans.factory.support.DefaultListableBeanFactory destroyBean

SEVERE: Destroy method on bean with name 'org.springframework.aop.config.internalAutoProxyCreator' threw an exceptionjava.lang.OutOfMemoryError: PermGen space

Cause

If you get the error message: java.lang.OutOfMemoryError: PermGen space this means that you have exceeded Java's fixed block for loading class files. Permanent Generation Memory, unlike Java heap space, is the memory allocation for the classes themselves as opposed to the objects created. The addition of more plugins contributes to more consumption of PermGen space. The error occurs when enough classes are invoked

Resolution

  1. Open Apache Tomcat properties by executing C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\bin\\Tomcat7w.exe
  2. Add the following in Java > Java Options or increase these values:

    -XX:PermSize=128m-XX:MaxPermSize=512m1. Restart Apache Tomcat

Have more questions? Submit a request
Please sign in to leave a comment.