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 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

Ask A Question

Stats

  • Questions 220k
  • Answers 220k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Another option is to write a hook that notifies the… May 13, 2026 at 12:00 am
  • Editorial Team
    Editorial Team added an answer First, you can request the first hundred bytes of an… May 13, 2026 at 12:00 am
  • Editorial Team
    Editorial Team added an answer NSURL objects are immutable so there is no way to… May 13, 2026 at 12:00 am

Related Questions

I have a Java program that loads thirdparty class files (classes I did not
Using Scala's command line REPL: def foo(x: Int): Unit = {} def foo(x: String):
Is it possible to specify which X display the JVM is to launch it's
Recently I converted a Swing application to Webstart. The process was pretty straightforward, but

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.