Use JConsole
<http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html> or
if you need more details a profiling tool like Yourkit
Am 12.07.2010 17:04, schrieb abhishek jain:
Hi,
How can i check how much memory is it currently consuming / using.
thanks
abhishek
On Sun, Jul 11, 2010 at 6:34 AM, Martin Gainty<mgai...@hotmail.com> wrote:
sounds as if class and method objects could possibly be missed by GC..try
this for running under Jboss using Sun JVM (bin/run.conf) settings
-Xms128m
-Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:MaxPermSize=512m
-Xverify:none
of course these settings would be different for IBM JVM
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
dient lediglich dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
de ceci est interdite. Ce message sert à l'information seulement et n'aura
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.
From: vikram.g.by...@accenture.com
To: user@struts.apache.org
Date: Fri, 9 Jul 2010 13:21:03 +0530
Subject: RE: OutOfMemoryError: PermGen space!!!! Dont know why?
-XX:PermSize=64M -XX:MaxPermSize=128M, these parameters define
"PermGenSpace", this is where all class files are loaded.
Check out your Heap memory size. The PermGenSpace should be 1/4th of your
allocated Heap memory.
Best Regards,
Vikram
-----Original Message-----
From: Brian Thompson [mailto:elephant...@gmail.com]
Sent: Friday, July 09, 2010 1:14 PM
To: Struts Users Mailing List
Subject: Re: OutOfMemoryError: PermGen space!!!! Dont know why?
You could also adjust your eclipse.ini to give more memory to the JVM:
-XX:PermSize=64M -XX:MaxPermSize=128M
Add it to the --vmargs section of the file.
-Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org