File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 15080

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
I agree. Here's the link:
subject: How low can you go?
It's not a secret anymore!