Use minimum heap size equal to 2048MB or the max heap, whatever is
smaller. This reduces garbage collection when loading large networks,
improving performance.