Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on VPS memory usage question - memory reading from mem.sh vs free -m commands in the VPS & Dedicated forum
Hi, What are the different memory readings mean? In putty, when I use the command sh /root/mem.sh -bash-3.2# sh /root/mem.sh Memory limit...: 512 MB Current ...

  1. #1
    Loyal Client
    Join Date
    Apr 2006
    Posts
    33

    VPS memory usage question - memory reading from mem.sh vs free -m commands

    Hi,

    What are the different memory readings mean?

    In putty, when I use the command sh /root/mem.sh

    -bash-3.2# sh /root/mem.sh
    Memory limit...: 512 MB
    Current usage..: 116 MB
    Burstable Memory...: 2048 MB


    Also in ssh using putty, when I use the command "free -m", it shows

    -bash-3.2# free -m
    total used free shared buffers cached
    Mem: 2048 306 1741 0 0 0
    -/+ buffers/cache: 306 1741
    Swap: 0 0 0

    The indirect answers that I got from JPC tech support seem to imply that the memory reading from "free -m" is the memory of the whole system/node. From searching google, it appears that most posts show reading memory usage by using 'free -m' which would give wrong memory readings for VPS's. Is my understanding close to correct?

  2. #2
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    What VPS Control Panel do you have? SolousVM or Virtuozzo

    The only place I have ever been able to get somewhat accurate ram stats is Virtuozzo, Interworx and free -m both report 42GB of memory with 10GB in use, there is no way I am using 10GB on my VPS which is about 100X more than I really need right now.

    In your case I would find it hard to believe that the node only has 2048MB of memory, I would start by looking at the resource stats in what ever VPS Management panel you have.
    -------------------------
    the_ancient
    MP Technology Group

  3. #3
    Loyal Client
    Join Date
    Apr 2006
    Posts
    33
    my vps is a whm/cpanel/solusVM/centos setup

    The solusVM web control panel shows similar memory usage as the ssh 'free -m' output.

    As I understand it, the 2048MB is burstable memory, which makes sense for my vps.

    What does not make sense is that the WHM/solusVM/free -m memory readings show that an empty VPS uses over 300MB of RAM.

    From tech support's nondirect answer, I am assuming that the readings from the above are wrong, and that the mem.sh gives the correct reading of 116MB of RAM memory usage for this "individual" VPS. I am not 100% sure of my understanding, so I just want to hear from the forum users.

    IF tech support is correct, then I don't understand why JPC does not convey this information in a prominent place. It is in their best interest, after all, to inform users and potential customers of this "mis-reporting" by the software to save customers a ton of time trying to look up this info, and save the tech support a ton of time trying find and agree on an answer to explain this to every noob customer.

  4. #4
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    That is about Right, cPanel is a RAM Hog, one of the reason I do not use it.

    I would never put cPanel on a Server/VPS with less than 1GB of ram...
    -------------------------
    the_ancient
    MP Technology Group

  5. #5
    JPC Member
    Join Date
    Dec 2011
    Posts
    4
    Here's what I use to track my memory, one of the JPC staff kindly wrote it up for me. I have it set to a root cron which runs every 6 hrs and emails me the results in the following format.

    Code:
    Memory Limit...: 1024 MB (Burstable: 2048 MB)
    Current Usage..: 228 MB (22%) (Requested: 864 MB)
    Free Memory....: 796 MB (78%)
    See attachment for the code the cron calls which I have set up like so.

    0 */6 * * * sh /root/memuse.sh | mail -s "Current VPS Memory Usage" my@email.com
    Attached Files Attached Files

  6. #6
    JPC Member nayan007's Avatar
    Join Date
    Nov 2011
    Location
    India
    Posts
    25
    Quote Originally Posted by the_ancient View Post
    That is about Right, cPanel is a RAM Hog, one of the reason I do not use it.

    I would never put cPanel on a Server/VPS with less than 1GB of ram...
    While Using cPanel it will be best to use more than 1GB to avoid from any problems

Bookmarks

Posting Permissions

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