java.lang.OutOfMemoryError: PermGen space

Post any questions regarding Installing or Upgrading Ebase, including problems starting up the Ebase Xi Server or Designer

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

java.lang.OutOfMemoryError: PermGen space

#1

Postby xren » Wed Jun 11, 2014 7:41 pm

Hi,

After I installed the 64 bit ebase 4.5.1 version for development, I often got the following exception: the server stop response.

java.lang.OutOfMemoryError: PermGen space

It happened to my production server as well.

The development server is the default setting.

The production server has maximum 2G ram
(I set in the install service script service.bat)
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" --JvmMs 1024 --JvmMx 2048

This really affect the application up time.

How can this be fixed?

Thanks,
Xiaoli
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#2

Postby Hovik » Thu Jun 12, 2014 10:26 am

Hi Xiaoli,
This is caused by insufficient PermGen space in Tomcat. To fix it:

1. Stop the service
2. Remove the service
3. Edit service.bat and add the following to the start of ++jvmoptions

Code: Select all

-DXX:MaxPermSize=512m
e.g.
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-DXX:MaxPermSize=512m -Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" --JvmMs 1024 --JvmMx 2048
4. Install the service
5. Start the service

Alternatively, you can adjust the java settings of the service without remove/install steps, by using the graphical tool Tomcat7w.exe to adjust the installed service.

• Open a DOS window and navigate to <EbaseInstallDir>/UfsServer/tomcat/bin

• Enter the following:

Code: Select all

Tomcat7w.exe //ES//YourChosenServiceName
This utility allows all configuration parameters specified in service.bat to be adjusted.
Most importantly, it can be used to alter the java used by Tomcat.

• Click the Java tab and add the following on a new line:

Code: Select all

-XX&#58;MaxPermSize=512m
• Restart the service
Last edited by Hovik on Thu Sep 03, 2015 11:02 am, edited 1 time in total.
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Mon Aug 24, 2015 5:21 pm

Hello Hovik and anybody who can help.

I sent a form export file (UOHI-IntakeForm_2015-08-24.xml) to support@ebasetech.com with the associated scripts.

Can you help to audit this form and the script code and see if there is anything may cause memory leak or high memory usage?

Thanks,
Xiaoli
0 x


Who is online

Users browsing this forum: No registered users and 4 guests