Home » Eclipse Projects » Eclipse Platform » java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space [message #324577] |
Sun, 27 January 2008 19:00  |
Eclipse User |
|
|
|
Hello,
I'm receiving frequently java.lang.OutOfMemoryError: Java heap space errors.
I did increase the settings in Eclipse.ini to the following values:
-Xms356m
-Xmx640m
-Xmn128m
-XX:+UseParallelGC
-XX:MaxPermSize=256
If I monitor Eclipse in the Windows task manager I see that Eclipse is
around 230 MB before crashing; to my knowledge my settings should be
sufficient.
The system asked me to check .log for additional information but I cannot
find any .log files other then the install.log and error_recovery.log, both
do not contain additional information.
Any advice?
Best regards, Lars
|
|
|
Re: java.lang.OutOfMemoryError: Java heap space [message #324578 is a reply to message #324577] |
Sun, 27 January 2008 19:15   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------090507010404050001080103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lars,
If your settings were taking effect, you'd get up to 640. Look in the
<workspace>/.metadata/.log for track traces. Is it regular memory or
permgen that's running out? My eclipse.ini looks like this so I'm not
sure your max perm size is quite right.
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m
You might have to run with -clean for eclipse.ini changes to take
effect. And note that in 3.3.1 the launcher argument was being ignored
and that was fixed in 3.3.1.1.
Lars Vogel wrote:
> Hello,
>
> I'm receiving frequently java.lang.OutOfMemoryError: Java heap space errors.
>
> I did increase the settings in Eclipse.ini to the following values:
>
> -Xms356m
> -Xmx640m
> -Xmn128m
> -XX:+UseParallelGC
> -XX:MaxPermSize=256
>
> If I monitor Eclipse in the Windows task manager I see that Eclipse is
> around 230 MB before crashing; to my knowledge my settings should be
> sufficient.
>
> The system asked me to check .log for additional information but I cannot
> find any .log files other then the install.log and error_recovery.log, both
> do not contain additional information.
>
> Any advice?
>
> Best regards, Lars
>
>
>
--------------090507010404050001080103
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Lars,<br>
<br>
If your settings were taking effect, you'd get up to 640. Look in the
<workspace>/.metadata/.log for track traces. Is it regular
memory or permgen that's running out? My eclipse.ini looks like this so
I'm not sure your max perm size is quite right.
<blockquote>-showsplash<br>
org.eclipse.platform<br>
--launcher.XXMaxPermSize<br>
256m<br>
-vmargs<br>
-Xms40m<br>
-Xmx256m<br>
</blockquote>
You might have to run with -clean for eclipse.ini changes to take
effect. And note that in 3.3.1 the launcher argument was being ignored
and that was fixed in 3.3.1.1.<br>
<br>
<br>
Lars Vogel wrote:
<blockquote cite="mid:fnj5uk$gap$1@build.eclipse.org" type="cite">
<pre wrap="">Hello,
I'm receiving frequently java.lang.OutOfMemoryError: Java heap space errors.
I did increase the settings in Eclipse.ini to the following values:
-Xms356m
-Xmx640m
-Xmn128m
-XX:+UseParallelGC
-XX:MaxPermSize=256
If I monitor Eclipse in the Windows task manager I see that Eclipse is
around 230 MB before crashing; to my knowledge my settings should be
sufficient.
The system asked me to check .log for additional information but I cannot
find any .log files other then the install.log and error_recovery.log, both
do not contain additional information.
Any advice?
Best regards, Lars
</pre>
</blockquote>
<br>
</body>
</html>
--------------090507010404050001080103--
|
|
|
Re: java.lang.OutOfMemoryError: Java heap space [message #324579 is a reply to message #324578] |
Sun, 27 January 2008 19:55   |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_005E_01C86150.ED53CFF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Ed,
thank you for your response. The error which currently occurs is =
java.lang.OutOfMemoryError; I haven't seen a permgen error in days. ;-)=20
I'll try your settings (with increased values) and see if the problem =
persists. I'm running also 3.3.1.1
Thanks again, Lars
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:fnj6r7$lqv$1@build.eclipse.org...
Lars,
If your settings were taking effect, you'd get up to 640. Look in the =
<workspace>/.metadata/.log for track traces. Is it regular memory or =
permgen that's running out? My eclipse.ini looks like this so I'm not =
sure your max perm size is quite right. =20
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m
You might have to run with -clean for eclipse.ini changes to take =
effect. And note that in 3.3.1 the launcher argument was being ignored =
and that was fixed in 3.3.1.1.
Lars Vogel wrote:=20
Hello,
I'm receiving frequently java.lang.OutOfMemoryError: Java heap space =
errors.
I did increase the settings in Eclipse.ini to the following values:
-Xms356m
-Xmx640m
-Xmn128m
-XX:+UseParallelGC
-XX:MaxPermSize=3D256
If I monitor Eclipse in the Windows task manager I see that Eclipse is=20
around 230 MB before crashing; to my knowledge my settings should be=20
sufficient.
The system asked me to check .log for additional information but I =
cannot=20
find any .log files other then the install.log and error_recovery.log, =
both=20
do not contain additional information.
Any advice?
Best regards, Lars=20
=20
------=_NextPart_000_005E_01C86150.ED53CFF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thank you for your response. The error =
which=20
currently occurs is java.lang.OutOfMemoryError; I haven't seen a =
permgen=20
error in days. ;-) </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'll try your settings (with increased =
values) and=20
see if the problem persists. I'm running also 3.3.1.1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again, Lars</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" <<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>>=20
wrote in message <A=20
=
href=3D"news:fnj6r7$lqv$1@build.eclipse.org">news:fnj6r7$lqv$1@build.ecli=
pse.org</A>...</DIV>Lars,<BR><BR>If=20
your settings were taking effect, you'd get up to 640. Look in =
the=20
<workspace>/.metadata/.log for track traces. Is it regular =
memory=20
or permgen that's running out? My eclipse.ini looks like this so I'm =
not sure=20
your max perm size is quite right. =20
=
<BLOCKQUOTE>-showsplash<BR>org.eclipse.platform<BR>--launcher.XXMaxPermSi=
ze<BR>256m<BR>-vmargs<BR>-Xms40m<BR>-Xmx256m<BR></BLOCKQUOTE >You=20
might have to run with -clean for eclipse.ini changes to take =
effect. =20
And note that in 3.3.1 the launcher argument was being ignored and =
that was=20
fixed in 3.3.1.1.<BR><BR><BR>Lars Vogel wrote:=20
<BLOCKQUOTE cite=3Dmid:fnj5uk$gap$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hello,
I'm receiving frequently java.lang.OutOfMemoryError: Java heap space =
errors.
I did increase the settings in Eclipse.ini to the following values:
-Xms356m
-Xmx640m
-Xmn128m
-XX:+UseParallelGC
-XX:MaxPermSize=3D256
If I monitor Eclipse in the Windows task manager I see that Eclipse is=20
around 230 MB before crashing; to my knowledge my settings should be=20
sufficient.
The system asked me to check .log for additional information but I =
cannot=20
find any .log files other then the install.log and error_recovery.log, =
both=20
do not contain additional information.
Any advice?
Best regards, Lars=20
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_005E_01C86150.ED53CFF0--
|
|
| | | | |
Re: java.lang.OutOfMemoryError: Java heap space [message #324689 is a reply to message #324650] |
Wed, 30 January 2008 13:16   |
Eclipse User |
|
|
|
Hi Walter,
with the increased parameters from Ed I did not yet receive a dump.
So currently me eclipse.ini looks like the following:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Xms40m
-Xmx512m
-XX:+HeapDumpOnOutOfMemoryError
If I receive this error again I will make the HeapDump available if that is
useful.
Best regards, Lars
"Walter Harley" <wharley@bea.com> wrote in message
news:fnoi6b$gpn$1@build.eclipse.org...
> "Lars Vogel" <Lars.Vogel@gmail.com> wrote in message
> news:fnoeev$fkg$1@build.eclipse.org...
>> Hi Walter,
>> thank you for your reply.
>>
>> I actually do use Windows XP with JRE 1.6.
>
> You said your parameters were:
>> -Xms356m
>> -Xmx640m
>> -Xmn128m
>> -XX:+UseParallelGC
>> -XX:MaxPermSize=256
>
> I'm concerned about that "256", which seems like it should have an 'm'
> after it. I know you're not getting permgen failures, I'm just digging
> for anything unusual about your configuration.
>
> Do you still get the failures if you simplify these options, e.g., get rid
> of the ParallelGC and the -Xmn? I'm not sure those are doing you any good
> in a client app. In particular, the -Xmn is going to be reducing the
> effective size of your heap.
>
> Also, do you get anything useful if you add
> "-XX:+HeapDumpOnOutOfMemoryError"? (Not that digging through 1G of dumped
> heap is a pleasure.)
>
|
|
|
Re: java.lang.OutOfMemoryError: Java heap space [message #324690 is a reply to message #324683] |
Wed, 30 January 2008 13:18  |
Eclipse User |
|
|
|
Hi Eric,
usally Eclipse becomes unusable after this error. In some cases I can close
it in some I have to kill it via the task list.
If it happens again (I changed the settings) I try to report more.
Best regards, Lars
"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:fnqb25$q8a$1@build.eclipse.org...
> Lars Vogel wrote:
>> Hi Walter,
>> thank you for your reply.
>>
>> I actually do use Windows XP with JRE 1.6.
>>
>> I did increase my memory as suggest by you and will report if I get
>> another crash. The workspace I'm working in is about 80 MB, it mainly
>> consists of XML files and several plug-in projects.
>>
>> Snippet of the log file attached (see below).
>>
>> Best regards, Lars
>> ----------
>> !STACK 0
>> java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast
>> to org.eclipse.core.runtime.CoreException
>> at
>> org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLa unchShortcut.findTypes(JavaApplicationLaunchShortcut.java:11 2)
>
> Hmm, that is a strange error. It is not directly reporting an
> OutOfMemoryError, but rather that something in the JDT launching code is
> trying to cast an OOM to a CoreException. That suggests to me two possible
> things:
> 1) that Eclipse itself may not be actually running out of memory, but the
> app you're trying to run does
> 2) that there is a bug in the JDT launching code where it is trying to do
> the cast that is invalid.
>
> Lars, can you repeat the description of the behavior you see when this
> happens? Does Eclipse continue to function or become
> unusable/nonres-ponsive? Or does it hard-crash altogether? Etc...
>
> Eric
|
|
|
Goto Forum:
Current Time: Thu Sep 18 18:45:32 EDT 2025
Powered by FUDForum. Page generated in 0.04515 seconds
|