-
1. Re: Memory Leak in JBoss IDE?
maxandersen Dec 19, 2006 5:24 AM (in response to jantzen)I run with the (hibernate) tooling every day and it does not run out of memory.......how many times to you run the codegeneration ?
Btw. it is probably the permgen space you need to increase because hibernate generates proxy classes. -
2. Re: Memory Leak in JBoss IDE?
jantzen Dec 19, 2006 3:46 PM (in response to jantzen)Hmm, PermGen space ... Looking at my workspace/.metadata/.log file I see:
!ENTRY org.eclipse.core.jobs 4 2 2006-12-18 18:48:46.390 !MESSAGE An internal error occurred during: "EL Syntax Validator". !STACK 0 java.lang.OutOfMemoryError: PermGen space !ENTRY org.eclipse.core.jobs 4 2 2006-12-18 18:48:54.973 !MESSAGE An internal error occurred during: "JSP Directive Validator". !STACK 0 java.lang.OutOfMemoryError: PermGen space !ENTRY org.eclipse.core.jobs 4 2 2006-12-18 18:49:03.967 !MESSAGE An internal error occurred during: "Process resource updates". !STACK 0 java.lang.OutOfMemoryError: PermGen space
I'm adding-XX:MaxPermSize=256m
to my eclipse.ini file to see if it improves things. Thanks for the suggestion. -
3. Re: Memory Leak in JBoss IDE?
alexg79 Dec 20, 2006 9:57 AM (in response to jantzen)I've been having the same kind of problems. Eclipse used to crash once every 10 minutes or so. I then updated Eclipse and disabled one of the major plugins I was using, and that seemed to help somewhat (crashes have been reduced to a handful in a day). I'll try that setting too, and see if I can reduce crashes to zero.
What is this PermGen thing anyway? I hadn't even heard about it until I read the workspace log to see what caused the hang/crash. -
4. Re: Memory Leak in JBoss IDE?
maxandersen Dec 20, 2006 12:30 PM (in response to jantzen)PermGen space is where the byte code for classes/method and interned Strings are located.
Thus for applications that dynamically generates classes, such as hibernate tools each time you start a sessionfactory, you might need some more permgen space.