Garbage Collectors

Microsoft.JEE.GarbageCollector.Discovery (Discovery)

Hiermit werden Garbage Collectors für einen angegebenen Anwendungsserver ermittelt.

Knowledge Base article:

Zusammenfassung

Bei der Garbage Collector-Ermittlung werden die einer Anwendungsserverkonfiguration zugeordneten Garbage Collectors ermittelt.

Die Ermittlung erfolgt über einen Stats-Aufruf für ein Servlet, bei dem die Abfrage "/Stats/GC" verwendet wird.

Element properties:

TargetMicrosoft.JEE.ApplicationServer.Monitored.Instance
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.JEE.Discovery.StatsWithFilter.DataSource Default

Source Code:

<Discovery ID="Microsoft.JEE.GarbageCollector.Discovery" Target="Microsoft.JEE.ApplicationServer.Monitored.Instance" Remotable="true" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.JEE.GarbageCollector"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.JEE.Discovery.StatsWithFilter.DataSource">
<ApplicationServerGuid>$Target/Host/Property[Type="Microsoft.JEE.ApplicationServer.Instance"]/Id$</ApplicationServerGuid>
<ComputerName>$Target/Property[Type="Microsoft.JEE.ApplicationServer.Monitored.Instance"]/HostName$</ComputerName>
<Protocol>$Target/Property[Type="Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Protocol$</Protocol>
<Port>$Target/Property[Type="Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Port$</Port>
<BaseURL/>
<URLSuffix/>
<ReturnMultiplePropertyBags>true</ReturnMultiplePropertyBags>
<UseAttributesInKeysOfReturnedPropertyBags>false</UseAttributesInKeysOfReturnedPropertyBags>
<!-- Interval currently set to four hours -->
<IntervalSeconds>14400</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<Filter>/Stats/GC/Properties/GCName</Filter>
<ClassId>$MPElement[Name="Microsoft.JEE.GarbageCollector"]$</ClassId>
<InstanceSettings>
<Settings>
<!-- The following properties are defined for the Garbage Collectors's parent classes -->
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Data/Property[@Name='/Stats/GC/Properties/GCName']$</Value>
</Setting>
<!-- These properties are for the Application Server -->
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.ApplicationServer.Instance"]/Id$</Name>
<Value>$Target/Host/Property[Type="Microsoft.JEE.ApplicationServer.Instance"]/Id$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Name>
<Value>$Target/Host/Property[Type="Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Value>
</Setting>
<!-- The following properties are defined for the Garbage Collector-->
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.GarbageCollector"]/GarbageCollectorName$</Name>
<Value>$Data/Property[@Name='/Stats/GC/Properties/GCName']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>