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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:30:29+00:00 2026-06-10T02:30:29+00:00

I am developing a java web application and I am running it on a

  • 0

I am developing a java web application and I am running it on a Tomcat 7 server.
I am checking the size of the memory by calling:

System.out.println("Total memory is: " + Runtime.getRuntime().totalMemory());

What I am noticing that the size is changing, when the size of my data getting larger the Runtime.getRuntime().totalMemory() get larger as well.

1- Is the JVM trying to be larger than the size of the application data?

2- Is there any limit for the JVM size, other than the RAM memory size?

3- A third question not very related to the two above: what is the size of a running Tomcat 7 server application? Actually I have a small RAM in my server (Amazon cloud server, free tire, 600 MB RAM), And I am noticing that JAVA occupies about 52% of the memory without deploying any web application.

Excuse me for my very basic questions, I am not familiar with web servers and web applications.

  • 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-10T02:30:31+00:00Added an answer on June 10, 2026 at 2:30 am

    Is there any limit for the JVM size, other than the RAM memory size?

    Yes, the limit set by you.

    -Xmx for maximum heap size and -Xms for initial heap size

    The JVM runs virtually. If you allocate more memory than available on your machine it will be swapped out.

    what is the size of a running Tomcat 7 server application?

    Haven’t you answered that question yourself? It’s 52% of your memory. In general you can specify for your Tomcat the memory max. and min. size as well. After all it’s just another JVM.

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

Sidebar

Related Questions

I am developing a java web application using eclipse and tomcat server. Application consists
I am developing a java web Application and I use Tomcat connection pooling, here
I am developing a Spring (Java framework for server-side web-development)web application, which will respond
I'm developing a web application with Java and Maven build system and the web
I am developing a medium size Java Web Application with Struts as MVC framework
I have a java web application that I am developing in Netbeans (and running
I am developing a web application in which I am running Java in the
I am currently developing a Java web application that exposes a web service interface.
I am developing a Java web application in Netbeans IDE 7.1.1 . The IDE
I'm developing a Java Web Application that runs a series of financial calculations for

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.