users@glassfish.java.net

Re: Glassfish runs very slow.

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Feb 2009 09:19:13 PST

I think I know what the problem is.
ranob, try this:

1) Install VisualVM
2) Restart your Glassfish
    a) in Terminal type: asadmin stop-domain domain1
    b) in Terminal type: asadmin start-domain domain1
3) Open VisualVM and add your server (if you the server is remote) using following connection:
    service:jmx:rmi:///jndi/rmi://[machineName/or IP]:8686/jmxrmi
4) Try to redeploy your app several times and you will see in VisualVM that your memory is going up every time your redeploying it.


I have figure our the problem with my server. The problem was PermGen memory never clears. So, every time when i redeploy my app I have to restart Glassfish instance.

Read more here http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded
[Message sent by forum member 'maksimu' (maksimu)]

http://forums.java.net/jive/thread.jspa?messageID=331324