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

  • Home
  • SEARCH
  • 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 217885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:41:57+00:00 2026-05-11T18:41:57+00:00

Why does the jvm require around 10 MB of memory for a simple hello

  • 0

Why does the jvm require around 10 MB of memory for a simple hello world but the clr doesn’t. What is the trade-off here, i.e. what does the jvm gain by doing this?

Let me clarify a bit because I’m not conveying the question that is in my head. There is clearly an architectural difference between the jvm and clr runtimes. The jvm has a significantly higher memory footprint than the clr. I’m assuming there is some benefit to this overhead otherwise why would it exist. I’m asking what the trade-offs are in these two designs. What benefit does the jvm gain from it’s memory overhead?

  • 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-11T18:41:57+00:00Added an answer on May 11, 2026 at 6:41 pm

    I guess one reason is that Java has to do everything itself (another aspect of platform independence). For instance, Swing draws it’s own components from scratch, it doesn’t rely on the OS to draw them. That’s all got to take place in memory. Lots of stuff that windows may do, but linux does not (or does differently) has to be fully contained in Java so that it works the same on both.

    Java also always insists that it’s entire library is “Linked” and available. Since it doesn’t use DLLs (they wouldn’t be available on every platform), everything has to be loaded and tracked by java.

    Java even does a lot of it’s own floating point since the FPUs often give different results which has been deemed unacceptable.

    So if you think about all the stuff C# can delegate to the OS it’s tied to vs all the stuff Java has to do for the OS to compensate for others, the difference should be expected.

    I’ve run java apps on 2 embedded platforms now. One was a spectrum analyzer where it actually drew the traces, the other is set-top cable boxes.

    In both cases, this minimum memory footprint hasn’t been an issue–there HAVE been Java specific issues, that just hasn’t been one. The number of objects instantiated and Swing painting speed were bigger issues in these cases.

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

Sidebar

Related Questions

How does the JVM handle a primitive long, which is 64bits, on a 32bit
Does someone know if it is possible to modify the JVM settings at runtime
How does JVM type erasure help Clojure? Can Clojure exist without it? What would
I've kind of asked this question before - What does JVM flag CMSClassUnloadingEnabled actually
Does Google force employees who have offers from Facebook to leave immediately?
Does anyone remember the XMP tag? What was it used for and why was
Does the Java language have delegate features, similar to how C# has support for
Does anybody know any good resources for learning how to program CIL with in-depth
Does anyone know how to get IntelliSense to work reliably when working in C/C++
Does anyone have any recommendations of tools that can be of assistance with moving

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.