-
1. PermGen Space almost overflow. Using jboss 4.2.2GA
peterj May 21, 2011 6:30 PM (in response to hazem4work)Please post the changes you made in run.conf. From the data you posted, it appears you set max perm size to 88MB. Also, the permgen is usually always around 98-99% full, the JVM will only ask for as much space as it needs because the permgen usage doesn't constantly increase or shrink like the heap does.
Also, how are you starting the app server?
-
2. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 22, 2011 12:18 AM (in response to peterj)JAVA_OPTS="-Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000"
i'm using service jboss start for starting app server, i've that script into /etc/rc.d/init.d/jboss
so i think it should be
MaxPermSize = 512MB is it right or not?
-
3. PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 22, 2011 11:51 AM (in response to hazem4work)The PermSize should fixed in your case to 512MB.
Do you check the start output that the JVM is started with your options.
You should see something like:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/jboss
JAVA_HOME: /devel/Java/jdk1.6.0_23
JAVA_OPTS: -Xms128m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 ..
=========================================================================
You should check the JAVA_OPTS that you have the correct options, I'm unsure what happen if you have -XX options twice ?!
-
4. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 22, 2011 12:32 PM (in response to wdfink)i can't see echo output maybe coz i'm using service jboss start to launch Jboss, even though i checked using jinfo PID and jmap -heap PID, but i'm still cant see any changes on JAVA_OPTS..is there any places can i put those fields?
i'll try to add'em in run.sh..is it ok?...coz i'm afraid of Jboss has bug or anything bad...
by the way, is there any suggestions to check Jboss if it's working well?
Thanks in advanced...
-
5. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 22, 2011 12:57 PM (in response to hazem4work)You might start your installation with the run.sh script.
Also you can redirect the output of the backgroundstart to a file.
If you use jconsole <pid> you should see the start options and the current JVM memory ...
-
6. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 22, 2011 1:41 PM (in response to wdfink)when i tried jconsole <PID for org.jboss.Main> i've got this message: <PID> is not managed VM...
i've remote access on Linux server...how can i check every Req will come to Jboss, is it possible?
-
7. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 22, 2011 2:18 PM (in response to hazem4work)Youi have to call jconsole at the same system, use jps command to get the correct PID.
What do you mean by 'remote access ... check'?
If you call your app-code you might see your own logging. For EJB calls you can use the jbss console to check the access counter on EJB's
-
8. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 22, 2011 2:49 PM (in response to wdfink)what i mean, i've dedicated Linux server and Jboss 4.2.2GA,
i can see my log file but i've some doubts that's why i'm looking for something else to understand what's going on into it coz i saw many things inside log file..it's like one action is reapating almost the time
do you have any good article explains about jboss console?
thanks for your help
-
9. PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 23, 2011 3:14 AM (in response to hazem4work)I'm a bit confused,
I suppose your PermGen problem is solved, right?
And I don't understand your current problem now.
A special manual about the different console implementation is not available.
You should have a look into the AdminManual.
-
10. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 23, 2011 3:50 AM (in response to wdfink)no, it's not working yet...but when i was checking my log file, i saw some things worried that's why i wanna check why and how i've got those messages in log file...
-
11. PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 23, 2011 4:05 AM (in response to hazem4work)Ok,
forget the messages in your logfile, it might be follow-ups because of the PermGen problem.
can you start the JBoss with run.sh directly from console and see the output?
Can you figure out what you meant by using 'service jboss start' ?
-
12. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
hazem4work May 23, 2011 9:43 AM (in response to wdfink)Hi Wolf..thanks again for your time
finaly it's working now..but as i told you..i've some doubts about log file..when i checked it yesterday..it was like same Req reapated many many times...i'm sure it's not PermGen problem do you have any ideas how can i check it..?
and now MaxPermSize it's 512M
-
13. Re: PermGen Space almost overflow. Using jboss 4.2.2GA
wdfink May 23, 2011 10:54 AM (in response to hazem4work)You should open a new thread for your doubts in the log.
Make a clear test and attach log and part of source