Java Out of Memory Error

Topics: Java, 4.4

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   8 Replies   Last post: March 26, 2014 9:27am UTC
Roy Martin

Roy Martin

June 10, 2010 9:56pm UTC

Java Out of Memory Error

Running a parametric sweep of a 2d electrostatic model. Sweeping two parameters results in 80 configurations.
The computer this runs on has 12 Gb of ram.
The analysis never goes over 1 Gb for the Working Set or Virtual Memory
Comsol Version 4.0, Windows 7 64 bit.

Near the end of the run, sometimes, get an error message relating to memory. Here is the last bit from the log:

00611:005 ERROR Exception:
java.lang.OutOfMemoryError: GC overhead limit exceeded
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Error in sweep: GC overhead limit exceeded
[com.comsol.logger]
00611:005 ERROR Stack trace: [com.comsol.logger]
00633:891 ERROR Exception:
java.lang.ArrayIndexOutOfBoundsException
(rethrown as com.comsol.util.exceptions.FlException)
Messages:

[com.comsol.logger]
00633:906 ERROR Stack trace: [com.comsol.logger]


What is going on, and How do I fix this issue?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Jarlath McEntee

Jarlath McEntee

July 14, 2010 11:34pm UTC in response to Roy Martin

Re: Java Out of Memory Error

I am having GC overhead limit issues too.

My machine has huge amounts of RAM.

Is there a particular version of Java we should have installed on a Windows 7 machine?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Kai Herbrig

Kai Herbrig

July 15, 2010 10:07am UTC in response to Jarlath McEntee

Re: Java Out of Memory Error

Maybe the maximum java heap size is the problem. I remember 256MB is the default setting for this.

I would try to increase it by editing the MAXHEAP-value in the comsol.opts file, which is located in the comsol bin directory to 512MB or higher ...

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Mate Horvat

Mate Horvat

July 17, 2010 9:04am UTC in response to Kai Herbrig

Re: Java Out of Memory Error

Hi,

I have a similar problem, but there is no comsol.opt file in the bin directory neither in any comsol directories.

Can someone give me some advice?

Thanks,
Mate

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Kai Herbrig

Kai Herbrig

July 17, 2010 11:08am UTC in response to Mate Horvat

Re: Java Out of Memory Error

"On UNIX, Linux, and the Macintosh, edit the 'comsol' shell script, located in the bin directory under your COMSOL directory."

just read the doc ;)

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Jarlath McEntee

Jarlath McEntee

July 17, 2010 1:44pm UTC in response to Kai Herbrig

Re: Java Out of Memory Error

This option seems to be available for COMSOL 3.5 but not for COMSOL 4.0

There is no comsol.opts file in the bin directory for COMSOL 4

What is the fix for 4.0?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Mate Horvat

Mate Horvat

July 17, 2010 2:53pm UTC in response to Jarlath McEntee

Re: Java Out of Memory Error

Jarlath is right, there is no comsol.opt file for 4.0 (although there is for 3.4).

I can't access the KB, because I only have students license, but I know there are topics on Java Runtime Errors.
A week ago 4.0 worked fine and since yesterday it keeps crashing right after I start it.

Do you know any solutions?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

MOhmesICx

MOhmesICx

September 13, 2010 10:39pm UTC in response to Mate Horvat

Re: Java Out of Memory Error

There is no comsol.opt file anymore for version 4.0. However, under \COMSOL40a\bin\win32 or \COMSOL40a\bin\win64 there are the files comsol.ini and comsolserver.ini. The maximum Java heap size is defined as the numeric value after -Xmx. The default is -Xmx1024m or 1024 megabytes.

There are other configuration options here which are specified in \COMSOL40a\java\win64\jre\bin\server\Xusage.txt or \COMSOL40a\java\win32\jre\bin\client\Xusage.txt.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ehsan  Rezaei

Ehsan Rezaei

March 26, 2014 9:27am UTC in response to MOhmesICx

Re: Java Out of Memory Error

Hello everybody
Has anyone solved this problem with memory and JAVA?

I have the same problem and I'm using v4.4

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines