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
java.lang.OutOfMemoryError: PermGen space
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 184
- Joined: Tue Sep 11, 2007 8:58 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
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:
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:
• Restart the service
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
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
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:MaxPermSize=512m
Last edited by Hovik on Thu Sep 03, 2015 11:02 am, edited 1 time in total.
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
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
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