diff --git a/src/jdk/src/share/classes/sun/tools/jmap/JMap.java b/src/jdk/src/share/classes/sun/tools/jmap/JMap.java --- a/src/jdk/src/share/classes/sun/tools/jmap/JMap.java +++ b/src/jdk/src/share/classes/sun/tools/jmap/JMap.java @@ -306,8 +313,10 @@ x.printStackTrace(); } if ((x instanceof AttachNotSupportedException) && haveSA()) { - System.err.println("The -F option can be used when the " + - "target process is not responding"); + System.err.println("Try running as target process user " + + "(e.g. sudo -u jmap [option])"); + System.err.println("If the target process is not responding, " + + "try to run on the core dump or use -F option"); } System.exit(1); return null; // keep compiler happy