Does anybody know a way i can get Perl to read the Total/In Use RAM Counters on a 64Bit Windows Server 2k3 with 8Gb+ Ram???
If you know of a Windows API function that returns the values you want, then you could access that function from perl using XS or Inline::C.
Obviously, on a 32-bit perl, such an XSub could not return a 'uv' (long) value, as 'uvs' aren't guaranteed to be large enough to store the value being returned. But you could have the XSub return the value to perl as an 'nv' (double) or a 'pv' (string).
On your 64-bit perl, the XSub could simply return the value as a 'uv' (since it uses 64-bit uvs).
I would expect that such a Windows API function does exist ... presumably the modules in question are accessing that Windows API function with Win32::API. Do you know which Windows API function(s) you need to access ?
Cheers, Rob | [reply] |
Rob,
I was trying to use win32::SystemInfo, so dont know if you can pick the info out of that???
Source code is here: http://search.cpan.org/src/CJOHNSTON/Win32-SystemInfo-0.10/SystemInfo.pm
Any ideas?
Cheers
Gavin
| [reply] |
Not knowing much and caring less, about Windoze, would parsing output from the perfmon command (if it exists on your host) be any use ??
Maybe it has a command mode that reports memory only ... or might that be a bit too useful ;-)
I don't have a Windoze m/c on which to try it ...
A user level that continues to overstate my experience :-))
| [reply] [d/l] |