Laufende Prozesse OK ?

Hallo,

so sehen bei mir laufende Prozelle nach dem reboot des Systems aus.

Ich finde die folgende Passage etwas merkwürdig:

Code:
 3835 root      16   0 23384 8336 4788 S  0.0  0.8   0:00.14 apache2                                                                                                                                           
 3853 root      16   0  1560  492  424 S  0.0  0.0   0:00.01 getty                                                                                                                                             
 3854 root      16   0  1564  496  424 S  0.0  0.0   0:00.00 getty                                                                                                                                             
 3855 root      16   0  1560  492  424 S  0.0  0.0   0:00.00 getty                                                                                                                                             
 3856 root      16   0  1564  496  424 S  0.0  0.0   0:00.00 getty                                                                                                                                             
 3857 root      16   0  1564  492  424 S  0.0  0.0   0:00.01 getty                                                                                                                                             
 3858 root      16   0  1564  492  424 S  0.0  0.0   0:00.00 getty                                                                                                                                             
 3869 www-data  16   0 23520 5236 1612 S  0.0  0.5   0:00.00 apache2                                                                                                                                           
 3870 www-data  18   0 23520 4656 1096 S  0.0  0.4   0:00.01 apache2                                                                                                                                           
 3871 www-data  18   0 23520 4656 1096 S  0.0  0.4   0:00.00 apache2                                                                                                                                           
 3872 www-data  18   0 23520 4656 1096 S  0.0  0.4   0:00.00 apache2                                                                                                                                           
 3873 www-data  18   0 23520 4656 1096 S  0.0  0.4   0:00.00 apache2                                                                                                                                           
 3874 www-data  16   0 23520 4656 1096 S  0.0  0.4   0:00.00 apache2

apache2 & getty tauchen viel zu oft auf. Sollte ein Prozess nicht nur einmal angezeigt werden ?

Gruß
Angelika
 
getty wird einmal per tty gestartet, in der Regel also 6-mal, wie hier auch der Fall ist.
Apache forkt auch beim Start direkt in mehrere Prozesse, also auch das ist normal.
 
Hallo Dennis,

sorry, ich habe deine Antwort leider nicht verstanden.

Ich arbeite mit einem Terminal ( tty ).
So wie ich dich verstanden habe, werden beide Prozesse vom System gesplittet und in mehreren Terminals ausgeführt ?!

Wenn das der Fall sein sollte, müssen 13 Terminals im Hintergrund laufen ?!

Gruß
Angelika
 
Nein, keine 13 Terminals, aber 6 (die Anzahl der getty-Prozesse).
Diese kannst mit ALT+F1 bis ALT+F6 durchschalten.
Bei mir sind es z.B. nur 5, da Fedora das GUI auf den ersten TTY legt.
Code:
root      2241  0.0  0.0   3900   480 tty4     Ss+  Aug05   0:00 /sbin/mingetty tty4
root      2242  0.0  0.0   3900   476 tty5     Ss+  Aug05   0:00 /sbin/mingetty tty5
root      2243  0.0  0.0   3900   476 tty2     Ss+  Aug05   0:00 /sbin/mingetty tty2
root      2244  0.0  0.0   3900   476 tty3     Ss+  Aug05   0:00 /sbin/mingetty tty3
root      2245  0.0  0.0   3900   472 tty6     Ss+  Aug05   0:00 /sbin/mingetty tty6
Daher bleiben mir nur die TTYs 2-6 zum Login in der Shell.

Apache laeuft unabhaengig von den TTYs. Ein Daemon verzieht sich normalerweise in den Hintergrund, wird also vom TTY auf dem er aufgerufen wurde "detached", also getrennt.
Dass Du nun eben mehrere Apache-Prozesse hast liegt, wie erwaehnt, am Prozess-Forking. Apache wird einmal gestartet und erstellt dann eine (einstellbare) Anzahl an Kindprozessen die dann die eigentlichen Anfragen behandeln.

