Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple instances of the same daemon running 1

Status
Not open for further replies.

ggggus

Programmer
Jul 5, 2003
114
I set up a very basic virtual private server with only 32Mb of ram, and I need to conserve it as much as possible. The virtual server is running slackware 10.2 and I have multiple instances of the httpd and mysqld running for some reason. I'm not sure if it is supposed to be doing this (but I don't think it should be). Here is a top screen from the server, Any input here would be appreciated.

Code:
top - 11:36:51 up 2 min,  1 user,  load average: 0.18, 0.14, 0.06
Tasks:  45 total,   2 running,  43 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:     28984k total,    27996k used,      988k free,      192k buffers
Swap:   132088k total,    14504k used,   117584k free,     5060k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  202 mysql     15   0 41880 5660 1628 S  0.0 19.5   0:00.04 mysqld
  204 mysql     16   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  205 mysql     20   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  206 mysql     15   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  207 mysql     15   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  208 mysql     20   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  210 mysql     16   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  211 mysql     16   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  212 mysql     16   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  213 mysql     16   0 41880 5660 1628 S  0.0 19.5   0:00.00 mysqld
  168 daemon    15   0  8928 3952 1100 S  0.0 13.6   0:00.09 httpd
  218 daemon    16   0  8856 3776 1072 S  0.0 13.0   0:00.06 httpd
  214 daemon    15   0  8224 3128 1076 S  0.0 10.8   0:00.03 httpd
  217 daemon    16   0  8304 3116  980 S  0.0 10.8   0:00.03 httpd
  171 daemon    16   0  8292 3056  984 S  0.0 10.5   0:00.06 httpd
  203 daemon    16   0  8292 3056  980 S  0.0 10.5   0:00.07 httpd
  172 daemon    16   0  8292 3044  980 S  0.0 10.5   0:00.13 httpd
  169 daemon    16   0  8304 3004  984 S  0.0 10.4   0:00.02 httpd
  170 daemon    16   0  8304 2988  976 S  0.0 10.3   0:00.01 httpd
  215 daemon    15   0  8276 2952  972 S  0.0 10.2   0:00.03 httpd
  224 root      16   0  6084 1272 1060 R  0.0  4.4   0:00.04 sshd
  164 root      16   0  7656 1128  772 S  0.0  3.9   0:00.03 httpd
  232 root      15   0  2808  976  720 S  0.0  3.4   0:00.01 bash
  245 root      16   0  2064  812  612 R  0.0  2.8   0:00.13 top
  162 root      16   0  5324  684  556 S  0.0  2.4   0:00.00 sendmail
  147 root      16   0  3372  644  524 S  0.0  2.2   0:00.14 sshd
  174 root      25   0  2312  532  532 S  0.0  1.8   0:00.01 safe_mysqld
  153 root      16   0  1676  368  312 S  0.0  1.3   0:00.00 crond
  160 smmsp     18   0  5100  316  308 S  0.0  1.1   0:00.00 sendmail
   57 root      16   0  1520  296  256 S  0.0  1.0   0:00.01 syslogd
  144 root      23   0  1512  204  176 S  0.0  0.7   0:00.00 inetd
   59 root      16   0  1484  160  116 S  0.0  0.6   0:00.01 klogd
  175 root      16   0  1480  160  160 S  0.0  0.6   0:00.00 agetty
    1 root      16   0   680  136  112 S  0.0  0.5   0:00.02 init
    2 root      39  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    4 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    5 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    6 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    7 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/0
    8 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
    9 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
   11 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
   10 root      15   0     0    0    0 S  0.0  0.0   0:00.01 kswapd0
   12 root      15   0     0    0    0 S  0.0  0.0   0:00.00 kjournald


Thanks,

***************************************
J. Jacobs
 
There are settings like "minspareservers" in httpd.conf and in my.cnf that determine how many children are spawned for these threaded daemons.

Frankly, it's not terribly realistic to have an expectation that you're going to run those particular services for anything but the smallest of audiences.

Can you shutoff inetd or sendmail to save a little memory?

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top