Community Forums
Connect with us on LinkedIn
Community Notice
  
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    27

    Default RAM Usage

    I've had cPanel/WHM running happily on a box with 2GB RAM for a long time now. It never used any swap.

    I just setup cPanel/WHM on a virtual machine with 3GB RAM allocated, and transferred all the accounts over. It's using all 3GB, but again, no swap.

    I'm trying to decide how much RAM should be allocated, but whatever I give it, it seems to use.

    What's using all the RAM, and how can I determine how much RAM it needs?

  2. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Linux likes to use all the available memory it can get it's hands on, so if you throw 3GB at it you will see it take 3GB. You can use the free and top commands to guage if you are allocating more than necessary. The general rule is enough is never enough.

  3. #3
    Member serversignature's Avatar
    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    107

    Default

    try to run Dstat to find out your stats
    Dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat and ifstat.
    http://dag.wieers.com/home-made/dstat/
    Serversignature.com - Professional Linux Consulting.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    As mentioned above, linux will consume then redistribute the memory. So even on an empty server, the memory can appear high. You should pay the most attention to the load, swap, and process count. If they are all fine, then you can safely ignore the high memory indication.

Similar Threads & Tags
Similar threads

  1. Ram usage
    By powvex in forum Optimization
    Replies: 17
    Last Post: 08-22-2011, 10:52 AM
  2. Ram usage and Webhosting
    By forquato in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-03-2009, 05:25 PM
  3. CPU and RAM usage
    By vmicovic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-07-2008, 11:46 AM
  4. how to limit ram usage
    By promak in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-07-2003, 02:33 PM
  5. Mysql RAM usage
    By Angel78 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-10-2003, 05:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube