AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Moniter the Process(PID) in AIX 6.1

  • 1.  Moniter the Process(PID) in AIX 6.1

    Posted Wed September 08, 2010 12:54 AM

    Originally posted by: SystemAdmin


    Hi Developers,

    I am using the jbase application in my aix 6.1 blade server. My development team will the application for the testing and compilation like the below process. The each process will run 4 to 5 day to complet the task.

    The problem is this process will terminated abnormally sometimes later. So we need to monitor the each process and need to enable log and error report to finding the solution and the reason of the process termination. Kindly help to monitor the PID in AIX.

    r10tre1 348236 1 0 19:35:13 - 0:35 jsh -Jz -c EX EB.PHANTOM.PH INPUTTER AUTOMATE.REGRESSION
    r10rlen1 438396 1 0 07:52:04 - 0:15 jsh -Jz -c EX EB.PHANTOM.PH INPUTTER AUTOMATE.REGRESSION
    r10bfw1 544794 1 0 02:03:36 - 0:29 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.GET.NEW.MESSAGE
    r10bfw1 716836 1 0 02:03:53 - 0:28 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.FIND.MATCHED
    r10final 356654 1 0 Sep 07 - 0:53 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.FIND.MATCHED.s
    r10final 520574 1 0 Sep 07 - 1:27 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.GET.NEW.MESSAGE

    Thanks in Advance,
    Harikrishnan.L
    #AIX-Forum


  • 2.  Re: Moniter the Process(PID) in AIX 6.1

    Posted Wed September 08, 2010 03:33 AM

    Originally posted by: Kosala


    I believe you're looking for a way to find out what cause the application to quit, more than when it quits. If that's the case logs can be very little help, unless you can insert absurd amount of debug information to figure out the application flow.

    Or you can use truss, depending on when your application quits this might generate massive amount of logs, but at the end this can tell you how exactly your process died.... again, if truss reports a exit(0) was called, at what point in the application, it will not tell you.

    Generally truss is neat when an application is hanging / not responding or high CPU utilization scenarios.

    HTH
    Kosala
    #AIX-Forum


  • 3.  Re: Moniter the Process(PID) in AIX 6.1

    Posted Wed September 08, 2010 07:28 AM

    Originally posted by: SystemAdmin


    Hi Kosala,

    Thanks for your reply.

    Can you give me the pattern to run the truss command. Can we start the truss to the existing process if possible can you give the example for the below process.

    r10bfw1 716836 1 0 02:03:53 - 0:28 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.FIND.MATCHED.ITEMS
    r10final 356654 1 0 Sep 07 - 0:53 jsh -Jz -c EX EB.PHANTOM.PH SEAT.USER CM.FIND.MATCHED.ITEMS
    Thanks in Advance,
    Harikrishnana.L
    #AIX-Forum