karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Lichtin <lich...@yahoo.com>
Subject Re: Re: shell:info command, memory details, infoproviders
Date Thu, 16 Nov 2017 21:30:58 GMT
Hi JB

This is my output

Karaf
   Karaf version               4.0.10
   Karaf home                  /my/path
   Karaf base                  /my/path
   OSGi Framework              org.apache.felix.framework-5.6.4

JVM
   Java Virtual Machine        Java HotSpot(TM) 64-Bit Server VM version 25.131-b11
   Version                     1.8.0_131
   Vendor                      Oracle Corporation
   Pid                         30074
   Uptime                      1 day 9 hours
   Total compile time          2 minutes
Threads
   Live threads                248
   Daemon threads              204
   Peak                        295
   Total started               423440
Memory
   Current heap size           427,616 kbytes
   Maximum heap size           3,145,728 kbytes
   Committed heap size         1,048,576 kbytes
   Pending objects             0
   Garbage collector           Name = 'G1 Young Generation', Collections = 820,
Time = 21.787 seconds
   Garbage collector           Name = 'G1 Old Generation', Collections = 0, Time
= 0.000 seconds
Classes
   Current classes loaded      21,246
   Total classes loaded        21,246
   Total classes unloaded      0
Operating system
   Name                        Linux version 2.6.32-504.16.2.el6.x86_64
   Architecture                amd64
   Processors                  8

No further details after Processors..


On 14.11.2017 15:07, Jean-Baptiste Onofré wrote:
> 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
>>
>


Mime
View raw message