Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

41 views
Skip to first unread message

Alejandro Risco Mendoza

unread,
May 30, 2024, 3:31:39 PMMay 30
to beast-users
How to increase JAVA memory capacity? I am using BEAST v1. 10.4 on a window 11 computer, 128 GB (128 GB usable), 12th Gen Intel(R) Core(TM) i7-12700K 3.60 GHz.
I did an analysis of mcmc 200 million generations and the files they generate are approx. 30 GB, when trying to obtain the mcc tree with treAnnotator, the message described in the image appears.
somebody could help me


WhatsApp Image 2024-05-30 at 14.15.38.jpeg

Pedro Augusto Freire de Sá Pontes

unread,
Jun 3, 2024, 2:12:09 PMJun 3
to beast-users
Hi Alejandro, 

You need to go where the .cmd file of the TreeAnnotator is located, open the file with notepad and change the code. In my case, my "treeannotator.cmd" file is located on "C:\Users\BEAST v1.10.4\bin".
Change the last code line for this:

java -Xms6144M -Xmx6144M -Djava.library.path="%BEAST_LIB%" -cp "%BEAST_LIB%/beast.jar" dr.app.tools.TreeAnnotator %*

save and then run the file.

Enviado via UCSMail.

Alexandra K Kahn

unread,
Jun 3, 2024, 5:58:58 PMJun 3
to beast-users
Alternatively you can use logcombiner to increase the sampling internal of the file so that you only use ~10k trees in treeannotator. If you sample every 20k instead of what it looks like you're at, maybe every 3k, you shouldn't need so much memory.
Reply all
Reply to author
Forward
0 new messages