I have checked my code again and again and there is no leak due to uncleared reference to objects.
I ran some more pdf files and it seems that I get a memory error only for some specific pdf files. My conclusion:- We are just using too much memory(as John Hewson said). On Tue, Jun 28, 2016 at 3:16 AM, John Lussmyer <cou...@casadelgato.com> wrote: > On Mon Jun 27 14:34:03 PDT 2016 j...@jahewson.com said: > >Right, and if it was a leak then system.gc would not have fixed it. > > That is only SOMETIMES true. I've run into "memory leaks" where the leak > was uncleared references to objects. So the old objects just hung around > forever. > > > -- > > Bobcats and Cougars, oh my! http://john.casadelgato.com/Pets > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org >