Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
Technical Personnal Blog

Technical Personnal Blog

Technical Personnal Blog

Technical Personnal Blog

  • Tech
  • Blog
  • Open Source
  • VEGAS
  • CARD
  • Favorite Link
  • Shop
  • Cart
  • Checkout
  • My account
  • Tech
  • Blog
  • Open Source
  • VEGAS
  • CARD
  • Favorite Link
  • Shop
  • Cart
  • Checkout
  • My account
Close

Search

  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
Subscribe
BlogTech

TN10384: How to increase the Java Heap size in Tomcat Application Server

By techsupport
October 26, 2016 1 Min Read
Comments Off on TN10384: How to increase the Java Heap size in Tomcat Application Server
To increase the Java heap size in Tomcat, follow the instructions below:
    1. Open the startup script used to start Tomcat. For Windows servers, this will be catalina.bat. On Unix servers, this will be catalina.sh.
    2. At the top of the script, define the JAVA_OPTS variable to specify a maximum heap size of 256MB. For example:
      • Windows: set JAVA_OPTS=-Xmx256m
      • Unix shell: JAVA_OPTS=-Xmx256m

      The following image shows an example of setting the JAVA_OPTS variable in the catalina.bat (Windows) file.

    3. Save the changes and startup/restart Tomcat.
In recent versions on Windows, you can instead set this in the Tomcat interface:
      1. Go to Start=> All Programs => Apache Tomcat x.x => Configure Tomcat.

      2. Go to the “Java” tab and specify a maximum memory pool:

      3. Save the changes and startup/restart Tomcat.
Remember that the memory used will decrease available RAM on the machine. This may lead to performance issues if set too high, so set the value with care.
For additional information on optimizing Tomcat memory usage, refer to the following:

http://jakarta.apache.org/tomcat/faq/memory.html

WARNING:
Backup the script before any modifications.
Author

techsupport

Follow Me
Other Articles
Previous

How to Shrink SQL Server Transaction Logs

Next

에니메이(Anime)

Categories

  • Android
  • Blog
  • Favorite Link
  • linux
  • Open Source
  • opencart
  • social
  • Tech
  • Uncategorized

Archives

  • January 2025
  • March 2024
  • August 2023
  • March 2023
  • February 2023
  • November 2021
  • August 2021
  • April 2021
  • March 2021
  • December 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • May 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • June 2019
  • October 2018
  • August 2018
  • May 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • March 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • January 2016
  • December 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
Copyright 2026 — Technical Personnal Blog. All rights reserved. Blogsy WordPress Theme