This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How low can you go? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How low can you go?" Watch "How low can you go?" New topic

How low can you go?

Belinda Lawson

Joined: Feb 10, 2007
Posts: 10
One can cap the java heap using -Xmx, but that's not the total rss footprint seen by the operating system with tools like top.

So i ask you:
In theory, what is the smallest memory footprint possible for a java program?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14190

The JVM needs some memory to do its work, and how much it uses is unspecified (and differs from one JVM version to the next). It depends on the implementation of the JVM. So your question can't be answered with a simple number.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
GeeCON Prague 2014
subject: How low can you go?