Prevent JVM from swapping
import com.sun.jna.Native; public final class LIBC {
public static final int MCL_CURRENT = 1; public static final int MCL_FUTURE = 2; static { Native.register("c"); } public static native int mlockall(int flags); public static native int munlockall(); private LIBC() {} }
LIBC.mlockall(LIBC.MCL_CURRENT | LIBC.MCL_FUTURE);
On Solaris box you can do: -XX:+UseISM
0 komentarze:
Prześlij komentarz