Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE" Watch "eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE" New topic
Author

eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE

Rahul Ramraje
Greenhorn

Joined: Jul 14, 2010
Posts: 5
Hi,
i am using eclipse3.5(Galileo) and jdk1.6.20.
i downloaded "eclipse3.5 for java EE developer". after that i installed spring IDE plugins through "help->install new software".
after restarting eclipse, when i am doing development, it is giving me "permgen outofmemory" exception.
this happening after every 10-15 mins once i started eclipse.

i tried following steps but none of them is working:-
1)replacing "--launcher.XXMaxPermSize
256m" with "-XX:MaxPermSize=256m" after "-vmargs" in eclipse.ini file.
2)replacing "--launcher.XXMaxPermSize
256m" with "--launcher.XXMaxPermSize
512m"

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I haven't seen this, but I also stopped using JDK 1.6u20 due to a couple of other issues; have you tried with a different version to see if that makes a difference?

I'd also try with a clean workspace to see if the issue is workspace-related (although I haven't had a workspace issue for a couple of versions now). Or just consider using 3.6.
Rahul Ramraje
Greenhorn

Joined: Jul 14, 2010
Posts: 5
Hey David,
with other jdk and eclipse version i done following steps
1)before jdk1.6.20, i was using jdk1.6.21 with eclipse3.6 java EE developers version.
but i faced same problem.
2)when i googled for this, then i got one help from eclipse forum that you have to use jdk1.6.20 with eclipse3.6.
so i uninstalled jdk1.6.21 and installed jdk1.6.20, then also problem was not resolved.
3)then i thought that problem might be with eclipse3.6
so, i ported "eclipse3.5 java EE developers" version and install plugins for spring ide.
during installation i selected "spring ide(required)" only. because i required only that part(which allows you to create java spring project and add spring beans)
but no solution. for eclipse 3.5 also it was giving me same permgen outofmemory exception.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

From the description in your original post it is difficult to tell exactly what is in your eclipse.ini file. The format of this file is very picky - each argument must be on a separate line. Please post the eclipse.ini contents (and remember to use the code tags). Also, I suggest trying a permsize of 512M.


JBoss In Action
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

This solution might help.


http://muhammadkhojaye.blogspot.com/
Rahul Ramraje
Greenhorn

Joined: Jul 14, 2010
Posts: 5
my eclipse.ini file for eclipse3.5 is as follows



for above ini file i checked permsize from 256 to 1024 but it has not reached to solution.
Rahul Ramraje
Greenhorn

Joined: Jul 14, 2010
Posts: 5
Hi friends,
i found one solution for above problem.
you can simply download springsource tool suite from following site :-
http://www.springsource.com/products/eclipse-downloads

just download "springsource-tool-suite-2.3.2.RELEASE-e3.5.2-win32-installer.exe" for windows32 system from above url and install it on your machine.

this tool contains eclipse with spring plugins.
so, you can get all features of eclipse plus spring's features.

great thanks to Muhammad Khojaye, Peter Johnson , David Newton for their support for this problem.

but friends, still our problem has not solved if you got any trick then just reply me.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

Your eclipse.ini file has no setting for the max permsize (the one for the launcher does not count). Add this line to the end of the file:

-XX:MaxPermSize=512M
Rahul Ramraje
Greenhorn

Joined: Jul 14, 2010
Posts: 5
-XX:MaxPermSize=512M

i tried with this argument but it is giving me same problem
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

I just ran across this article:
http://www.zdnet.com/blog/burnette/oracle-rebrands-java-breaks-eclipse/2012?tag=nl.e539
 
Consider Paul's rocket mass heater.
 
subject: eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE
 
Similar Threads
Configuring problem in Eclipse3.5
Within Eclipse - ant javac task and OutOfMemory error.
OutOfMemory issue while using CGLIB in spring
OutOfMemory
hibernate project configuration in eclipse3.5 and netbeans6.8