LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2004, 12:26 AM   #1
jjustin01
Member
 
Registered: Feb 2004
Posts: 34

Rep: Reputation: 15
HTTPD running multiple processes


I have been noticing that my memory usage will suddenly jump to 480 - 503 mb used out of 512 and stay used. This is on Fedora Core 1 and the I only have one instance of Firefox and Gaim open. Now Gaim takes a fairly decent chunk of memory, but the one that gets me is the HTTPD process. It constantly shows around 8-10 instances of the httpd process running using 9.2 mb per process.

Now I do have Apache installed from the Fedora install discs and have setup to automatically start at run level 5. but I don't want it running 8-9 instances of the darned thing.

Also, there is a process called mingetty that has about 5 instances of itself. What's that for?

Any solutions. Thanks
 
Old 03-04-2004, 07:16 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
mingetty is short for minimal getty. It provides the consoles (hit Ctrl+Alt+F1 to F6 to cycle through them, Ctrl+Alt+F7 to get back to your graphical X session) and uses about 8KB of kernelspace memory for each instance.

As for httpd, or Apache, the default is starting multiple instances. Edit your config file if it doesn't suite you, but know that if you do lower the number of instances you will probably encounter worse performance. The default should be OK.

Regarding memory usage, I believe Apache uses shared memory - five Apache processes using 9.2MB "each" actually use 9.2MB combined. In Apache2 the "processes" (as shown in top) are actually different threads in the same single Apache2 process.

Addition (edited post): Memory usage is measured quite differently in Linux than in Windows. In Windows, if the NT/2K/XP/03 Task Manager shows 200MB used by programs, that's what is actually in active used, in-RAM swap is not shown by default. The top and free in Linux include the amount of memory used as in-RAM swap. So to get a more Windows-like representation of used memory check the "buffers/cache" line in the output from free -m.


Håkan

Last edited by hw-tph; 03-04-2004 at 07:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple threads vs Multiple processes deveraux83 Programming 1 05-11-2005 10:22 AM
Multiple Processes Appearing! Riddick SUSE / openSUSE 0 12-06-2004 05:27 PM
httpd opening up to many processes artistik Linux - Software 1 09-28-2003 02:30 PM
httpd processes Hamma Linux - Software 16 06-01-2003 11:15 PM
5 httpd processes running on an idle box? J_Szucs Linux - Networking 2 04-07-2003 08:58 PM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration