You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2017/11/03 03:47:01 UTC
[jira] [Commented] (YETUS-577) Utility to kill processes
[ https://issues.apache.org/jira/browse/YETUS-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237053#comment-16237053 ]
Allen Wittenauer commented on YETUS-577:
----------------------------------------
Here's a code snippet to use as inspiration:
{code}
ps -o pid,etime,args -u jenkins | grep -E surefirebooter | \
awk '{
if ( $2~/-/) {
etime=$2
sub(/-..:..:..$/,"",etime)
sub("^0", "", etime)
if (etime > 1) {
print "surefireboot running for " etime " days " $1
}
}
}'
{code}
This should (in a cross platform way) find surefirebooter processes that have been running for longer than 2 days.
> Utility to kill processes
> -------------------------
>
> Key: YETUS-577
> URL: https://issues.apache.org/jira/browse/YETUS-577
> Project: Yetus
> Issue Type: New Feature
> Components: Test Patch
> Reporter: Allen Wittenauer
> Priority: Major
>
> As discussed in YETUS-570, it would be useful to have a version of the reaper that could be run independently of test-patch
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)