Results 1 to 9 of 9
  1. #1

    Apache Eating CPU & MEM

    after a hard day of high LOAD without finding the reason..

    finally i found something really strange

    a client complained yesterday that some section and some topics in his vbulletin forum is not opening !!
    i tested that really and topics never opened.....

    what i didn't notice... once i click the TOPIC Link
    it creates a httpd process taking 100% CPU usage and high memory

    i did trace it in WHM found this : also i found some emails from the forum
    MySQL Error : Got error 12 from storage engine

    which is Can't allocate memory

    the strange thing this only happens with this forum only !!! and he's the reason of High sudden load
    process 10488 attached - interrupt to quitwrite(2, "FATAL: emalloc(): Unable to al"..., 57) = 57exit_group(1) = ?Process 10488 detached
    Tasks: 141 total, 3 running, 138 sleeping, 0 stopped, 0 zombie
    Cpu(s): 10.5% us, 2.3% sy, 0.0% ni, 87.1% id, 0.1% wa, 0.0% hi, 0.0% si
    Mem: 2074348k total, 743580k used, 1330768k free, 4940k buffers
    Swap: 2096440k total, 289324k used, 1807116k free, 54220k cached
    5683 nobody 25 0 623m 437m 1356 R 100 21.6 0:06.63 /usr/local/apache/bin/httpd -DSSL
    5492 nobody 17 0 19380 7928 1368 R 2 0.4 0:02.41 /usr/local/apache/bin/httpd -DSSL
    7180 root 16 0 3704 932 696 R 0 0.0 0:02.36 top -c
    1 root 16 0 2788 264 232 S 0 0.0 0:07.16 init [3]
    2 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/0]
    3 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/0]

    there is alot of free memory

    this is a shine new Server : 2 x dual core xeon 3.0 with 2 gb ram

  2. #2
    no comments !!

  3. #3
    Join Date
    Jun 2003
    Janesville, Wi
    It might be referring to the amount of virtual memory it's trying to access (which is where emolloc() tries to access).

    Could you show us the output of "ulimit -a" please?

    Thank you.

  4. #4
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    pending signals (-i) 1024
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 32758
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited

  5. #5
    there is something else i need to know... mysql is another reason for LOAD
    i have 2 Dual Core xeon 3.0 with 2 gb ram
    anyone have suggestion on apache config or mysql

    and mysql runs in one process !! is that fine or how it can be devided or thats better !!

  6. #6
    Join Date
    Sep 2000
    Alberta, Canada
    Definitely got a memory problem. As vBulletin is an excellent Forum script I doubt the problem is there. Could be though, someone has posted some funky coding and/or large images. You'd need to check the Web page code to see for sure.

    Two suggestions which might help but first, copy and record the output of Apache Status in WHM and Server Status in Cpanel.

    In httpd.conf

    Timeout 15
    KeepAlive On

    MaxKeepAliveRequests 100
    KeepAliveTimeout 30

    MinSpareServers 6
    MaxSpareServers 12
    StartServers 5

    MaxClients 180
    MaxRequestsPerChild 1000

    In your Server 'php.ini' file: /usr/local/Zend/etc/php.ini
    mysql.allow_persistent = Off

    Restart Apache then compare Apache Status in WHM and Server Status in Cpanel with previous. Monitor/compare for the next 1/2 hr. or so. - for all your Hosting needs
    Helping people Host, Create and Maintain their Web Site
    ServerAdmin Services also available

  7. #7
    i found the exact problem it was in the forum setting
    it was showing like a 100 post in the topic in one page so it couldn't handle it with large posts... now it works fine and thank you for the configs..

  8. #8
    Join Date
    Sep 2000
    Alberta, Canada
    And thanks for sharing the solution.

    Most people forget that part but solutions are always helpful to someone down the road, having the same problem. - for all your Hosting needs
    Helping people Host, Create and Maintain their Web Site
    ServerAdmin Services also available

  9. #9
    exactly... there is many topics helpfull when facing problems and putting multiple solutions..

    WHT r0x

Posting Permissions

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