• Post Reply Bookmark Topic Watch Topic
  • New Topic

How low can you go?  RSS feed

 
Belinda Lawson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 15862
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!