aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ooxml/java/org/apache/poi/util/OOXMLLite.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/util/OOXMLLite.java b/src/ooxml/java/org/apache/poi/util/OOXMLLite.java
index d537a9d3a6..4e459c1f2d 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;