Object ::rrd::plugin::memsize (public)
::rrd::Plugin ::rrd::plugin::memsize
Defined in packages/rrd-tool/tcl/rrd-procs.tcl
- Testcases:
- No testcase defined.
Source code: namespace eval ::rrd::plugin {} ::nsf::object::alloc ::rrd::Plugin ::rrd::plugin::memsize {set :baseResolution 60 set :durations { "1 min" "1 day" "10 min" "8 days" "2 hours" "45 days" "1 day" "2 years" } set :name memsize set :rrdPath /var/www/openacs.org/www/rrd/localhost.localdomain_memsize set :rrdRoot /var/www/openacs.org/www/rrd/localhost.localdomain set :type GAUGE set :vars { rss vsize }} ::rrd::plugin::memsize public object method update {} { set sizes [exec -ignorestderr /bin/ps -o vsize,rss [pid]] :updateDataSource vsize [expr {[lindex $sizes end-1]*1024}] :updateDataSource rss [expr {[lindex $sizes end]*1024}] } ::nsf::object::alloc ::rrd::DataSource ::rrd::plugin::memsize::rss {set :baseResolution 60 set :name rss set :rrdFile /var/www/openacs.org/www/rrd/localhost.localdomain_memsize_rss-d.rrd set :type GAUGE} ::nsf::object::alloc ::rrd::DataSource ::rrd::plugin::memsize::vsize {set :baseResolution 60 set :name vsize set :rrdFile /var/www/openacs.org/www/rrd/localhost.localdomain_memsize_vsize-d.rrd set :type GAUGE}XQL Not present: Generic, PostgreSQL, Oracle