Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8570233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:30:43+00:00 2026-06-11T18:30:43+00:00

I have tomcat 6 server on windows xp ,And I start tomcat through console

  • 0

I have tomcat 6 server on windows xp ,And I start tomcat through console i.e. using startup.bat.

AFAIK catalina.bat file is for windows so I am changing bat file for memory management.I don’t have tomcat configuration window.

Now I want to increase its heap size so My question is should I extend the existing JAVA_OPTS in catalina.bat file i.e.

set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" -Xms1024m -Xmx1024m -XX:PermSize=256m  -XX:MaxPermSize=128m  

Or should I create new environment variable in catalina.bat file i.e.

set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:PermSize=256m  -XX:MaxPermSize=128m 

And Is this the correct way to do it?

Please guide.

and I am able to see current heap size in Probe but not able to see existing perm size so What is the default value for perm size?

Edit:

following parameters help any?

-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:30:44+00:00Added an answer on June 11, 2026 at 6:30 pm

    If you look in your installation’s bin directory you will see catalina.sh or .bat scripts. If you look in these you will see that they run a setenv.sh or setenv.bat script respectively, if it exists, to set environment variables. The relevant environment variables are described in the comments at the top of catalina.sh/bat. To use them create, for example, a file $CATALINA_HOME/bin/setenv.sh with contents

    export JAVA_OPTS="-server -Xmx512m"
    

    For Windows you will need, in setenv.bat, something like

    set JAVA_OPTS=-server -Xmx768m
    

    Original answer here

    After you run startup.bat, you can easily confirm the correct settings have been applied provided you have turned @echo on somewhere in your catatlina.bat file (a good place could be immediately after echo Using CLASSPATH: "%CLASSPATH%"):

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Tomcat 6.0.24 64 bit installed on two Windows Server 2008 boxes as
I have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm
I have followed this guide to install Solr in TomCat running on Windows Server
I am using Tomcat7 on Windows Server 2008. I have the following two lines
I have deployed a PHP application on my tomcat server(Tomcat 6.0).Previously I was using
i am using tomcat server and i have added a rhino engine to able
I have a crazy request about restarting tomcat server through my webapp. I was
My application runs SQL Server 2008 on Windows Server 2008 using Tomcat. I am
I have an Apache tomcat 7.0.5 Server on a Windows R2 Server and I've
I used to start tomcat from its bin folder with the startup.bat. By running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.