tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh babu" <sureshygradu...@gmail.com>
Subject Re: Increase Heapsize
Date Wed, 19 Jul 2006 06:48:42 GMT
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.mark and
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, Ibrahim.Siddiqui@uboc.com <Ibrahim.Siddiqui@uboc.com> 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 <chris@christopherschultz.net>*
>
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message