How to close the current RMA file without quit MEGAN in command line


I am using Megan command line, how to close the current RMA files without quite MEGAN in command line.

As if we dont close RMA files and run in batch, the computer will become super slow and jumps out the message: java.lang.outofmemoryerror:java heap space.

How to fix it?

You can use
to close a document in command line mode, and then use
open file=…;
to open another one.

If you are getting an out of memory exception, then please increase the amount of memory used by MEGAN by editing the file /megan.vmoptions

16G would be comfortable, but the more the better, as the program will run faster with more memory…