Discussion:
[rrd-users] Memory usage
(too old to reply)
Christian Brechbuehler
2014-09-17 19:39:01 UTC
Permalink
Hello list,

I just started using RRD to write some perl statistics scripts - so
definitely a newbie. When testing the scripts i found a surprising thing:
As soon as I include the RRDs module (just 'use RRDs;', no actual
usage), the virtual memory usage of the scripts goes up from ~20K to
125MB. Is that normal or am I doing something wrong?

Regards
Christian
Tobias Oetiker
2014-09-17 20:07:11 UTC
Permalink
Hi Christian,
Post by Christian Brechbuehler
Hello list,
I just started using RRD to write some perl statistics scripts - so definitely
As soon as I include the RRDs module (just 'use RRDs;', no actual usage), the
virtual memory usage of the scripts goes up from ~20K to 125MB. Is that normal
or am I doing something wrong?
there are quite a lot of libraries that get loaded with the rrdtool
bindings ...

so that might well be

tobi
Post by Christian Brechbuehler
Regards
Christian
_______________________________________________
rrd-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch ***@oetiker.ch +41 62 775 9902
Maxwell Carey
2014-09-17 20:11:17 UTC
Permalink
Any time you `use` a module in Perl, you are loading code into memory. So
yes, memory usage will go up. See the documentation
<http://perldoc.perl.org/functions/use.html> for details.
Post by Christian Brechbuehler
Hello list,
I just started using RRD to write some perl statistics scripts - so
As soon as I include the RRDs module (just 'use RRDs;', no actual usage),
the virtual memory usage of the scripts goes up from ~20K to 125MB. Is that
normal or am I doing something wrong?
Regards
Christian
_______________________________________________
rrd-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Continue reading on narkive:
Loading...