Question: I am using eclipse-helios and Tomcat 6 for my spring application and get
java.lang.OutOfMemoryError: PermGen space  
WHENEVER I DEBUG MY APPLICATION
I tried
- Adding - -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms512m -Xmx1024m -XX:MaxPermSize=1204m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled 
 to- eclipse.ini
- Creating - setenv.shand- setenv.batin- tomcat_home/binwith following content- set JAVA_OPTS="-Xms256m -Xmx512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" 
- Manually running garbage collector in eclipse. I enabled this option by - Window -> Preferences -> General -> and select always run in background and show heap status 
- Restarting Tomcat hundred times. 
- Restarting eclipse and sometimes restarting my machine when frustration goes beyond the limit.. 
Best part is I still get the error. Is there any solution which I should try?
I tried running other application and still get same error also IMHO my application is too small to cause error and my app is running fine on my colleagues setup.
 
     
    
 
     
     
     
     
    