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 4585696
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:31:57+00:00 2026-05-21T21:31:57+00:00

I am working on the apache tomcat server in unix enviroment. I want to

  • 0

I am working on the apache tomcat server in unix enviroment. I want to increase the heap size of my application and so I am setting it in the catalina.sh file . This is how I am doing it …

export CATALINA_OPTS=”-Xms1024m -Xmx1024m”
echo $CATALINA_OPTS

When i call the startup.sh it calls catalina.sh and sets the variable CATALINA_OPTS to 1024 as indicated by the echo statement in the script. But if I do echo $CATALINA_OPTS at the command prompt it gives blank. Is this expected behavior. How can I be sure that the correct heap value has indeed been picked up ?

  • 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-05-21T21:31:57+00:00Added an answer on May 21, 2026 at 9:31 pm

    Yes, $CATALINA_OPTS will not be available outside of the script thats executed by the shell. In order to get the correct heap size, you need a profiler, or use jmap to get heap info – here 39196 is the PID of the tomcat process on my machine.

    mpandit-mbp:~ mpandit$ jmap -heap 39196
    Attaching to process ID 39196, please wait...
    Debugger attached successfully.
    Server compiler detected.
    JVM version is 19.1-b02-334
    
    using parallel threads in the new generation.
    using thread-local object allocation.
    Concurrent Mark-Sweep GC
    
    Heap Configuration:
       MinHeapFreeRatio = 40
       MaxHeapFreeRatio = 70
       MaxHeapSize      = 132120576 (126.0MB)
       NewSize          = 21757952 (20.75MB)
       MaxNewSize       = 87228416 (83.1875MB)
       OldSize          = 65404928 (62.375MB)
       NewRatio         = 7
       SurvivorRatio    = 8
       PermSize         = 21757952 (20.75MB)
       MaxPermSize      = 85983232 (82.0MB)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a web application for Apache Tomcat. I'm using a class called
I have installed a new tomcat server (5.5) and I get this exception: org.apache.jasper.JasperException:
I have an Apache HTTPD working as a reverse proxy, and Tomcat(6.0.35) server(s), what
I am running this code on the Tomcat server as a Java application. if(levelMap.get(bssid_a)
Can anyone guide me how to get Servlets working in Apache Tomcat server? I
I am working on a file sharing web application. This application is being developed
I'm working on some Python code modeled on Apache's MPM prefork server. I am
We have an Apache tomcat server that runs a current web service. We were
I have a apache tomcat server integrated with mod_jk. I have created .htaccess files
I'm running Railo 3 in Tomcat 6.0.32. The tomcat server is fronted by Apache

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.