I am trying to summarise/annotate 100,000 trees using the program
TreeAnnotator v1.4. The application fails to launch with the following
error " java.lang.OutofMemoryError: Java heap space". I have generated
the trees in a single run using BEAST v1.4.
Is there a way I can increase the memory for the program on my
computer or is it a bug in the program.
I tried running this on a Windows Intel Xeon 2.9 Ghz 3MB and a Power
Mac G5 Quad 2.5 Ghz 6GB RAM, but I get the same error.
I would be grateful for any help provided.
Thanking you,
Vijay
Is there a particular reason you want to summarize such a large number
of trees? I generally find that 10,000 trees is more than sufficient
for most purposes. You may want to just adjust the logging frequency
of your MCMC chain so that you only write 10,000 trees instead 100,000
trees.
However, if you really want to summarize that many tree then you can
try to increase the amount of memory available to Java. You will have
to run the program via the command line using the following command:
java -Xmx1024m -Xms1024m -classpath beast.jar dr.app.tools.TreeAnnotator
The -Xmx and -Xms commands determine the maximum and starting amount
of memory that java is provided.
You will be able to find the beast.jar (on a Mac) by right-clicking
the TreeAnnotator v.1.4 and choosing Show Package Contents then
browsing to the Contents/Resources/Java/beast.jar
I was in a hurry to look at the results then, so I also figured I can
resample fewer trees using LogCombiner without having to start another
run in BEAST.
Vijay
On Nov 16, 6:15 am, "Alexei Drummond" <alexei.drumm...@gmail.com>
wrote: