Hi,

Use following line in catalina file

set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails in windows change
accordingly to linux.

Run stratup.sh from command line: to see all heap information on console.



On 7/19/06, Suresh babu <[EMAIL PROTECTED]> wrote:

 Hi

 It's an option to
the JVM, just append this line over there -verbosegc -XX:+PrintGCDetails.
To avoid out of memmory errors just make sure minimum and maximum heap
space should be same.
You can find out still more information with GC details logged on enabling
above option in JVM.

Check it out how much memmory is reclaimimg on each GC and whats the
frequency of minor or major GC are happening.
More over you can set different alogorithms like copying collector.markand 
compavt/mark and sweep /incremental/throughput collectors in young/ old
generation.
You can find brief details in following links.

http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html



On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
>
>
> Chris,
>   This gives how much heapsize is currently allocated.
>    How can I know whether it is enough or what size it should be
> increased to?
>    Also: real time wise, how if tomcat behaving with each
> event/interaction/page delivery?
>
>
> Thanks,
> Ibrahim
>
>
>    *Christopher Schultz < [EMAIL PROTECTED]>*
>
> 07/18/2006 09:00 AM
>
> Please respond to "Tomcat Users List"
>
>         To:        Tomcat Users List < users@tomcat.apache.org>
>         cc:
>         Subject:        Re: Increase Heapsize
>
>
>
>


Ibrahim,

>> You can always call Runtime.getRuntime().totalMemory() to find out the
>> amount of heap space that has been allocated to the JVM.
>
>  Where would this code be written?
>  And how would I execute it?

Just toss a JSP file somewhere with that code in it to allow you to
check up on the app.

-chris




******************************************************************************
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Suresh Babu,
Software Engineer,
Computer Associates-India




--
Suresh Babu,
Software Engineer,
Computer Associates-India

Reply via email to