I made a little progress on this myself and wanted to share my findings.

There is an undocumented class, MgServerAdmin, which can produce some of the
desired information for monitoring server status and locating bottlenecks.
The header file for this class is located here:

https://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/MapGuideCommon/Services/ServerAdmin.h

Here is a PHP code snippet that instantiates the object and displays
pertinent server statistics in an HTML table:

_________________________

$userInfo = new MgUserInformation();
$userInfo->SetMgUsernamePassword( $adminID, $adminPassword );

$serverAdmin = new MgServerAdmin();
$serverAdmin->Open($userInfo);

$siteInformationProperties = $serverAdmin->GetInformationProperties();
echo '<table>';
for($i=0;$i<$siteInformationProperties->GetCount();$i++)
{       $property = $siteInformationProperties->GetItem($i);
        $name = $property->GetName();
        $propertyType = $property->GetPropertyType();
        $propertyValue = $property->GetValue();
        echo
"<tr><td>$name</td><td>$propertyValue</td></tr>";
}
echo '</table>';
_________________________

Critical properties of this data are listed below, and can be used to
monitor Mapguide's performance and resource limitations. In particular, the
"TotalConnectons" appears to correlate with the number of sessions, growing
as new sessions are created and reducing as they are destroyed.

CpuUtilization
Uptime
TotalPhysicalMemory
AvailablePhysicalMemory
TotalVirtualMemory
AvailableVirtualMemory
TotalOperationTime
AverageOperationTime
TotalReceivedOperations
TotalProcessedOperations
TotalConnections
TotalActiveConnections
WorkingSet
VirtualMemory
CacheSize
CacheDroppedEntries



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to