Hi All,
Add the following line of code in your eclipse under Jboss-arguments section.
Steps
1. Double click on the JBoss server which you already added to your eclipse.
2. Click on open launch configuration link.
3. After clicking this link one new window will open with edit launch
configuration properties.
4. In this window place the following code in your VM arguments Area section.
5.Click on save this(CTRL+S).
-Dprogram.name=run.bat -Djava.endorsed.dirs="C:/jboss-Location/jboss-eap-4.3/jboss-as/bin/../lib/endorsed" -Xms512m -Xmx512m -XX:MaxPermSize=128m
Jboss-Location means where is your jboss is placed.
Ex:
My Jobss is there in C:/siva then replace this with Jboss_location.
There is another way to increase permgen space size.
1. open run.bat in either edit plus/wordpad/notepad
2. fist see the following code is commented or not ,find this is there or not
if it is commented uncommented, it is not there then paste it in run.bat file
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
I hope this will help you to avoid permgen space exception.