View Single Post
  #2 (permalink)  
Old 07-06-2007, 10:11 PM
Eric Eric is offline
Senior Member
 
Join Date: Jun 2007
Posts: 111
Eric is on a distinguished road
Try something like that:
Code:
System.out.println(Runtime.getRuntime().freeMemory()); long memoryBefore = Runtime.getRuntime().freeMemory(); PDDocument document = PDDocument.load("c:\\01.pdf"); long memoryAfter = Runtime.getRuntime().freeMemory(); System.out.println( (memoryBefore -long memoryAfter));
Reply With Quote