You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-15Lines changed: 9 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ USAGE:
120
120
Print information about the Java Virtual Machine running a Java application
121
121
122
122
jcmd (supports --args)
123
-
Run a JCMD command on a running Java application via --args
123
+
Run a JCMD command on a running Java application via --args, downloads and deletes all files that are created in the current folder, use '--no-download' to prevent this
124
124
125
125
jfr-start
126
126
Start a Java Flight Recorder default recording on a running Java application
@@ -150,7 +150,7 @@ USAGE:
150
150
Print vital statistics about the Java Virtual Machine running a Java application
151
151
152
152
asprof (recent SapMachine only, supports --args)
153
-
Run async-profiler commands passed to asprof via --args
153
+
Run async-profiler commands passed to asprof via --args, copies files in the current folder. Don't use in combination with asprof-* commands. Downloads and deletes all files that are created in the current folder, use '--no-download' to prevent this
154
154
155
155
asprof-start-cpu (recent SapMachine only)
156
156
Start an async-profiler CPU-time profile recording on a running Java application
@@ -167,23 +167,17 @@ USAGE:
167
167
asprof-stop (recent SapMachine only)
168
168
Stop an async-profiler profile recording on a running Java application
169
169
170
-
asprof-dump (recent SapMachine only)
171
-
Dump an async-profiler profile recording without stopping it
172
-
173
170
asprof-status (recent SapMachine only)
174
171
Get the status of async-profiler on a running Java application
175
172
176
173
OPTIONS:
177
-
--app-instance-index -i [index], select to which instance of the app to connect
178
-
--args -a, Miscellaneous arguments to pass to the command (if supported)
179
-
in the container, be aware to end it with a space if it is a simple option
180
-
--container-dir -cd, the directory path in the container that the heap dump/JFR/... file
181
-
will be saved to
182
-
--dry-run -n, just output to command line what would be executed
183
-
--keep -k, keep the heap dump in the container; by default the heap dump/JFR/...
184
-
will be deleted from the container's filesystem after been downloaded
185
-
--local-dir -ld, the local directory path that the dump/JFR/... file will be saved to
186
-
defaults to the current directory
174
+
-dry-run -n, just output to command line what would be executed
175
+
-keep -k, keep the heap dump in the container; by default the heap dump/JFR/... will be deleted from the container's filesystem after been downloaded
176
+
-local-dir -ld, the local directory path that the dump/JFR/... file will be saved to, defaults to the current directory
177
+
-no-download -nd, don't download the heap dump/JFR/... file to local, only keep it in the container, implies '--keep'
178
+
-app-instance-index -i [index], select to which instance of the app to connect
179
+
-args -a, Miscellaneous arguments to pass to the command (if supported) in the container, be aware to end it with a space if it is a simple option
180
+
-container-dir -cd, the directory path in the container that the heap dump/JFR/... file will be saved to
187
181
</pre>
188
182
189
183
The heap dumps and profiles will be copied to a local file if `-local-dir` is specified as a full folder path. Without providing `-local-dir` the heap dump will only be created in the container and not transferred.
Copy file name to clipboardExpand all lines: cf_cli_java_plugin.go
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ fi`,
181
181
},
182
182
{
183
183
Name: "jcmd",
184
-
Description: "Run a JCMD command on a running Java application via --args",
184
+
Description: "Run a JCMD command on a running Java application via --args, downloads and deletes all files that are created in the current folder, use '--no-download' to prevent this",
185
185
RequiredTools: []string{"jcmd"},
186
186
GenerateFiles: false,
187
187
SshCommand: `$JCMD_COMMAND $(pidof java) $$ARGS`,
@@ -259,13 +259,13 @@ fi`,
259
259
},
260
260
{
261
261
Name: "asprof",
262
-
Description: "Run async-profiler commands passed to asprof via --args",
262
+
Description: "Run async-profiler commands passed to asprof via --args, copies files in the current folder. Don't use in combination with asprof-* commands. Downloads and deletes all files that are created in the current folder, use '--no-download' to prevent this",
commandFlags.NewIntFlagWithDefault("app-instance-index", "i", "application `instance` to connect to", -1)
367
367
commandFlags.NewBoolFlag("keep", "k", "whether to `keep` the heap-dump/JFR/... files on the container of the application instance after having downloaded it locally")
368
+
commandFlags.NewBoolFlag("no-download", "nd", "do not download the heap-dump/JFR/... file to the local machine")
368
369
commandFlags.NewBoolFlag("dry-run", "n", "triggers the `dry-run` mode to show only the cf-ssh command that would have been executed")
369
370
commandFlags.NewStringFlag("container-dir", "cd", "specify the folder path where the dump/JFR/... file should be stored in the container")
370
371
commandFlags.NewStringFlag("local-dir", "ld", "specify the folder where the dump/JFR/... file will be downloaded to, dump file wil not be copied to local if this parameter was not set")
"app-instance-index": "-i [index], select to which instance of the app to connect",
631
+
"no-download": "-nd, don't download the heap dump/JFR/... file to local, only keep it in the container, implies '--keep'",
629
632
"keep": "-k, keep the heap dump in the container; by default the heap dump/JFR/... will be deleted from the container's filesystem after been downloaded",
630
633
"dry-run": "-n, just output to command line what would be executed",
631
634
"container-dir": "-cd, the directory path in the container that the heap dump/JFR/... file will be saved to",
0 commit comments