提交 89437204 编写于 作者: S swamyv

6653883: jmap with no option should print mmap instead of heap information.

Summary: Changed the default option of jmap to print mmap.
Reviewed-by: jjh
上级 511680fa
...@@ -56,7 +56,7 @@ public class JMap { ...@@ -56,7 +56,7 @@ public class JMap {
private static String FORCE_SA_OPTION = "-F"; private static String FORCE_SA_OPTION = "-F";
// Default option (if nothing provided) // Default option (if nothing provided)
private static String DEFAULT_OPTION = "-heap"; private static String DEFAULT_OPTION = "-pmap";
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
if (args.length == 0) { if (args.length == 0) {
...@@ -147,6 +147,7 @@ public class JMap { ...@@ -147,6 +147,7 @@ public class JMap {
// Invoke SA tool with the given arguments // Invoke SA tool with the given arguments
private static void runTool(String option, String args[]) throws Exception { private static void runTool(String option, String args[]) throws Exception {
String[][] tools = { String[][] tools = {
{ "-pmap", "sun.jvm.hotspot.tools.PMap" },
{ "-heap", "sun.jvm.hotspot.tools.HeapSummary" }, { "-heap", "sun.jvm.hotspot.tools.HeapSummary" },
{ "-heap:format=b", "sun.jvm.hotspot.tools.HeapDumper" }, { "-heap:format=b", "sun.jvm.hotspot.tools.HeapDumper" },
{ "-histo", "sun.jvm.hotspot.tools.ObjectHistogram" }, { "-histo", "sun.jvm.hotspot.tools.ObjectHistogram" },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册