Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can I increase heap and permanent memory
How can I increase heap and permanent memory [message #333845] Thu, 08 January 2009 19:23 Go to next message
sNop is currently offline sNopFriend
Messages: 281
Registered: July 2009
Senior Member
Hi,

I can increase memory for Eclipse GANYMEDE, I have tried this manual:
http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F

My eclipse.ini looks like this:
-startup
plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819. jar
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Xms128m
-Xmx384m
-XX:PermSize=256M


And here the problem is, I can't increase memory XXMaxPermSize more than 512m and heap
memory can't increase more than -Xmx384m

When I increase memory I get this error if I start GANYMEDE:
http://tinyurl.com/8wwgz6

My OS WinXP SP2 4GB Ram. Where the problem could be ?

Thank you for any advices.
Re: How can I increase heap and permanent memory [message #333847 is a reply to message #333845] Fri, 09 January 2009 06:47 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"sNop" <snop3@seznam.cz> wrote in message
news:gk5jrc$8ma$1@build.eclipse.org...
> Hi,
>
> I can increase memory for Eclipse GANYMEDE, I have tried this manual:
> http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F
>
> My eclipse.ini looks like this:
> -startup
> plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819. jar
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 512m
> -vmargs
> -Xms128m
> -Xmx384m
> -XX:PermSize=256M
>
>
> And here the problem is, I can't increase memory XXMaxPermSize more than
> 512m and heap
> memory can't increase more than -Xmx384m
>
> When I increase memory I get this error if I start GANYMEDE:
> http://tinyurl.com/8wwgz6
>
> My OS WinXP SP2 4GB Ram. Where the problem could be ?


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?
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 messageGo to next message
sNop is currently offline sNopFriend
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 messageGo to next message
sNop is currently offline sNopFriend
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 messageGo to next message
Eclipse UserFriend
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 #333859 is a reply to message #333849] Fri, 09 January 2009 20:26 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"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?
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
sNop is currently offline sNopFriend
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
Previous Topic:How do I add toolbar actions to a specific ContentOutline page
Next Topic:Listening to File saves
Goto Forum:
  


Current Time: Mon Jul 22 22:27:38 GMT 2024

Powered by FUDForum. Page generated in 0.04349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top