Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP, Jetty6 PermGen trouble(Running out iof PermGen on Jetty)
RAP, Jetty6 PermGen trouble [message #517107] Fri, 26 February 2010 09:41 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi I build a small RAP app, build a war file and deployed it on my embedded Jetty 6 Server (its running on top of some other stuff) I tested it on my environment with really low traffic, but after a couply of days I always run out of PermGen (set to 512M already). Has anyone experienced problems like this or can you give me a hint what this is all about ?

Regards Thomas
Re: RAP, Jetty6 PermGen trouble [message #517209 is a reply to message #517107] Fri, 26 February 2010 15:30 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 137
Registered: July 2009
Senior Member
Hi,

in the beginning, i also had trouble with the PermGen running on Tomcat.
Are you sure, that you increased the PerGem size, and not just the Heap memory?
For example: -XX:MaxPermSize=256m
Does the Jetty Server itself (the VM) really get enough memory allocated?
128 to 256 MB PermSize should be absolutely (!!!) enough for a decent application.
If it still isn't enough, you should check your application for memory leaks. There
seems to be a quite big one, in this case ;))

Greetings,
-ben



Am 26.02.2010 10:41, schrieb Thomas Kratz:
> Hi I build a small RAP app, build a war file and deployed it on my
> embedded Jetty 6 Server (its running on top of some other stuff) I
> tested it on my environment with really low traffic, but after a couply
> of days I always run out of PermGen (set to 512M already). Has anyone
> experienced problems like this or can you give me a hint what this is
> all about ?
>
> Regards Thomas
Re: RAP, Jetty6 PermGen trouble [message #517211 is a reply to message #517209] Fri, 26 February 2010 15:36 Go to previous messageGo to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Yes i have enough PermGen. I wonder if the trouble is that I connect a a RMI Service on the same VM (please do not ask !) thats managed by a spring exporter. I have no clue why PermGen is exhausted so quickly
Re: RAP, Jetty6 PermGen trouble [message #517232 is a reply to message #517211] Fri, 26 February 2010 16:13 Go to previous message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 137
Registered: July 2009
Senior Member
Firstly you could try the excellent Eclipse Tool MAT ( http://www.eclipse.org/mat/ ) to investigate
a heap dump that is created when the OutOfMemory Exception occurs. I don't exactly know, whether
such a dump will be created on a PermGen Error, but i may be worth the try.

Here is a good description of how to use MAT, quite easy:
http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/27/autom ated-heap-dump-analysis-finding-memory-leaks-with-one-click/

The problem is, the PermGen is not that easy to investigate. I didn't do it myself, but there are
also some articles about that:
http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/17/the-u nknown-generation-perm/

To investigate unexplained PermGen error you'll need to read and dig down into some VM internals :/.

But maybe other, more experienced, developers can shed some more light on it.

HTH,
-ben



Am 26.02.2010 16:36, schrieb Thomas Kratz:
> Yes i have enough PermGen. I wonder if the trouble is that I connect a a
> RMI Service on the same VM (please do not ask !) thats managed by a
> spring exporter. I have no clue why PermGen is exhausted so quickly
Previous Topic:[ANN] RAP 1.2.2 is available
Next Topic:qx.ui.form.TextArea in 1.3M5
Goto Forum:
  


Current Time: Thu Oct 10 05:51:40 GMT 2024

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

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

Back to the top