ERLEDIGT
JA
JA
ANTWORTEN
4
4
ZUGRIFFE
761
761
EMPFEHLEN
-
05.08.09 09:46 #1
- Registriert seit
- Sep 2003
- Beiträge
- 89
Hallo,
so sehen bei mir laufende Prozelle nach dem reboot des Systems aus.
Ich finde die folgende Passage etwas merkwürdig:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13
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.PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
05.08.09 18:36 #3
- Registriert seit
- Sep 2003
- Beiträge
- 89
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.
Daher bleiben mir nur die TTYs 2-6 zum Login in der Shell.Code :1 2 3 4 5
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
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 :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
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 └─xenstoredPHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
17.08.09 21:33 #5
- Registriert seit
- Sep 2003
- Beiträge
- 89
Hallo Denis,
danke für die ausführliche Beschreibung!
Habe durch deine und die folgende Beschreibung alles verstanden
http://www.linux-praxis.de/linux1/prozess1.html
Gruß
Angelika
Ähnliche Themen
-
Laufende ProgressBar
Von bernimoses im Forum Visual Basic 6.0Antworten: 11Letzter Beitrag: 14.07.08, 16:05 -
Laufende Uhr in Powerpoint
Von Luda im Forum Office-AnwendungenAntworten: 2Letzter Beitrag: 26.07.05, 16:53 -
Zugriff auf laufende Excel-Prozesse
Von jayel im Forum .NET ArchivAntworten: 7Letzter Beitrag: 07.06.05, 16:01 -
Laufende Bilder
Von 08/15 im Forum HTML & XHTMLAntworten: 5Letzter Beitrag: 12.10.04, 11:10 -
Task(manager) Prüfer der laufende Prozesse untersucht
Von KristophS im Forum Microsoft WindowsAntworten: 1Letzter Beitrag: 07.06.04, 23:29





Zitieren
Login





