[Biojava-dev] insufficient memory

Dr D.S-M. Huen smh1008 at cam.ac.uk
Thu Feb 3 03:03:54 EST 2005


On Feb 3 2005, badr al-daihani wrote:

> 
> hi folks
> 
> I use BlastParser to parse a big file (hundreds of mega) but I get 
> insufficient memory error
> any idea to overcome this problem.
> 
The way your code is structured, you are accumulating all the results 
in-memory before printing them at the end which is why you run out of 
memory eventually.

You can also prefilter your results as you go - this will solve your 
problem for arbitrary input size but it will also require to implement the 
required listener as your filter.

Regards,
David Huen


More information about the biojava-dev mailing list