|
Re: RAP, Jetty6 PermGen trouble [message #517209 is a reply to message #517107] |
Fri, 26 February 2010 15:30 |
Benjamin Wolff 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 #517232 is a reply to message #517211] |
Fri, 26 February 2010 16:13 |
Benjamin Wolff 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
|
|
|
Powered by
FUDForum. Page generated in 0.04427 seconds