diff --git a/src/ooxml/java/org/apache/poi/util/OOXMLLite.java b/src/ooxml/java/org/apache/poi/util/OOXMLLite.java index d537a9d3a..4e459c1f2 100644 --- a/src/ooxml/java/org/apache/poi/util/OOXMLLite.java +++ b/src/ooxml/java/org/apache/poi/util/OOXMLLite.java @@ -76,6 +76,13 @@ public final class OOXMLLite { } public static void main(String[] args) throws IOException, ClassNotFoundException { + System.out.println("Free memory (bytes): " + + Runtime.getRuntime().freeMemory()); + long maxMemory = Runtime.getRuntime().maxMemory(); + System.out.println("Maximum memory (bytes): " + + (maxMemory == Long.MAX_VALUE ? "no limit" : maxMemory)); + System.out.println("Total memory (bytes): " + + Runtime.getRuntime().totalMemory()); String dest = null, test = null, ooxml = null;