Hi Martin,
1. I just tested on Linux with 4.1.2, and it works for me.
What JVM are you using ?
2. It mimics what we have for "dumper" (in the dump command). It's a way to
extend the info provided. So, some users/custom distributions can use this feature.
Regards
JB
On 11/14/2017 03:03 PM, Martin Lichtin wrote:
Wanted to ask two things about shell:info (4.0.10)
a) OS Memory details:
printValue("Total physical memory", maxNameLen,
printSizeInKb(getSunOsValueAsLong(os, "getTotalPhysicalMemorySize")));
printValue("Free physical memory", maxNameLen,
printSizeInKb(getSunOsValueAsLong(os, "getFreePhysicalMemorySize")));
printValue("Committed virtual memory", maxNameLen,
printSizeInKb(getSunOsValueAsLong(os, "getCommittedVirtualMemorySize")));
printValue("Total swap space", maxNameLen,
printSizeInKb(getSunOsValueAsLong(os, "getTotalSwapSpaceSize")));
printValue("Free swap space", maxNameLen,
printSizeInKb(getSunOsValueAsLong(os, "getFreeSwapSpaceSize")));
Above code does not currently work under Linux.
Could work if we would use com.sun.management.OperatingSystemMXBean instead, I
guess?
b) InfoProviders
if (infoProviders != null) {
// dump all properties to Map, KARAF-425
not seeing any output from any provider, is this feature still in use or could
it be dismantled?
- Martin
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com