This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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

Win a copy of Building Microservices this week in the Design forum!
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: 14961

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How low can you go?
It's not a secret anymore!