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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:55:21+00:00 2026-05-26T17:55:21+00:00

I am observing a mismatch in Tomcat RAM consumption between what the OS says

  • 0

I am observing a mismatch in Tomcat RAM consumption between what the OS says and what jVisualVM says.

From htop, the Tomcat JVM is has 993 MB of resident memory

From jVisualVM, the Tomcat JVM is using

  • Heap Max: 1,070,399,488 B
  • Heap Size: 298.438.656 B
  • Heap Used: variable, between 170MB and and 270MB
  • PermGen Max: 268,435,456 B
  • PermGen Size: 248,872,960 B
  • PermGen Used: slightly variable, around 150MB

From my understanding the OS memory consumption should be Heap Size + PermGen Size ~= 522 MB. But that’s 471 MB less than what I’m observing.

Anyone got an idea what am I missing here?

PS: I know that my max heap is much higher than what is used, but I’m assuming that should have no effect if the JVM does not use it (i.e. Heap Size is lower).

Thanks!
Marc

  • 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-26T17:55:22+00:00Added an answer on May 26, 2026 at 5:55 pm

    From my understanding the OS memory consumption should be Heap Size + PermGen Size ~= 522 MB. But that’s 471 MB less than what I’m observing. Anyone got an idea what am I missing here?

    If I understand the question what you are seeing is a combination of memory fragmentation and JVM memory overhead in other areas. We often see 2 times the memory usage for our production programs than we would expect to see from our memory settings.

    Memory fragmentation can mean that although the JVM thinks that the OS has given it some number of bytes, there is a certain addition number of bytes that had to be given because of memory subsystem optimizations.

    In terms of JVM overhead, there are a number of other storage areas that are not included in the standard memory configs. Here’s a good discussion about this. To quote:

    The following
    are examples of things that are not part of the garbage collected heap
    and yet are part of the memory required by the process:

    • Code to implement the JVM
    • The C manual heap for data structures implementing the JVM
    • Stacks for all of the threads in the system (app + JVM)
    • Cached Java bytecode (for libraries and the application)
    • JITed machine code (for libraries and the application)
    • Static variables of all loaded classes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From observing source code for various Android applications (not written by me), I noticed
I am observing a different output from a C++ compiled binary file, that calls
I'm observing UINavigationControllerWillShowViewControllerNotification on UINavigationController to keep track when the current view controller has
I'm observing NSWorkspaceDidDeactivateApplicationNotification notification to get the application that has just lost focus. I'm
In the Key-Value Observing Programming Guide , the section Registering for Key-Value Observing says
Lets say my application contains some algoritms I whant to protect from observing and
The page contains two buttons, from twitter and from facebook. What I'm observing in
I'm using this simple code and observing monotonically increasing memory usage. I'm using this
I've been observing a certain page built off Ext 3 has been responsible for
’m observing a strange behavior from my application which I hope you can explain

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.