[antlr-interest] help with OutOfMemoryError

John D. Mitchell johnm-antlr at non.net
Thu Nov 13 08:07:20 PST 2003


>>>>> "Manju" == Manju Anand <manju_a_27 at yahoo.com> writes:
[...]

> I am trying to parse around 6000 java files placed under around 80
> directories. I used the standard java parser that comes with the ANTLR
> tool. It throws out of memory error after parsing around 1850 files. The
> input to the parser is one top level directory.

> Can you suggest as to where I can clean up some code to avoid this?  Or
> any other solution.

Are you sure that you're releasing resources after parsing each file or is
there some reason that you need to try to parse them all at once and keep
all of that stuff around?

Take care,
	John

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list