add memoryCachePercent method
fix a bug
use Runtime.getRuntime().maxMemory() instead of memoryclass
remove ununsed import
fix a bug