We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

OpenClinica error: java.lang.OutOfMemoryError: PermGenspace

Please remove me from this loop.
Sent: Παρασκευή, 10 Ιανουαρίου 2014 02:57
To: [email protected]
Cc: [email protected]
Subject: Re: [Users] OpenClinica error: java.lang.OutOfMemoryError: PermGenspace

Hi Yama

Openclinica needs about 180m of perm gen per web instance and about 90 megs of memory per Ws instance.

It needs to be running on Java 1.6. The settings you mentioned do not work with java 1.4.

Sent from my iPhone
On Jan 9, 2014, at 7:20 PM, Montri Ridjaibun wrote:
Dear Yama,

Thanks for info and glad to hear your system is back to normal. Yes, running multiple instances will consume more memory, so you may need to increase physical memory if out of memory issue happen again in the future.

Note: I do not know much on Linux, mainly using Windows here.

Best regards,
Sent: Wednesday, January 08, 2014 5:44 PM
To: [email protected]
Subject: Re: [Users] OpenClinica error: java.lang.OutOfMemoryError: PermGenspace

Dear Montri,

Thank you very much for reply,

OC version : 3.1.3-beta, 3.1.4 and
Physical memory : 2058700 - used : 1973976 - free : 84724
Tomcat : Apache Tomcat/6.0.35
Java: 1.4.2

There are many concurrent users but less data extraction.

I think the problem is due to Multiple Instances. I am running 4 instances of Openclinica.

I applied some new changes recommended by OpenClinica user manual.
{Edit the init.d/tomcat and replace the JAVA_OPTS with following:
export JAVA_OPTS="$JAVA_OPTS -Xmx1280m -XX:+UseParallelGC -XX:ParallelGCThreads=n -XX:MaxPermSize=180m -XX:+CMSClassUnloadingEnabled"}

The system is back to normal but i am not sure if i need to take any other action.


On Wed, Jan 8, 2014 at 4:33 AM, Montri Ridjaibun wrote:
Dear Yama,

What is your OC version, Tomcat version and JDK version?

How many physical memory you have on your server?

How many concurrent users you have and do they often perform data extraction at the same time?

*note: OC consumes a lot of memory while performing data extraction.

Best regards,
Montri Ridjaibun

Clinical Trials Database/Software Architect Manager
Mahidol-Oxford Tropical Medicine Research Unit (MORU)
Sent: Tuesday, January 07, 2014 10:34 PM
To: [email protected]
Subject: [Users] OpenClinica error: java.lang.OutOfMemoryError: PermGen space

Dear OpenClinica users,

I am having problem with OpenClinica instance becomes not responsive and the tomcat logs says: java.lang.OutOfMemoryError: PermGen space. I did some invitation and find that it could be due to memory leak. According to my research, by adding

"JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:+DisableExplicitGC""

to Catalina.sh file will only delay the time after which the error is thrown. I fallowed the interactions but the problem still exist. I always need to restart sever to make system work.

I am not sure what to do here since I am new to Linux.


Yama Farooq,

IT Manager, University of Oxford
This discussion has been closed.