Default for XX:MaxDirectMemorySize

From sun.misc.VM, it’s Runtime.getRuntime.maxMemory(), that’s what is configured with -Xmx. E. g. if you don’t configure -XX:MaxDirectMemorySize and do configure -Xmx5g, the “default” MaxDirectMemorySize will also be 5 Gb, and the total heap+direct memory usage of the app may grow up to 5 + 5 = 10 Gb.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)