通过反射获取java nio Direct Memory 的最大值和已使用值

(ps:jdk1.7及之后可通过MBean获取这两个值)

原文地址:https://www.cnblogs.com/LionheartCGJ/p/6782714.html