Skip to content

Instantly share code, notes, and snippets.

@robertklep
Created June 13, 2013 08:43
Show Gist options
  • Save robertklep/5772190 to your computer and use it in GitHub Desktop.
Save robertklep/5772190 to your computer and use it in GitHub Desktop.
public class Test {
public static void main(String[] args) {
long heapMaxSize = Runtime.getRuntime().maxMemory();
System.out.println("Max: " + heapMaxSize);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment