Lines Matching defs:option

40  * or an SA tool. At this time the only option that uses the VM attach mechanism
41 * is the -dump option to get a heap dump of a running application. All other
55 // The -F (force) option is currently not passed through to SA
58 // Default option (if nothing provided)
69 // the chosen option (-heap, -dump:*, ... )
70 String option = null;
83 if (option != null) {
84 usage(); // option already specified
86 option = arg;
91 // if no option provided then use default.
92 if (option == null) {
93 option = DEFAULT_OPTION;
95 if (option.matches(SA_TOOL_OPTIONS)) {
100 // one or two parameters. For the built-in -dump option there is
110 // the parameter for the -dump option is a process-id.
120 // option.
128 runTool(option, params);
135 if (option.equals(HISTO_OPTION)) {
137 } else if (option.equals(LIVE_HISTO_OPTION)) {
139 } else if (option.startsWith(DUMP_OPTION_PREFIX)) {
140 dump(pid, option);
148 private static void runTool(String option, String args[]) throws Exception {
160 // -dump option needs to be handled in a special way
161 if (option.startsWith(DUMP_OPTION_PREFIX)) {
162 // first check that the option can be parsed
163 String fn = parseDumpOptions(option);
175 if (option.equals(tools[i][0])) {
248 // Parse the options to the -dump option. Valid options are format=b and
250 // provided, or invalid option.
260 String option = options[i];
262 if (option.equals("format=b")) {
264 } else if (option.equals("live")) {
269 if (option.startsWith("file=")) {
270 filename = option.substring(5);
275 return null; // option not recognized
305 System.err.println("The -F option can be used when the " +
347 System.out.println(" jmap [option] <pid>");
349 System.out.println(" jmap [option] <executable <core>");
351 System.out.println(" jmap [option] [server_id@]<remote server IP or hostname>");
354 System.out.println("where <option> is one of:");