Results 1 to 4 of 4
  1. #1

    apache memory woes

    Hi,

    I just setup a new box. It is running centOS 4.2 with cpanel. It has 2GB of ram, dual xeon etc.

    Anyway, for some reason the httpd processes in top are showing:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    30001 nobody 16 0 83076 5300 3744 S 0.3 0.3 0:00.05 httpd

    I'm no expert - but isn't this showing 83MB of RAM usage? Shouldn't this be about 15MB?

    If someone can help me fix this, that would be great. Some of the pages are loading slow and I'm thinking its these process sizes.

    Thanks

  2. #2
    Join Date
    Feb 2003
    Posts
    543
    83076 = 83kB

    i am pretty sure but not 100% certain...

    Here is an example of a httpd from one of my servers:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    16427 root 15 0 7892 5532 2280 S 2.7 0.5 0:00.50 httpd
    Off Topic Web Forum - A forum for talking about anything!!
    N.Z. Webmaster Community - Are you from New Zealand? Well signup to our forum!!!!

  3. #3
    Join Date
    Jun 2003
    Location
    Janesville, Wi
    Posts
    1,516
    According to the output, the process is using 0.30% of your RAM.

    Could you print "free -m" for us? This will expose any obvious memory issues.
    Jakiao

  4. #4
    Join Date
    Jul 2005
    Posts
    256
    I'm no expert - but isn't this showing 83MB of RAM usage? Shouldn't this be about 15MB?
    83 megabytes in VIRT column is a size of virtual memory for this process. It has nothing to do with actual memory usage. See RES column (which stands for resident) - it's 5.3 megabytes, which is pretty good for Apache process.

    High number in VIRT column is usually caused by some extension that's capable to share memory space among Apache instances. One example is eAccelerator, another is mod_ssl with openssl compiled with mm library, or php's curl compiled with openssl support.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •