public boolean startWithSoftMemLimit(final Endpoint addr, long softMemoryLimit) throws Exception {
        final RaftOptions opts = new RaftOptions();
        opts.setMaxLogsInMemoryBytes(softMemoryLimit);
        return this.start(addr, false, 300, false, null, opts);
    }
Test cluster for NodeTest
@author boyan (boyan@alibaba-inc.com)

2018-Apr-20 1:41:17 PM
jraft-core/src/test/java/com/alipay/sofa/jraft/core/TestCluster.java