Created
August 30, 2011 13:40
-
-
Save fabrizioc1/1180905 to your computer and use it in GitHub Desktop.
Show max JVM memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ShowMemory | |
{ | |
public static void main(String args[]) | |
{ | |
long maxBytes = Runtime.getRuntime().maxMemory(); | |
System.out.println("Max memory: " + maxBytes / 1024 / 1024 + "M"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment