Hi,
system administrator told me to check out why is there so many db2 processes on DB2 Enterprice v8.2 FP11 Linux box.
Most of them are like this:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
db2inst1 26345 0.0 1.2 151076 25712 ? S Sep16 0:31 db2agent (idle) 0
I have executed the following commands.
1. To check out number of all processes on Linux box:
Result:471
2. To check out number of processes started by user db2inst1 (db2 instance owner):
Code:
ps aux | awk '$1=="db2inst1"' | wc -l
Result:396
3. To check out db2agent commands:
Code:
ps aux | awk '$1=="db2inst1" && $11=="db2agent"' | wc -l
Result:369
4. To check out idle db2agent commands:
Code:
ps aux | awk '$1=="db2inst1" && $11=="db2agent" && $12=="(idle)"' | wc -l
Result:314
I would like to know what is your number of processes on Linux/Unix box? To get an info if "my" number of processes are really so big as system admin told me.
Thanks,
Grofaty