Skip to content

Commit

Permalink
#6: Document usage of -M command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
mblauth committed Aug 11, 2022
1 parent c6bb4cd commit 7efadb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ Currently supported are

## Usage
```
java -jar jdump.jar [-f<folder name>] [-A] [-H] [-J] [-d<duration in seconds>] [-N] [-T]
java -jar jdump.jar [-f<folder name>] [-A] [-H] [-J] [-d<duration in seconds>] [-M] [-N] [-T]
Options:
start without options to show UI, if not on a headless system
-f<name>: name of the target folder (will be created if non-existent; current working directoy, if empty)
-A: produce all types of dumps for all JVMs running locally
-H: produce heap dumps for all JVMs running locally
-J: produce JFRs for all JVMs running locally
-M: produce mallinfo() stats on Linux with glibc
-d<duration in seconds>: the duration selected for the JFRs, in seconds, default: 5
-N: product Native Memory Tracks for all JVMs running locally
-T: produce thread dumps for all JVMs running locally
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jdump/cli/CommandLineArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static Optional<String> getLastOf(List<String> argList, String parameter
}

private void showUsageInformation() {
System.out.println("Usage: jdump [-f<folder name>] [-A] [-H] [-J] [-d<duration in seconds>] [-N] [-M] [-T]");
System.out.println("Usage: jdump [-f<folder name>] [-A] [-H] [-J] [-d<duration in seconds>] [-M] [-N] [-T]");
System.out.println();
System.out.println("Options:");
System.out.println("start without options to show UI, if not on a headless system");
Expand Down

0 comments on commit 7efadb9

Please sign in to comment.