I am writing a command line script to pass garbage collection flags to ImageJ and then run my macro (which is memory intensive). Two flags I want to use (-XX:+AggressiveHeap and -XX:+UseParallelOldGC) result in the error code from JVM Launcher “Could not create the Java Virtual Machine. A fatal exception has occurred. Program will exit.” I have also been running the batch file as an administrator.
I am running FIJI 1.53a with Java 1.8.0_172 [64-bit] on a Win10 system with 16GB RAM.
ImageJ-win64.exe --ij2 -server -d64 -Xms12g -Xmx12g -XX:+UseCompressedOops -XX:+UseParallelOldGC -XX:+AggressiveHeap -XX:+PrintGCDetails -XX:+PrintGCTimeStamps – -macro macro_name.ijm