Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Does WTP need: -XX:MaxPermSize=128m? Got out of memory errors...
Does WTP need: -XX:MaxPermSize=128m? Got out of memory errors... [message #182974] Mon, 20 November 2006 15:37 Go to next message
Eclipse User
Originally posted by: peterdnight.yahoo.com

As some of my WTP projects have gotten significantly bigger, I started
getting out of memory errors. I googled it, and came across a posting
suggest using JConsole. Since I am on the latest 1.5 jvm from sun, I gave it
a shot.

Sure enough, with WTP loaded, eclipse permgen memory climbs. There seems to
be a jump every time I do "new servlet", but it seems to keep climbing
slowly under reqular use. By increasing it to 128mb (default is 64m), I can
now easily go a couple of days without restarting.

Posting just in case other people run across this. Any other suggestions are
appreciated....

- Peter
Re: Does WTP need: -XX:MaxPermSize=128m? Got out of memory errors... [message #182982 is a reply to message #182974] Mon, 20 November 2006 21:44 Go to previous messageGo to next message
Seng Phung Lu is currently offline Seng Phung Lu
Messages: 62
Registered: July 2009
Member
Peter,
Thanks for sharing your experience!

I believe you ran into the following reported problem:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250
(Comment #54,in particular, summarizes the issue well.)

You've found the suggested workaround. Depending on how much memory is
on system, further increasing -XX:MaxPermSize ( 512M for 2G machine) may
eliminate the problem for your particular usage pattern.

-Seng


Peter wrote:
> As some of my WTP projects have gotten significantly bigger, I started
> getting out of memory errors. I googled it, and came across a posting
> suggest using JConsole. Since I am on the latest 1.5 jvm from sun, I gave it
> a shot.
>
> Sure enough, with WTP loaded, eclipse permgen memory climbs. There seems to
> be a jump every time I do "new servlet", but it seems to keep climbing
> slowly under reqular use. By increasing it to 128mb (default is 64m), I can
> now easily go a couple of days without restarting.
>
> Posting just in case other people run across this. Any other suggestions are
> appreciated....
>
> - Peter
>
>
Re: Does WTP need: -XX:MaxPermSize=128m? Got out of memory errors... [message #183256 is a reply to message #182974] Mon, 27 November 2006 07:10 Go to previous message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Mon, 20 Nov 2006 10:37:01 -0500, Peter <peterdnight@yahoo.com> wrote:


>
> ... There seems to
> be a jump every time I do "new servlet", but it seems to keep climbing
> slowly under reqular use. ...

If you have a scenerio that does reliably show a jump _every_ time you do a
certain action (like "new servlet") that would be worth a bug report
against webtools. That is a sign of "class loader leak".

As far as the "climbing slowly under reqular use" ... if you can narrow
that
down to some reproducable cases, that would be good too. I know I've
montiored it
a bit "under regular use" and did not see such slow growth, so any help
narrowing it down to which step you perform would help us get to the
bottom of it.

A 128mb maxPermSize is not unusual ... anything over that may be, from
what I've read.
(in other words, climbing over the default of 64 Mb is not that unusual,
but clibming
over 128Mb would be worth reporting).
Previous Topic:Blank spaces between tags
Next Topic:IE and Netscape icons in JavaScript content assist
Goto Forum:
  


Current Time: Fri Sep 19 01:58:45 GMT 2014

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

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