In file catalina.bat (for Widows) or catalina.sh (for GNU/Linux), add this line :

CATALINA_HEAP=”-Xms256m -Xmx512m”;

This mean :

-Xms256m >> minimal heap in MB

-Xms512m >> maximal heap in MB

After that, in CATALINA_OPTS parameter, add CATALINA_HEAP value;

Before: CATALINA_OPTS=”$CATALINA_OPTS $JPDA_OPTS”

After: CATALINA_OPTS=”$CATALINA_OPTS $JPDA_OPTS $CATALINA_HEAP”

While editing your Tomcat configuration file, Tomcat status must be OFF.

Search terms:belajar tomcat, heap memory, belajar konfig tomcat, setting CATALINA_OPTS, catalina_opts, allinurl: Heap, setting memory tomcat, tomcad uat apa, tomcat buat apa, tomcat buat apa?, tomcat linux set heap, set heap memori tomcat ubuntu, mengatasi memory heap pada xp, memory tomcat, memori heap, manfaat tomcat, heap memory ubuntu, heap itu apaan, configure tomcat memory, belajar tomcat di ubuntu

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Technorati
  • E-mail this story to a friend!
  • Print this article!
  • StumbleUpon
  • TwitThis

Tags:

Sekolah Internet Indonesia

Related Posts

  • No Related Post

3 Responses to “Customize Tomcat Heap Memory”

  1. Your Reader says:

    Great! Thank you very much!
    I always wanted to write in my blog something like that. Can I take part of your post to my site?
    Of course, I will add backlink?

    Sincerely, Reader

  2. gwawan says:

    Yes, of course

  3. I apologize for calling you a …,
    —————————————
    signature: cheap soma seg6se98i

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>