I ssh into a server in my office, its running Lucid Lynx 10.04. I dont know why its running so many instances of java.
Thanks
This is the the console barf of $ top
Tasks: 134 total, 2 running, 132 sleeping, 0 stopped, 0 zombie
Cpu(s): 98.2%us, 1.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1926032k total, 1895432k used, 30600k free, 19500k buffers
Swap: 5644280k total, 192576k used, 5451704k free, 268796k cached
PID USER NI VIRT RES SHR S %CPU %MEM TIME+ PPID GROUP COMMAND
27132 padmin 0 1149m 405m 10m S 58 21.6 429:33.50 1 padmin java
7169 padmin 0 1134m 380m 10m S 57 20.2 37:02.32 1 padmin java
1893 padmin 0 1142m 381m 10m S 51 20.3 170:03.34 1 padmin java
3515 padmin 0 1105m 241m 916 S 20 12.8 4932:54 1 padmin java
16946 root 0 41784 7768 1084 S 1 0.4 0:00.13 6935 root munin-node
17301 nobody 0 17368 2744 1696 R 1 0.1 0:00.03 16946 munin memory
16930 root 0 41784 7768 1084 S 1 0.4 0:00.13 6935 root munin-node
54 root 0 0 0 0 S 0 0.0 22:38.89 2 root kondemand/0
926 mysql 0 237m 2484 664 S 0 0.1 14:30.06 1 mysql mysqld
1692 root 0 1017m 51m 27m S 0 2.7 60:31.46 1 root mongod
3284 padmin 0 76400 1032 232 S 0 0.1 0:30.69 1 padmin memcached
16012 padmin 0 19224 1424 1064 R 0 0.1 0:00.82 12115 padmin top
1 root 0 23904 1316 644 S 0 0.1 0:00.74 0 root init
2 root 0 0 0 0 S 0 0.0 0:00.01 0 root kthreadd
3 root 0 0 0 0 S 0 0.0 0:00.03 2 root migration/0
4 root 0 0 0 0 S 0 0.0 0:00.27 2 root ksoftirqd/0
5 root 0 0 0 0 S 0 0.0 0:00.21 2 root watchdog/0
6 root 0 0 0 0 S 0 0.0 0:00.03 2 root migration/1
7 root 0 0 0 0 S 0 0.0 0:00.95 2 root ksoftirqd/1
8 root 0 0 0 0 S 0 0.0 0:00.15 2 root watchdog/1
9 root 0 0 0 0 S 0 0.0 1:09.30 2 root events/0
As you can see, all the java instances of java have the same ppid. This is a mild case. At many rabid instances, there can be upto 7-10 instances of java. Let me know if there are any-other outputs you need.
As an aside, every time i log into the server, i get a
*** System restart required ***
Are so many instances of java the reason?
EDIT: $ pstree
init─┬─apache2───5*[apache2]
├─atd
├─avahi-daemon───avahi-daemon
├─console-kit-dae───63*[{console-kit-da}]
├─cron
├─cupsd
├─dbus-daemon
├─dnsmasq
├─dovecot─┬─2*[dovecot-auth]
│ ├─3*[imap-login]
│ └─3*[pop3-login]
├─6*[getty]
├─java───56*[{java}]
├─java───67*[{java}]
├─libvirtd───6*[{libvirtd}]
├─master─┬─pickup
│ └─qmgr
├─2*[memcached───5*[{memcached}]]
├─mongod───76*[{mongod}]
├─munin-node
├─mysqld───9*[{mysqld}]
├─named───4*[{named}]
├─nmbd
├─postgres───4*[postgres]
├─rsyslogd───3*[{rsyslogd}]
├─smbd───smbd
├─sshd───sshd───sshd───bash───pstree
├─udevd───2*[udevd]
├─upstart-udev-br
├─vsftpd
└─winbindd───3*[winbindd]