Home » Eclipse Projects » Technology Project and PMC » Out of Memory
Out of Memory [message #72140] |
Tue, 23 May 2006 06:30 |
Markus KARG Messages: 44 Registered: July 2009 |
Member |
|
|
I am using Eclipse 3.1 to code some very large projects (about 3.000
files, most of them .java, but some .xml, .xlst etc., too). To compile,
I am running a very complex ANT script.
Unfortunatley, every one or two hours, the IDE runs out of memory (even
I am running a 1 GB machine, having set "-Xmx 512M" when starting
eclipse.exe). It seems like the IDE is not taking respect of the "-Xmx
512M" because if I remove the switch, its not better and not worse!
When I'm taking a look at Windows' task manager it tells me, eclipse is
not nearly using the 512 megs!
So how can I convince eclipse IDE to really take that 512M I am willing
to reserve for it?
|
|
|
Re: Out of Memory [message #72191 is a reply to message #72140] |
Wed, 24 May 2006 08:33 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
Markus KARG wrote:
> I am using Eclipse 3.1 to code some very large projects (about 3.000
> files, most of them .java, but some .xml, .xlst etc., too). To
> compile, I am running a very complex ANT script.
>
> Unfortunatley, every one or two hours, the IDE runs out of memory
> (even I am running a 1 GB machine, having set "-Xmx 512M" when
> starting eclipse.exe). It seems like the IDE is not taking respect of
> the "-Xmx 512M" because if I remove the switch, its not better and not
> worse!
Make sure you use -vmargs -Xmx512M
Dani
>
> When I'm taking a look at Windows' task manager it tells me, eclipse
> is not nearly using the 512 megs!
>
> So how can I convince eclipse IDE to really take that 512M I am
> willing to reserve for it?
|
|
|
Re: Out of Memory [message #72209 is a reply to message #72191] |
Wed, 24 May 2006 10:15 |
Markus KARG Messages: 44 Registered: July 2009 |
Member |
|
|
Daniel Megert schrieb:
> Markus KARG wrote:
>
>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>> files, most of them .java, but some .xml, .xlst etc., too). To
>> compile, I am running a very complex ANT script.
>>
>> Unfortunatley, every one or two hours, the IDE runs out of memory
>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>> starting eclipse.exe). It seems like the IDE is not taking respect of
>> the "-Xmx 512M" because if I remove the switch, its not better and not
>> worse!
>
>
> Make sure you use -vmargs -Xmx512M
Actually I am doing this already:
C:\eclipse\eclipse.exe -vmargs -Xmx512M
So what to do now?
BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>
> Dani
>
>>
>> When I'm taking a look at Windows' task manager it tells me, eclipse
>> is not nearly using the 512 megs!
>>
>> So how can I convince eclipse IDE to really take that 512M I am
>> willing to reserve for it?
|
|
|
Re: Out of Memory [message #72226 is a reply to message #72209] |
Wed, 24 May 2006 13:39 |
Anton Leherbauer Messages: 490 Registered: July 2009 |
Senior Member |
|
|
You may run out of PermGen space.
You can increase the PermGen space limit with -vmargs
-XX:MaxPermSize=<megabytes>m (default = 64m)
Markus KARG wrote:
> Daniel Megert schrieb:
>> Markus KARG wrote:
>>
>>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>>> files, most of them .java, but some .xml, .xlst etc., too). To
>>> compile, I am running a very complex ANT script.
>>>
>>> Unfortunatley, every one or two hours, the IDE runs out of memory
>>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>>> starting eclipse.exe). It seems like the IDE is not taking respect of
>>> the "-Xmx 512M" because if I remove the switch, its not better and
>>> not worse!
>>
>>
>> Make sure you use -vmargs -Xmx512M
>
> Actually I am doing this already:
>
> C:\eclipse\eclipse.exe -vmargs -Xmx512M
>
> So what to do now?
>
> BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>
>>
>> Dani
>>
>>>
>>> When I'm taking a look at Windows' task manager it tells me, eclipse
>>> is not nearly using the 512 megs!
>>>
>>> So how can I convince eclipse IDE to really take that 512M I am
>>> willing to reserve for it?
|
|
|
Re: Out of Memory [message #72318 is a reply to message #72226] |
Mon, 29 May 2006 07:35 |
Markus KARG Messages: 44 Registered: July 2009 |
Member |
|
|
Indeed sometimes it posted the word "PermGen".
Why isn't the VM adopting more "PermGen" when I add -Xmx512M...?
Okay, I'll give it a try!
Thanks
Markus
Anton Leherbauer schrieb:
> You may run out of PermGen space.
> You can increase the PermGen space limit with -vmargs
> -XX:MaxPermSize=<megabytes>m (default = 64m)
>
>
> Markus KARG wrote:
>
>> Daniel Megert schrieb:
>>
>>> Markus KARG wrote:
>>>
>>>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>>>> files, most of them .java, but some .xml, .xlst etc., too). To
>>>> compile, I am running a very complex ANT script.
>>>>
>>>> Unfortunatley, every one or two hours, the IDE runs out of memory
>>>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>>>> starting eclipse.exe). It seems like the IDE is not taking respect
>>>> of the "-Xmx 512M" because if I remove the switch, its not better
>>>> and not worse!
>>>
>>>
>>>
>>> Make sure you use -vmargs -Xmx512M
>>
>>
>> Actually I am doing this already:
>>
>> C:\eclipse\eclipse.exe -vmargs -Xmx512M
>>
>> So what to do now?
>>
>> BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>>
>>>
>>> Dani
>>>
>>>>
>>>> When I'm taking a look at Windows' task manager it tells me, eclipse
>>>> is not nearly using the 512 megs!
>>>>
>>>> So how can I convince eclipse IDE to really take that 512M I am
>>>> willing to reserve for it?
|
|
|
Re: Out of Memory [message #600531 is a reply to message #72140] |
Wed, 24 May 2006 08:33 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
Markus KARG wrote:
> I am using Eclipse 3.1 to code some very large projects (about 3.000
> files, most of them .java, but some .xml, .xlst etc., too). To
> compile, I am running a very complex ANT script.
>
> Unfortunatley, every one or two hours, the IDE runs out of memory
> (even I am running a 1 GB machine, having set "-Xmx 512M" when
> starting eclipse.exe). It seems like the IDE is not taking respect of
> the "-Xmx 512M" because if I remove the switch, its not better and not
> worse!
Make sure you use -vmargs -Xmx512M
Dani
>
> When I'm taking a look at Windows' task manager it tells me, eclipse
> is not nearly using the 512 megs!
>
> So how can I convince eclipse IDE to really take that 512M I am
> willing to reserve for it?
|
|
|
Re: Out of Memory [message #600539 is a reply to message #72191] |
Wed, 24 May 2006 10:15 |
Markus KARG Messages: 44 Registered: July 2009 |
Member |
|
|
Daniel Megert schrieb:
> Markus KARG wrote:
>
>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>> files, most of them .java, but some .xml, .xlst etc., too). To
>> compile, I am running a very complex ANT script.
>>
>> Unfortunatley, every one or two hours, the IDE runs out of memory
>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>> starting eclipse.exe). It seems like the IDE is not taking respect of
>> the "-Xmx 512M" because if I remove the switch, its not better and not
>> worse!
>
>
> Make sure you use -vmargs -Xmx512M
Actually I am doing this already:
C:\eclipse\eclipse.exe -vmargs -Xmx512M
So what to do now?
BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>
> Dani
>
>>
>> When I'm taking a look at Windows' task manager it tells me, eclipse
>> is not nearly using the 512 megs!
>>
>> So how can I convince eclipse IDE to really take that 512M I am
>> willing to reserve for it?
|
|
|
Re: Out of Memory [message #600544 is a reply to message #72209] |
Wed, 24 May 2006 13:39 |
Anton Leherbauer Messages: 490 Registered: July 2009 |
Senior Member |
|
|
You may run out of PermGen space.
You can increase the PermGen space limit with -vmargs
-XX:MaxPermSize=<megabytes>m (default = 64m)
Markus KARG wrote:
> Daniel Megert schrieb:
>> Markus KARG wrote:
>>
>>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>>> files, most of them .java, but some .xml, .xlst etc., too). To
>>> compile, I am running a very complex ANT script.
>>>
>>> Unfortunatley, every one or two hours, the IDE runs out of memory
>>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>>> starting eclipse.exe). It seems like the IDE is not taking respect of
>>> the "-Xmx 512M" because if I remove the switch, its not better and
>>> not worse!
>>
>>
>> Make sure you use -vmargs -Xmx512M
>
> Actually I am doing this already:
>
> C:\eclipse\eclipse.exe -vmargs -Xmx512M
>
> So what to do now?
>
> BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>
>>
>> Dani
>>
>>>
>>> When I'm taking a look at Windows' task manager it tells me, eclipse
>>> is not nearly using the 512 megs!
>>>
>>> So how can I convince eclipse IDE to really take that 512M I am
>>> willing to reserve for it?
|
|
|
Re: Out of Memory [message #600604 is a reply to message #72226] |
Mon, 29 May 2006 07:35 |
Markus KARG Messages: 44 Registered: July 2009 |
Member |
|
|
Indeed sometimes it posted the word "PermGen".
Why isn't the VM adopting more "PermGen" when I add -Xmx512M...?
Okay, I'll give it a try!
Thanks
Markus
Anton Leherbauer schrieb:
> You may run out of PermGen space.
> You can increase the PermGen space limit with -vmargs
> -XX:MaxPermSize=<megabytes>m (default = 64m)
>
>
> Markus KARG wrote:
>
>> Daniel Megert schrieb:
>>
>>> Markus KARG wrote:
>>>
>>>> I am using Eclipse 3.1 to code some very large projects (about 3.000
>>>> files, most of them .java, but some .xml, .xlst etc., too). To
>>>> compile, I am running a very complex ANT script.
>>>>
>>>> Unfortunatley, every one or two hours, the IDE runs out of memory
>>>> (even I am running a 1 GB machine, having set "-Xmx 512M" when
>>>> starting eclipse.exe). It seems like the IDE is not taking respect
>>>> of the "-Xmx 512M" because if I remove the switch, its not better
>>>> and not worse!
>>>
>>>
>>>
>>> Make sure you use -vmargs -Xmx512M
>>
>>
>> Actually I am doing this already:
>>
>> C:\eclipse\eclipse.exe -vmargs -Xmx512M
>>
>> So what to do now?
>>
>> BTW, OS is Windows XP Pro SP 2, Java is Sun JDK 1.5.0_06.
>>
>>>
>>> Dani
>>>
>>>>
>>>> When I'm taking a look at Windows' task manager it tells me, eclipse
>>>> is not nearly using the 512 megs!
>>>>
>>>> So how can I convince eclipse IDE to really take that 512M I am
>>>> willing to reserve for it?
|
|
|
Goto Forum:
Current Time: Thu Mar 28 14:02:21 GMT 2024
Powered by FUDForum. Page generated in 0.02924 seconds
|