Home » Eclipse Projects » Eclipse Platform » How can I increase heap and permanent memory
| |
Re: How can I increase heap and permanent memory [message #333848 is a reply to message #333847] |
Fri, 09 January 2009 10:41 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
sNop![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=snop3%40seznam.cz) Messages: 281 Registered: July 2009 |
Senior Member |
|
|
Walter Harley napsal(a):
> "sNop" <snop3@seznam.cz> wrote in message
> news:gk5jrc$8ma$1@build.eclipse.org...
>
> Let's start with the basics. Why do you need more memory? And in
> particular, why do you need more permgen space? 512M for permgen is HUGE,
> you should not need that much. Precisely what is the problem that you are
> trying to solve?
>
> Also, what JVM version are you using?
>
>
My problem is, that Eclipse take over 200MB when I use it whole day. And some things stop
work during, as is code assist in PDT, when I restart eclipse it hangs, windows is closed
but he is still in memory
So I have tried increas memory heap and I can't My JVM is java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
I have lot of ram so 256m which is reserved for eclipse is less, but i can't increase
because the error as I described above
|
|
|
Re: How can I increase heap and permanent memory [message #333849 is a reply to message #333848] |
Fri, 09 January 2009 10:56 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
sNop![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=snop3%40seznam.cz) Messages: 281 Registered: July 2009 |
Senior Member |
|
|
sNop napsal(a):
> Walter Harley napsal(a):
>> "sNop" <snop3@seznam.cz> wrote in message
>> news:gk5jrc$8ma$1@build.eclipse.org...
>>
>> Let's start with the basics. Why do you need more memory? And in
>> particular, why do you need more permgen space? 512M for permgen is HUGE,
>> you should not need that much. Precisely what is the problem that you are
>> trying to solve?
>>
>> Also, what JVM version are you using?
>>
>>
>
> My problem is, that Eclipse take over 200MB when I use it whole day. And some things stop
> work during, as is code assist in PDT, when I restart eclipse it hangs, windows is closed
> but he is still in memory
>
> So I have tried increas memory heap and I can't My JVM is java version "1.6.0_11"
> Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
> Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
>
> I have lot of ram so 256m which is reserved for eclipse is less, but i can't increase
> because the error as I described above
E.g. now i'm working few minutes, my eclipse ini looks like this:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m
But in memory it have 300MB
|
|
|
Re: How can I increase heap and permanent memory [message #333852 is a reply to message #333849] |
Fri, 09 January 2009 14:18 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 1/9/2009 5:56 AM, sNop wrote:
> E.g. now i'm working few minutes, my eclipse ini looks like this:
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xms40m
> -Xmx256m
>
>
> But in memory it have 300MB
Apparently you don't understand how memory is used and managed by the
JVM process. Heap space makes up only a portion of the total memory used
by the JVM (or any process, not just Java). There is lots of other
memory used outside of heap and that is why you see the OS reporting
more memory usage by the process than the size of your heap.
I also agree with Walter that PermGen space should definitely not need
to be higher than 256M - I've worked on some huge applications,
including Eclipse-based development tools and enterprise server apps,
and NONE of them has ever needed permgen more than 256M.
Also, your eclipse.ini does not specify the JVM, which it should. See
http://wiki.eclipse.org/Eclipse.ini for information on how to use the
-vm option.
Finally, there is a limitation of the JVM on Windows that can prevent it
from allocating very large memory sizes (both heap and PermGen). If you
set the values for them too high, Windows can fails to allocate space.
The details are rather complicated, but all you really need to
understand is that it is not advisable to set your memory settings
arbitrarily high; only as high as you really need.
Hope this helps,
Eric
|
|
| |
Re: How can I increase heap and permanent memory [message #333860 is a reply to message #333859] |
Fri, 09 January 2009 20:39 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
sNop![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=snop3%40seznam.cz) Messages: 281 Registered: July 2009 |
Senior Member |
|
|
Walter Harley napsal(a):
> "sNop" <snop3@seznam.cz> wrote in message
> news:gk7aft$1v6$1@build.eclipse.org...
>> E.g. now i'm working few minutes, my eclipse ini looks like this:
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 256m
>> -vmargs
>> -Xms40m
>> -Xmx256m
>>
>>
>> But in memory it have 300MB
>
> For what it's worth, those are the same settings I have (they're the
> defaults) and I am able to do Java development all day without any problems.
> So I wonder if there is a different problem affecting you, not just memory.
>
> I would leave the permgen space alone, don't change that. If you are
> running out of permgen space you will get a message that says so.
>
> And if you edit that eclipse.ini, ONLY changing the -Xmx256m line
> to -Xmx512m, making no other changes, do you still get the error you
> reported before?
>
>
thank you, if i change only Xmx, so it works, i think that 512m for heap is sufficient
thank you
|
|
|
Goto Forum:
Current Time: Sun Aug 25 10:50:36 GMT 2024
Powered by FUDForum. Page generated in 0.03677 seconds
|