提交 4c1c187c 编写于 作者: wu-sheng's avatar wu-sheng

Fix memory pool judge.

上级 ed75d7d9
......@@ -39,13 +39,13 @@ public enum MemoryPoolProvider {
return new ParallelCollectorModule(beans);
} else if (name.indexOf("CMS") > -1) {
// CMS collector ( -XX:+UseConcMarkSweepGC )
return new CMSCollectorModule(beans);
return null;
} else if (name.indexOf("G1") > -1) {
// G1 collector ( -XX:+UseG1GC )
return null;
} else if (name.indexOf("Survivor Space") > -1) {
} else if (name.equals("Survivor Space")) {
// Serial collector ( -XX:+UseSerialGC )
return null;
return new SerialCollectorModule(beans);
} else {
// Unknown
return null;
......
......@@ -6,8 +6,8 @@ import java.util.List;
/**
* @author wusheng
*/
public class CMSCollectorModule extends MemoryPoolModule {
public CMSCollectorModule(List<MemoryPoolMXBean> beans) {
public class SerialCollectorModule extends MemoryPoolModule {
public SerialCollectorModule(List<MemoryPoolMXBean> beans) {
super(beans);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册