Ad Widget

Collapse

Using full memory? Memory Leak?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mystycs
    Member
    • Aug 2013
    • 56

    #1

    Using full memory? Memory Leak?

    My zabbix was running at 50% memory, now its slowly moving up to 90-100% everytime i restart.

    What is going on here?

  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Describe your Zabbix infrastructure setup.

    Is your Zabbix App server and DB server on the same box?
    1GB of memory is an extremely low amount of RAM to allocate to a DB server.
    In fact, I dedicate more than that to my Zabbix App server alone.

    Comment

    • mystycs
      Member
      • Aug 2013
      • 56

      #3
      Yeah both mysql and zabbix are on the same server.

      Its funny cause it used to be only 50% used before i moved it to this server.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        As a comparison, here is my memory allocations for my App and DB server, each running on their own VM.
        Attached Files

        Comment

        • mystycs
          Member
          • Aug 2013
          • 56

          #5
          got it. i upgraded my zabbix server to 2gb

          Comment

          • mystycs
            Member
            • Aug 2013
            • 56

            #6
            Funny so i upgraded it to 2gb and it went even higher to 1.7GB.

            Something must be wrong no?

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #7
              Linux will tend to grab memory and show it as not free, when it is actually available. See my graphs above. The blue portion is "available", while the red portion is shown as "free".

              Add the below item to your OS Linux template if it doesn't already exist. I believe it is already there in the 2.x versions. Then add the item to your memory graph like you see in mine. But again, 2GB of memory for a setup that has both the DB and App server on the same box is a very minimal amount of memory.

              I have 8GB of memory for my App server and 16GB of memory for my DB server.
              Attached Files

              Comment

              • mystycs
                Member
                • Aug 2013
                • 56

                #8
                So then essentially to get the real used memory i would do total-available?

                Why is it that available and free are totally different?

                Comment

                • mystycs
                  Member
                  • Aug 2013
                  • 56

                  #9
                  It looks like based on this


                  PHP Code:
                               total       used       free     shared    buffers     cached
                  Mem
                  :          2002       1221        781          0        176        490
                  -/+ buffers/cache:        554       1448
                  Swap
                  :            0          0          0 
                  If i use last(vm.memory.size[total])-last(vm.memory.size[available])

                  I get the accurate result above such as 554mb.

                  So that works for me!

                  Comment

                  Working...