Le Donnerstag, 1. März 2007, Russell Jones a écrit :
> David Brodbeck wrote:
> > Andreas wrote:
> >> Thanks for checking this out. I had Apache to serve out an "online mp3
> >> player", a project done in php. As soon as Apache started, it forked
> >> itself a cpuple of times and in total used >64MB of my precious 200MB,
> >> which had the pc maxxed out right after booting. I guess I will try
> >> again with a faster pc and a new installation :(
> >
> > You can adjust how many copies of itself Apache forks on startup.  I
> > sometimes adjust it downward for personal webservers that aren't going
> > to see more than a few hits at a time.  That said, a lot of the memory
> > used by each forked copy is actually shared code, and the copies that
> > aren't doing anything will eventually get swapped out and stay there.
> > So it's not as big a hit as you'd think.
>
> And of course you do have no gui running and a swap file? Could you post
> the output of "pstree -apul" and "cat /proc/meminfo"?

Sorry for getting back at you so late. I actually didn't think the thread was 
still alive. 
However, do you know how to "adjust" apache so that it does not fork out? I 
was looking at the documentation for apache(2) and felt a little overwhelmed.

Thanks a lot!
Andreas

This is the output of pstree -apul:
hal9002:~ # pstree -apul
init,1
  ├─acpid,2304
  ├─(cifsd,3578)
  ├─cron,3713
  ├─dbus-daemon,2317,messagebus --system
  ├─(events/0,4)
  ├─faxgetty,3773,fax /dev/modem
  ├─faxq,3071,fax
  ├─hald,2355,haldaemon --daemon=yes
  │   └─hald-runner,2356,root
  │       ├─hald-addon-acpi,2538,haldaemon
  │       ├─hald-addon-keyb,2546,haldaemon
  │       ├─hald-addon-stor,2654
  │       └─hald-addon-stor,2667
  ├─hddtemp,2474 -d -f /etc/hddtemp.db -p 7634 -S 120 /dev/hdb
  ├─hfaxd,3079,fax -i hylafax -o 4557 -s 444
  ├─httpd2-prefork,3739 -f /etc/apache2/httpd.conf -DSSL
  │   ├─httpd2-prefork,3807,wwwrun -f /etc/apache2/httpd.conf -DSSL
  │   ├─httpd2-prefork,3808,wwwrun -f /etc/apache2/httpd.conf -DSSL
  │   ├─httpd2-prefork,3809,wwwrun -f /etc/apache2/httpd.conf -DSSL
  │   ├─httpd2-prefork,3810,wwwrun -f /etc/apache2/httpd.conf -DSSL
  │   └─httpd2-prefork,3811,wwwrun -f /etc/apache2/httpd.conf -DSSL
  ├─(khelper,5)
  ├─klogd,2905 -c 1 -x -x
  ├─(ksoftirqd/0,3)
  ├─(kthread,6)
  │   ├─(aio/0,108)
  │   ├─(cifsdnotifyd,3571)
  │   ├─(cifsoplockd,3570)
  │   ├─(cqueue/0,68)
  │   ├─(kacpid,10)
  │   ├─(kauditd,3580)
  │   ├─(kblockd/0,9)
  │   ├─(kgameportd,1295)
  │   ├─(khubd,1095)
  │   ├─(kjournald,812)
  │   ├─(kjournald,1864)
  │   ├─(kpsmoused,369)
  │   ├─(kseriod,69)
  │   ├─(kswapd0,107)
  │   ├─(nfsd4,3120)
  │   ├─(pdflush,105)
  │   ├─(pdflush,106)
  │   └─(rpciod/0,2950)
  ├─(lockd,2951)
  ├─master,3682
  │   ├─pickup,3700,postfix -l -t fifo -u
  │   └─qmgr,3701,postfix -l -t fifo -u
  ├─(migration/0,2)
  ├─mingetty,3749 --noclear tty1
  ├─mingetty,3750 tty2
  ├─mingetty,3752 tty3
  ├─mingetty,3753 tty4
  ├─mingetty,3754 tty5
  ├─mingetty,3769 tty6
  
├─mysqld_safe,3128 /usr/bin/mysqld_safe --mysqld=mysqld --user=mysql 
--pid-file=/var/lib/mysql/mysqld.pid--socke
  │   
└─mysqld,3213,mysql --basedir=/usr --datadir=/var/lib/mysql 
--user=mysql--pid-file=/var/lib/mysql/mysqld
  │       ├─{mysqld},3370
  │       ├─{mysqld},3371
  │       ├─{mysqld},3372
  │       ├─{mysqld},3373
  │       ├─{mysqld},3443
  │       ├─{mysqld},3444
  │       ├─{mysqld},3448
  │       ├─{mysqld},3449
  │       ├─{mysqld},3728
  │       ├─{mysqld},3732
  │       └─{mysqld},3733
  ├─mythbackend,3727 --daemon --logfile /var/log/mythtv/mythbackend.log
  │   ├─{mythbackend},3731
  │   ├─{mythbackend},3734
  │   ├─{mythbackend},3735
  │   ├─{mythbackend},3736
  │   ├─{mythbackend},3737
  │   ├─{mythbackend},3738
  │   ├─{mythbackend},3740
  │   ├─{mythbackend},3741
  │   ├─{mythbackend},3742
  │   ├─{mythbackend},3743
  │   └─{mythbackend},3744
  ├─named,3093,named -t /var/lib/named -u named
  │   ├─{named},3094
  │   ├─{named},3095
  │   └─{named},3096
  ├─(nfsd,3121)
  ├─(nfsd,3122)
  ├─(nfsd,3123)
  ├─(nfsd,3124)
  ├─nmbd,2952 -D -s /etc/samba/smb.conf
  ├─nscd,3630
  │   ├─{nscd},3631
  │   ├─{nscd},3632
  │   ├─{nscd},3633
  │   ├─{nscd},3634
  │   ├─{nscd},3635
  │   └─{nscd},3636
  ├─ntpd,3603,ntp -p /var/lib/ntp/var/run/ntp/ntpd.pid -u ntp -i /var/lib/ntp
  ├─polkitd,2349
  ├─portmap,2921,nobody
  ├─powersaved,3467 -d -f /var/run/acpid.socket -v 3
  ├─pure-ftpd,3525
  ├─resmgrd,2320
  ├─rpasswdd,3503 -p 774 -6 --slp
  ├─rpc.mountd,3136
  ├─rsyncd,3543 --daemon
  ├─slpd,3523,daemon
  ├─smbd,3562 -D -s /etc/samba/smb.conf
  │   ├─smbd,3593 -D -s /etc/samba/smb.conf
  │   └─smbd,4357 -D -s /etc/samba/smb.conf
  ├─sshd,3594 -o PidFile=/var/run/sshd.init.pid
  │   └─sshd,3813
  │       └─bash,3816
  │           └─pstree,4358 -apul
  
├─syslog-ng,2902 -a /var/lib/dhcp/dev/log -a /var/lib/named/dev/log -a 
/var/lib/stunnel/dev/log
  ├─udevd,856 --daemon
  └─xinetd,3591

And here comes cat /proc/meminfo
hal9002:~ # cat /proc/meminfo
MemTotal:       255360 kB
MemFree:        165048 kB
Buffers:          4396 kB
Cached:          27536 kB
SwapCached:       4496 kB
Active:          23992 kB
Inactive:        14644 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255360 kB
LowFree:        165048 kB
SwapTotal:      851436 kB
SwapFree:       811060 kB
Dirty:               4 kB
Writeback:           0 kB
AnonPages:        5708 kB
Mapped:           7364 kB
Slab:            44532 kB
PageTables:       1072 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    979116 kB
Committed_AS:   372456 kB
VmallocTotal:   770040 kB
VmallocUsed:      9536 kB
VmallocChunk:   760348 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     4096 kB

-- 
Gruß
Andreas

Reply via email to