We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<()
1 parent 07a0429 commit 461e77fCopy full SHA for 461e77f
show-busy-java-threads
@@ -311,8 +311,7 @@ __top_threadId_cpu() {
311
}' | sort -k2,2nr
312
}
313
314
-# output format is same as function findBusyJavaThreadsByPs
315
-findBusyJavaThreadsByTop() {
+__complete_pid_user_by_ps() {
316
# ps output field: pid, thread id(lwp), user
317
local -r ps_out="$(ps $ps_process_select_options -wwLo pid,lwp,user --no-headers)"
318
@@ -333,7 +332,12 @@ findBusyJavaThreadsByTop() {
333
332
(( idx++ ))
334
echo "$output_fields"
335
fi
336
- done < <( __top_threadId_cpu )
+ done
+}
337
+
338
+# output format is same as function findBusyJavaThreadsByPs
339
+findBusyJavaThreadsByTop() {
340
+ __top_threadId_cpu | __complete_pid_user_by_ps
341
342
343
printStackOfThreads() {
0 commit comments