LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-26-2010, 02:29 PM   #16
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422

Quote:
Well I did had such situation actually so It is based on real data.
There were 2 GB of memory taken when i killed all apache process there were only 50 mb taken(Os processes) and it was under heavy usage of apache so it's not an assumption....

It doesn't matter if Apache is using 2GB of RAM, as long as it is being properly managed. You may have a problem, or you may not. Based on the data you've presented here, it is perfectly possible that you have a properly functioning system, and until you post data from when the problem is occurring, as opposed to just stating that there is a problem, we're not going to be able to help. If Apache is under heavy usage, it should be one of the primary users of RAM. It is also possible that the hardware you've got isn't up to the user load being put on it.

If you want to throttle Apache, then here is some basic advice on how to do it, but based on what you've posted in this thread, you may just be hitting your site's performance for no reason. But hey, your site, your choice.
 
Old 11-26-2010, 03:54 PM   #17
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangdog42 View Post
It doesn't matter if Apache is using 2GB of RAM, as long as it is being properly managed. You may have a problem, or you may not. Based on the data you've presented here, it is perfectly possible that you have a properly functioning system, and until you post data from when the problem is occurring, as opposed to just stating that there is a problem, we're not going to be able to help. If Apache is under heavy usage, it should be one of the primary users of RAM. It is also possible that the hardware you've got isn't up to the user load being put on it.

If you want to throttle Apache, then here is some basic advice on how to do it, but based on what you've posted in this thread, you may just be hitting your site's performance for no reason. But hey, your site, your choice.
What is your memory usage of apache when you come into site with simple hello world ??
No I didn't had good system because while the apache was taking 2 GB I couldn't run my application which takes 1.4 GB of ram because of out of memory so I had to killall apache then start the application.

Last edited by Kraiser10; 11-26-2010 at 04:01 PM.
 
Old 11-27-2010, 07:37 AM   #18
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
What is your memory usage of apache when you come into site with simple hello world ??
I don't have a simple site lying around, but looking at the sites I do have, it is probably on the same level as what you've posted. However, that memory gets released as soon as the page is done being sent, so what any individual connection uses is pretty irrelevant.

But this is at the heart of why I've been saying your calculation is kind of irrelevant. If you're looking at 100 users, the impact Apache has will depend upon how long those connections last as well as the amount of information being sent. Do you have 100 users simultaneously pounding on the system 24/7/365? If so, then you are probably looking at needing a dedicated Apache server because that is likely to take a lot of hardware to support. On the other hand if you have 100 users spread infrequently over time and the site doesn't require a bunch of processing, what you have should be fine.

Quote:
No I didn't had good system because while the apache was taking 2 GB I couldn't run my application which takes 1.4 GB of ram because of out of memory so I had to killall apache then start the application.
What are you running that requires 1.4GB of RAM? That seems like a huge minimum requirement for a program and I think it means that you probably need to re-evaluate what your doing with this machine.
 
Old 11-27-2010, 12:28 PM   #19
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangdog42 View Post
I don't have a simple site lying around, but looking at the sites I do have, it is probably on the same level as what you've posted. However, that memory gets released as soon as the page is done being sent, so what any individual connection uses is pretty irrelevant.

But this is at the heart of why I've been saying your calculation is kind of irrelevant. If you're looking at 100 users, the impact Apache has will depend upon how long those connections last as well as the amount of information being sent. Do you have 100 users simultaneously pounding on the system 24/7/365? If so, then you are probably looking at needing a dedicated Apache server because that is likely to take a lot of hardware to support. On the other hand if you have 100 users spread infrequently over time and the site doesn't require a bunch of processing, what you have should be fine.



What are you running that requires 1.4GB of RAM? That seems like a huge minimum requirement for a program and I think it means that you probably need to re-evaluate what your doing with this machine.
I can't optimize apache to use less memory so I can handle 100 users which refreshing site all time lets say with not so huge waste of memory I mean not with 900 MB of ram...?
 
Old 11-27-2010, 01:50 PM   #20
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by Kraiser10 View Post
I can't optimize apache to use less memory so I can handle 100 users which refreshing site all time lets say with not so huge waste of memory I mean not with 900 MB of ram...?

Did you even bother to read the configuration site I linked to? That tells you what you need to know about restricting Apache resource uses. Of course, by restricting Apache RAM use, you may not be able to handle your user load. It really depends upon how much data gets pushed out how frequently. So far, you've presented zero evidence that Apache is "wasting" RAM, so until you've got some real-world usage numbers, this discussion is pointless.
 
  


Reply



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
High load average all of a sudden - Apache2. Spuddy Linux - Server 8 07-15-2010 06:37 AM
How can I check the memory consume of kernel modules,some tools like top? snaily Linux - Newbie 0 01-16-2010 01:17 AM
Azureus to much memory consume vladoportos Debian 1 02-28-2006 06:20 PM
Applications consume huge memory amount in kernel-2.6.4 l2g Red Hat 3 04-09-2004 09:49 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 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
Open Source Consulting | Domain Registration