Discussion:
[Monitorix-general] Enc: Re: Enc: Enc: Re: Enc: Enc: Re: Enc: Re:
vdsocks
2016-02-19 21:36:05 UTC
Permalink
MemTotal: 12293140 kB
MemFree: 932884 kB
Buffers: 369432 kB
Cached: 7581596 kB


And how can I view the Memory allocation in MegaBytes ?


---- Em Sex, 19 Fev 2016 19:28:56 -0200 Elias Crespin<***@ateliercrespin.com> escreveu ----

Hello,

The values that are displayed in Monitorix's Memory allocation graph for linux systems is obtained from four fields of the /proc/meminfo file.


If you run the command


cat /proc/meminfo | grep "MemTotal\|^MemFree\|^Buffers\|^Cached"


you will see current value of what monitorix is displaying in the time series graph for Buffers and Chached.


Finally, the Used value is calculated as MemTotal - MemFree. You might want to see it on the command line with



echo `cat /proc/meminfo | grep "MemTotal\|^MemFree\|^Buffers\|^Cached" | awk '{print $2}'` | awk '{print $1 - $2}'


Regards,


Hope this helps,
Elias



2016-02-19 19:48 GMT+01:00 vdsocks <***@worldwideemail.org>:

Jordi,
You said it's correct. I will try the option of to trust you.
Now, the problem is: How can I change the visualization in MEGABYTES ?


---- Em Sex, 19 Fev 2016 16:41:44 -0200 vdsocks<***@worldwideemail.org> escreveu ----

The monitorix graph is showing a straight line for two (and differents and constant) usage and didn't you see anything to fix?
I really want it to be true. But firefox eats my memory for each tab. Lol

Thank you very much for dont help me


---- Em Sex, 19 Fev 2016 16:36:55 -0200 Jordi Sanfeliu<***@fibranet.cat> escreveu ----

That graph <http://prntscr.com/a58txg> is telling you that you are using
around 3.5GB for user applications.

I'm still don't see anything to fix.



On 19-02-2016 19:27, vdsocks wrote:
> There are 3GB allocated and here say 11kb (or 11GB like you said):
> http://prntscr.com/a58txg
>
> There's nothing possible to try to fix it?
> I'm here to make changes :)
>

---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
Monitorix-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general




------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Monitorix-general mailing list
Monitorix-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general









------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
Monitorix-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general




------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Monitorix-general mailing list
Monitorix-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general
Elias Crespin
2016-02-19 22:13:24 UTC
Permalink
Anyhow, I would suggest reinstalling Monitorix because it should be already
in Megabytes....
If you plan changing the code , remember to make backup copies!!
Note that this way you can also extend Monitorix with your own customised
graphs.
Bests
Elias
The monitorix configuration file by default is
/etc/monitorix/monitorix.conf
There you can find the module name of the perl module that implements each
graph. For the Memory allocation you will see that it says _system3 so the
perl module to look for is system.pm.
The pm's are located in /usr/lib/monitorix
They have entry functions that are called from the monitorix main program
for the three phases of monitoring for each module: 1) Initialize database,
2) update database on each time instant 3) Generate the graph
The three corresponding functions in the perl module are suffixed with
init, update and cgi onto their name.
This is a very general description. You have to dive into the code now and
also get familiar with the rrd database system and operations.
The update function stores mtotl and mfree into the database without
change.
For the Megabytes calculation you have to look for mtotl var assignments ,
DEF and CDEF statements in the system_cgi function.
This should get you on track. Have fun!
Elias Crespin
Name : monitorix
Arq. : noarch
Epoch : 0
Versão : 3.8.1
Release : 1.fc22
Tam. : 1.6 M
From repo : updates
Where can I find this module?
---- Em Sex, 19 Fev 2016 19:40:59 -0200 *Elias
----
In my monitoring, version 3.8.1 , the result is already divided by 1024
and appears in Megabytes. I would suggest you to upgrade.
If you can not upgrade you will need to go into the perl module of that
graph and modify it. I recommend upgrading Monitorix
Elias Crespin
MemTotal: 12293140 kB
MemFree: 932884 kB
Buffers: 369432 kB
Cached: 7581596 kB
And how can I view the Memory allocation in MegaBytes ?
---- Em Sex, 19 Fev 2016 19:28:56 -0200 *Elias
----
Hello,
The values that are displayed in Monitorix's Memory allocation graph for
linux systems is obtained from four fields of the /proc/meminfo file.
If you run the command
cat /proc/meminfo | grep "MemTotal\|^MemFree\|^Buffers\|^Cached"
you will see current value of what monitorix is displaying in the time
series graph for Buffers and Chached.
Finally, the Used value is calculated as MemTotal - MemFree. You might
want to see it on the command line with
echo `cat /proc/meminfo | grep "MemTotal\|^MemFree\|^Buffers\|^Cached" |
awk '{print $2}'` | awk '{print $1 - $2}'
Regards,
Hope this helps,
Elias
Jordi,
You said it's correct. I will try the option of to trust you.
Now, the problem is: How can I change the visualization in MEGABYTES ?
The monitorix graph is showing a straight line for two (and differents
and constant) usage and didn't you see anything to fix?
I really want it to be true. But firefox eats my memory for each tab. Lol
Thank you very much for dont help me
---- Em Sex, 19 Fev 2016 16:36:55 -0200 *Jordi
That graph <http://prntscr.com/a58txg> is telling you that you are using
around 3.5GB for user applications.
I'm still don't see anything to fix.
Post by vdsocks
http://prntscr.com/a58txg
There's nothing possible to try to fix it?
I'm here to make changes :)
---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Monitorix-general mailing list
https://lists.sourceforge.net/lists/listinfo/monitorix-general
Jordi Sanfeliu
2016-02-19 22:32:10 UTC
Permalink
Well, this is currently a fixed y-axis value. Once you understand how
memory is represented you shouldn't have any problem to understand it
either if it's in bytes, in KBs, or even in MBs.

Regards.
Post by vdsocks
Jordi,
You said it's correct. I will try the option of to trust you.
Now, the problem is: How can I change the visualization in MEGABYTES ?
---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
Jordi Sanfeliu
2016-02-19 18:48:02 UTC
Permalink
I'm sorry, I don't understand you when you say "is showing a straight
line for two (and differents and constant) usage".

You mean the gaps in gray color that appears in the graph?, that's
because Monitorix wasn't recorded any data. Probably because it was
stopped/killed or the system was in so heavy load that prevented run it.
Post by vdsocks
The monitorix graph is showing a straight line for two (and differents
and constant) usage and didn't you see anything to fix?
I really want it to be true. But firefox eats my memory for each tab.
Lol
Thank you very much for dont help me
---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
Jordi Sanfeliu
2016-02-19 18:34:28 UTC
Permalink
No, they are not from the same period:

- the graph <http://prntscr.com/a55bcv> shows minutes from the last
hour, and it says your system is using around 4.5GB of memory.

- the graph <http://prntscr.com/a5929z> is weekly, and it says your
system was using around 700MB of memory.

- the graph <http://prntscr.com/a591xp> is only showing some processes
but not all, so you can't use that graph to know the total of memory
being used in your system.

Regards.

---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
I've sent three graphs of the same period, just compare them.
I know the difference between free and buffered/cached/shared.
http://prntscr.com/a55bcv
http://prntscr.com/a5929z
http://prntscr.com/a591xp
---- Em Sex, 19 Fev 2016 16:15:59 -0200 JORDI
<http://www.monitorix.org/faq.html#Q114 [1]>
Regards.
Loading...