@@ -111,7 +111,8 @@ show-busy-java-threads -l
111111# 帮助信息
112112$ show-busy-java-threads -h
113113Usage: show-busy-java-threads [OPTION]... [delay [count]]
114- Find out the highest cpu consumed threads of java, and print the stack of these threads.
114+ Find out the highest cpu consumed threads of java processes,
115+ and print the stack of these threads.
115116
116117Example:
117118 show-busy-java-threads # show busy java threads info
@@ -120,30 +121,39 @@ Example:
120121
121122Output control:
122123 -p , --pid < java pid> find out the highest cpu consumed threads from
123- the specified java process, default from all java process.
124+ the specified java process.
125+ default from all java process.
124126 -c , --count < num> set the thread count to show, default is 5.
125127 -a , --append-file < file> specifies the file to append output as log.
126- -S , --store-dir < dir> specifies the directory for storing intermediate files, and keep files.
127- default store intermediate files at tmp dir, and auto remove after run.
128- use this option to keep files so as to review jstack/top/ps output later.
128+ -S , --store-dir < dir> specifies the directory for storing
129+ the intermediate files, and keep files.
130+ default store intermediate files at tmp dir,
131+ and auto remove after run. use this option to keep
132+ files so as to review jstack/top/ps output later.
129133 delay the delay between updates in seconds.
130134 count the number of updates.
131- delay/count arguments imitates the style of vmstat command.
135+ delay/count arguments imitates the style of
136+ vmstat command.
132137
133138jstack control:
134139 -s , --jstack-path < path> specifies the path of jstack command.
135- -F, --force set jstack to force a thread dump.
136- use when jstack < pid> does not respond (process is hung).
137- -m, --mix-native-frames set jstack to print both java and native frames (mixed mode).
138- -l, --lock-info set jstack with long listing. Prints additional information about locks.
140+ -F, --force set jstack to force a thread dump. use when jstack
141+ does not respond (process is hung).
142+ -m, --mix-native-frames set jstack to print both java and native frames
143+ (mixed mode).
144+ -l, --lock-info set jstack with long listing.
145+ prints additional information about locks.
139146
140147CPU usage calculation control:
141- -d , --top-delay specifies the delay between top samples, default is 0.5 (second).
142- get thread cpu percentage during this delay interval.
148+ -d , --top-delay specifies the delay between top samples.
149+ default is 0.5 (second). get thread cpu percentage
150+ during this delay interval.
143151 more info see top -d option. eg: -d 1 (1 second).
144- -P, --use-ps use ps command to find busy thread(cpu usage) instead of top command,
145- default use top command, because cpu usage of ps command is expressed as
146- the percentage of time spent running during the * entire lifetime*
152+ -P, --use-ps use ps command to find busy thread(cpu usage)
153+ instead of top command.
154+ default use top command, because cpu usage of
155+ ps command is expressed as the percentage of
156+ time spent running during the * entire lifetime*
147157 of a process, this is not ideal in general.
148158
149159Miscellaneous:
@@ -412,22 +422,25 @@ find-in-jars 'log4j\.properties' -s ' ' | awk '{print $2}'
412422# 帮助信息
413423$ find-in-jars -h
414424Usage: find-in-jars [OPTION]... PATTERN
415- Find file in the jar files under specified directory(recursive, include subdirectory).
425+ Find files in the jar files under specified directory,
426+ search jar files recursively(include subdirectory).
416427The pattern default is * extended* regex.
417428
418429Example:
419430 find-in-jars ' log4j\.properties'
420- find-in-jars ' ^log4j\.(properties|xml)$' # search file log4j.properties/log4j.xml at zip root
431+ # search file log4j.properties/log4j.xml at zip root
432+ find-in-jars ' ^log4j\.(properties|xml)$'
421433 find-in-jars ' log4j\.properties$' -d /path/to/find/directory
422434 find-in-jars ' \.properties$' -d /path/to/find/dir1 -d path/to/find/dir2
423435 find-in-jars ' Service\.class$' -e jar -e zip
424436 find-in-jars ' Mon[^$/]*Service\.class$' -s ' <-> '
425437
426438Find control:
427- -d, --dir the directory that find jar files, default is current directory.
428- this option can specify multiply times to find in multiply directories.
429- -e, --extension set find file extension, default is jar.
430- this option can specify multiply times to find in multiply extension.
439+ -d, --dir the directory that find jar files.
440+ default is current directory. this option can specify
441+ multiply times to find in multiply directories.
442+ -e, --extension set find file extension, default is jar. this option
443+ can specify multiply times to find multiply extension.
431444 -E, --extended-regexp PATTERN is an extended regular expression (* default* )
432445 -F, --fixed-strings PATTERN is a set of newline-separated strings
433446 -G, --basic-regexp PATTERN is a basic regular expression
@@ -436,7 +449,8 @@ Find control:
436449
437450Output control:
438451 -a, --absolute-path always print absolute path of jar file
439- -s, --seperator seperator for jar file and file entry, default is ` ! ' .
452+ -s, --seperator specify the seperator between jar file and zip entry.
453+ default is ` ! ' .
440454
441455Miscellaneous:
442456 -h, --help display this help and exit
0 commit comments