Subject: Consumed memory after closing PDDocument


Oh! ... That's absolutely right. I am now getting right results:

1. Heap before Loading PDF Doc:
Current heap size: 265289728
Free heap size: 212918368
--------------------------------
2. Heap after loading the PDF Doc:
Current heap size: 908066816
Free heap size: 342499608
--------------------------------
3. Heap after closing the PDF Doc:
Current heap size: 908066816
Free heap size: 849820016
--------------------------------
Best regards,
Hesham
-----Original Message-----

Memory is only freed after a GC run. You Need to invoke that explicitly.

---------------------------------------------------------------------

---------------------------------------------------------------------