Ad Widget

Collapse

proc.num problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nima0102
    Senior Member
    • May 2010
    • 106

    #1

    proc.num problem

    Hi
    In order to check one process on system I have added proc.num(name_process).in "top" output I see one process, but returned value by proc.num is 4!!So I can not set correct
    I do not know about this difference.
    Thanks for any help or guidance
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi nima

    do you know, how top works ?

    It just shows the n (the real number depends on the number of lines
    in your terminal window and the configuration of top) processes
    sorted by certain criteria like CPU usage, memory usage, etc.

    So, if a process uses no CPU or not much memory, other processes
    using more CPU or memory, etc. will show up but not the process you
    are looking for, mostly because of the limited number of lines on your screen.

    A much better tool to verify the proc.num item is the ps command.
    See the manual (man ps) for details, e.g. ps -ef ¦ grep "processname"
    might be a good start. The syntax of the ps command varies in the different
    UNIX OS / Linux so the manual page is the best source of information.

    HTH,

    Norbert.
    Last edited by NOB; 25-08-2010, 10:53.

    Comment

    • nima0102
      Senior Member
      • May 2010
      • 106

      #3
      Thanks a lot for your attention
      I had mistyped in my previous topic I mean "ps" not "top" command.
      After some checking I found out in question process has few thread!!So proc.num get all threads.
      But anyhow your explanation is very god.

      Comment

      Working...