LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How much RAM does each apache website consume? (https://www.linuxquestions.org/questions/linux-server-73/how-much-ram-does-each-apache-website-consume-875553/)

FireRaven 04-18-2011 12:02 AM

How much RAM does each apache website consume?
 
Hi, is there an easy way to determine this?
If I run TOP and order by memory usage I get all the websites, but only showing as different apache processes, not so useful:
Code:

28077 www-data  20  0  332m  89m 4324 S    0 18.2  0:35.71 apache2
28060 www-data  20  0  252m  48m 4808 S    0  9.9  2:00.61 apache2
28342 www-data  20  0  245m  43m 4608 S    0  8.8  0:03.57 apache2
28107 www-data  20  0  240m  39m 4672 S    0  7.9  0:07.91 apache2
28355 www-data  20  0  239m  37m 4100 S    0  7.5  0:02.40 apache2

How can I for example determine what website is using that 89MB of memory?

Kobussie 04-18-2011 02:40 AM

Hi!

I assume you're talking about a server running a number of different websites? I think there's no easy way to determine the load on the server for each website. Apache starts processes for each incoming http-request, but not on a per-website basis. If you want to know more about the load on the server for each website, I think you'll have to look at the access-log files. I hope this helps...
---------- Post added 04-18-11 at 09:40 AM ----------

FireRaven 04-18-2011 02:54 AM

I was afraid you'd say that.
Damn. Thanks anyway.


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