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

This is a discussion on memory usage in the VPS & Dedicated forum
My VPS comes with a 256 memory limit. I'd like to make sure i'm using it properly and if i'm near the limit, at which ...

  1. #1
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642

    memory usage

    My VPS comes with a 256 memory limit. I'd like to make sure i'm using it properly and if i'm near the limit, at which point i'd need raise the memory limit.

    How can i monitor my usage?


    PS:
    'free' reports the following:
    Code:
    # free -m
                 total       used       free     shared    buffers     cached
    Mem:         16108        238      15869          0          0          0
    -/+ buffers/cache:        238      15869
    Swap:            0          0          0

  2. #2
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    nobody knows how to check their memory usage? weird.. :P

    looking inside my VZPP, under QoS alerts:

    - Mar 14, 2007 01:06:17 AM - Black zone - shmpages
    - Mar 13, 2007 09:09:47 PM - Black zone - shmpages

    based on the documentation, "shmpages" are:

    "The total size of shared memory (including IPC, shared anonymous mappings and tmpfs objects) allocated by the processes of a particular VPS, in pages."

    Does that mean i've reached my memory limit?

  3. #3
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    Problem solved. For everyones enjoyment, here is a small shell script that i wrote, it prints the hard memory limit and the current memory usage.

    Code:
    #!/bin/sh
    
    let GMEM=`grep vmguarpages /proc/user_beancounters | awk '{print$4}'`/1024*4
    let CMEM=`grep physpages /proc/user_beancounters | awk '{print$2}'`/1024*4
    
    echo "Memory limit...: $GMEM MB"
    echo "Current usage..: $CMEM MB"

  4. #4
    Loyal Client
    Join Date
    Sep 2006
    Posts
    143

    Thumbs up

    Thanks thisisit3

  5. #5
    JPC Guru
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    263
    Thank you very much, will come in handy!
    My VPS server:
    www.myfedoraserver.com


  6. #6
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    You are both welcome. I've done lots of interesting modifications to my server, i'll try to post things as i go along.

    I've also written a few modifed rule sets for BFD, since the default ones are badly written and not suitable for Jag's configuration.

  7. #7
    Loyal Client
    Join Date
    Sep 2006
    Posts
    143
    May be you can start a thread of VPS tweaks?

    There is a great thread @ WHT, but one here would be more personal for Jag customers, and would probably help a lot of others out as well.

    Just an idea.

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
  •