Results 1 to 8 of 8
  1. #1

    Technical Advice - Possible CPU/Memory issue

    Greetings,
    Below, you see my Apache status from WHM, just before my server crashes.
    It only runs one Postnuke/PHP/MySql website!

    Database size= 70 MB. Traffic=10,000 visitors/day. Page Views= 120K/day.

    The Server is your typical Server Matrix Super Server (P4 CPU 2.8/1 G RAM/Flood Gaurd/Cpanel/WHM/RHE 3)
    Is the above too much to ask from this server?

    It has never been up a full day, ever since I got it couple of weeks ago.

    Could this be an attack? Should I upgrade? What areas I need to check? I did a MySql (huge.conf) /PHP/Apache tuning. Anything else before I ask for an upgrade?

    I noticed that when Memory reaches 80% load, re-starting Apache (from WHM),
    would bring it back to below 25%. It would work OK for a while and handle even more requests
    than than above (59), but it would run out of memory again and shutdown.

    Any advise would be appreciated.

    Z.
    _____________________________________________________________
    Apache Server Status for alpha.xxx.com
    Server Version: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a
    Server Built: Apr 26 2004 09:39:34

    --------------------------------------------------------------------------------
    Current Time: Wednesday, 05-May-2004 12:40:50 EDT
    Restart Time: Wednesday, 05-May-2004 12:37:26 EDT
    Parent Server Generation: 0
    Server uptime: 3 minutes 24 seconds
    Total accesses: 2132 - Total Traffic: 5.4 MB
    CPU Usage: u146.71 s5.64 cu.01 cs0 - 74.7% CPU load
    10.5 requests/sec - 27.2 kB/second - 2667 B/request
    59 requests currently being processed, 6 idle servers

  2. #2
    Join Date
    Mar 2003
    Location
    Charlotte, NC
    Posts
    2,760
    Can you post the output of "top" on your server?

    -Josh

  3. #3
    Join Date
    Sep 2001
    Location
    Seattle, WA
    Posts
    3,084
    You need to find out why it's crashing. What error messages appear? Is anything in /var/log/messages that might say why it is shutting down?
    Jim Reardon - jim/amusive.com

  4. #4
    Join Date
    Aug 2003
    Posts
    43
    Use PHP accelerator to accelerate your PHP scripts.

    And should you use kernel 2.4.21-9-x which is buggy, you have to either workaround your kernel or better to keep stick with 2.4.21-4 kernel.

  5. #5
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    Have SM apply their "Kernel" Fix.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  6. #6
    Thanx folks...
    This is Top's current output. However, there are not problems now, of course.


    19:41:52 up 6:49, 2 users, load average: 0.97, 1.68, 1.77
    133 processes: 132 sleeping, 1 running, 0 zombie, 0 stopped
    CPU states: cpu user nice system irq softirq iowait idle
    total 0.9% 0.0% 0.2% 0.0% 0.0% 0.0% 98.6%
    cpu00 0.9% 0.0% 0.3% 0.0% 0.0% 0.1% 98.4%
    cpu01 0.9% 0.0% 0.1% 0.0% 0.0% 0.0% 98.8%
    Mem: 1028028k av, 815016k used, 213012k free, 0k shrd, 110156k buff
    600980k actv, 120872k in_d, 3896k in_c
    Swap: 2040212k av, 206348k used, 1833864k free 218952k cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    13261 mysql 16 0 33124 32M 2160 S 0.3 3.2 0:12 0 mysqld
    13430 mysql 15 0 33124 32M 2160 S 0.3 3.2 0:09 1 mysqld
    1 root 15 0 500 468 440 S 0.0 0.0 0:09 1 init
    2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
    3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
    4 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
    5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
    6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd/1
    7 root 15 0 0 0 0 SW 0.0 0.0 0:06 0 kswapd
    8 root 15 0 0 0 0 SW 0.0 0.0 0:04 1 kscand
    9 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 bdflush
    10 root 15 0 0 0 0 SW 0.0 0.0 0:02 0 kupdated
    11 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
    20 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_0
    21 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_1
    24 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kjournald
    68 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
    340 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    341 root 15 0 0 0 0 SW 0.0 0.0 0:02 1 kjournald
    342 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald


    As for SM applying their patch, yes they did. They simply did:
    echo 2 10 20 > /proc/sys/vm/pagecache
    echo 100 > /proc/sys/vm/inactive_clean_percent

    and added those two lines to /etc/rc.d/rc.local

    The patch didn't change anything. I read that a value of 30, instead of 100 above, would be best. So, it's set to that now.

    As for the Kernel, I have:
    Linux 2.4.21-9.0.3.ELsmp #1 SMP Tue Apr 20 19:49:13 EDT 2004 i686 i686 i386 GNU/Linux

    How do go about upgrading/downgrading it? Can I do that without disabling the site?

    As for PHP Accelerator, any recommendation? I have Zend installed, at this time.

    This seems to be a common problem with CPU 2.8/Cpanel/Linux. However, I haven't been able to find the solution, yet.

    Z.

  7. #7
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    i dont recommend downgrading as there is security holes. The problem is directly related to RHE
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  8. #8
    Join Date
    Aug 2002
    Location
    Seattle
    Posts
    5,512
    You might get better results if you post this in the Technical forum.

    Regards.

Posting Permissions

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