getty laeuft also wirklich mehrere Male, Apache laeuft hingegen nur einmal, hat aber mehrere Kind-Prozesse.
Mit pstree kannst Du dies visualisieren.
Hier mal meine Ausgabe:
Code:
init???/usr/share/virt    
     ??acpid              
     ??atd                
     ??auditd???audispd???sedispatch
     ?        ?         ??{audispd} 
     ?        ??{auditd}            
     ??avahi-daemon???avahi-daemon  
     ??blkbackd???{blkbackd}        
     ??bluetoothd                   
     ??console-kit-dae???62*[{console-kit-dae}]
     ??crond???crond???freshclam-sleep???sleep 
     ??cupsd                                   
     ??3*[dbus-daemon???{dbus-daemon}]         
     ??2*[dbus-launch]                         
     ??devkit-daemon                           
     ??devkit-disks-da???devkit-disks-da       
     ??dnsmasq                                 
     ??dolphin                                 
     ??evtchnd                                 
     ??gam_server                              
     ??gconf-im-settin                         
     ??gconfd-2                                
     ??gnome-keyring-d                         
     ??gpg-agent                               
     ??gpm                                     
     ??gvfs-fuse-daemo???3*[{gvfs-fuse-daemo}] 
     ??gvfs-gdu-volume                         
     ??gvfs-gphoto2-vo                         
     ??gvfsd                                   
     ??hald???hald-runner???hald-addon-acpi    
     ?                    ??hald-addon-cpuf    
     ?                    ??hald-addon-inpu    
     ?                    ??4*[hald-addon-stor]
     ??httpd???9*[httpd]                       
     ??im-settings-dae                         
     ??irqbalance                              
     ??kaccess                                 
     ??kbluetooth4                             
     ??kded4???2*[{kded4}]                     
     ??kdeinit4???kerneloops-appl              
     ?          ??4*[kio_file]                 
     ?          ??29*[kio_http]                
     ?          ??kio_imap4                    
     ?          ??kio_pop3                     
     ?          ??kio_trash                    
     ?          ??klauncher                    
     ?          ??konqueror???3*[kde4-gnash???{kde4-gnash}]
     ?          ?           ??{konqueror}                  
     ?          ??ksmserver???k9play                       
     ?          ?           ??kwin                         
     ?          ?           ??{ksmserver}                  
     ?          ??nm-applet                                
     ?          ??python                                   
     ?          ??run-mozilla.sh???firefox???9*[{firefox}]
     ?          ??seapplet
     ??kdm???X
     ?     ??kdm???startkde???kwrapper4
     ?                      ??ssh-agent
     ??kerneloops
     ??kget
     ??kgpg???{kgpg}
     ??klipper
     ??kmix
     ??knotify4???4*[{knotify4}]
     ??konsole???bash???su???bash???pstree
     ?         ??{konsole}
     ??kontact???{kontact}
     ??korgac
     ??kpackagekitsmar
     ??krunner
     ??kwalletd
     ??kxkb???{kxkb}
     ??libvirtd???5*[{libvirtd}]
     ??5*[mingetty]
     ??2*[mount.ntfs-3g]
     ??mysqld_safe???mysqld???8*[{mysqld}]
     ??nepomukserver???4*[nepomukservices]
     ?               ??{nepomukserver}
     ??netbackd???{netbackd}
     ??nm-system-setti
     ??notification-da
     ??ntpd
     ??obex-data-serve
     ??packagekitd???{packagekitd}
     ??plasma???2*[{plasma}]
     ??pulseaudio???gconf-helper
     ?            ??3*[{pulseaudio}]
     ??qemu-kvm???4*[{qemu-kvm}]
     ??rsyslogd???3*[{rsyslogd}]
     ??scim-bridge
     ??scim-helper-man
     ??2*[scim-launcher]
     ??scim-panel-gtk???{scim-panel-gtk}
     ??2*[sendmail]
     ??smartd
     ??spamd???2*[spamd]
     ??sshd
     ??udevd
     ??vsftpd
     ??xenstored
 

Neue Beiträge

Zurück