You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2016/03/07 22:47:40 UTC

[jira] [Created] (UIMA-4826) UIMA-DUCC: Agent should verify results from ps cmd when detecting rogue processes

Jerry Cwiklik created UIMA-4826:
-----------------------------------

             Summary: UIMA-DUCC: Agent should verify results from ps cmd when detecting rogue processes
                 Key: UIMA-4826
                 URL: https://issues.apache.org/jira/browse/UIMA-4826
             Project: UIMA
          Issue Type: Bug
          Components: DUCC
            Reporter: Jerry Cwiklik
            Assignee: Jerry Cwiklik
             Fix For: 2.1.0-Ducc


When collecting user processes the Agent spawns ps command and gathers results. Under some circumstance the OS ps command may not provide correct results for user id. Sometimes it returns user id instead of user name. 
Modify the ps command to use 
pb = new ProcessBuilder("ps","-Ao","user:12,pid,ppid,uid,user:12,args", "--no-heading");
upon return check result of parse and compare user[0] to user[4]. Both should match. If different dont collect user data and do another ps command. 
As an extra check, make sure the user is not uid. If is all numeric, throw away results and try again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)