Does WTP need: -XX:MaxPermSize=128m? Got out of memory errors... [message #182974] |
Mon, 20 November 2006 10:37  |
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 16:44   |
Eclipse User |
|
|
|
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 02:10  |
Eclipse User |
|
|
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds