The properties of a Sampler component determine which properties of which services are to be sampled, how often they should be sampled, and to whom the samples should be sent. You can use the following properties to configure a Sampler:

sampleSources=\
     /atg/dynamo/server/HttpServer.handledRequestCount,\
     /atg/dynamo/server/HttpServer.averageRequestHandlingTime,\
     /atg/dynamo/server/HttpServer.activeHandlerCount
scheduler=/atg/dynamo/service/Scheduler
schedule=every 10 seconds
sampleListeners=\
        MemorySampler,\
        SampleGrapher

Dynamo comes with a Sampler component at /atg/dynamo/service/Sampler. It monitors various aspects of the Dynamo HTTP server, including throughput, latency, and simultaneous connections. It is configured as follows:

$class=atg.service.statistics.Sampler
scheduler=Scheduler
schedule=every 60 sec
sampleSources=\
        ../../../VMSystem.freeMemory,\
        ../servlet/sessiontracking/SessionManager.residentSessionCount,\
        ../servlet/sessiontracking/SessionManager.createdSessionCount,\
        ../servlet/pipeline/DynamoHandler.handledRequestCount,\
        ../servlet/pipeline/DynamoHandler.averageRequestHandlingTime,\
        ../servlet/pipeline/DynamoHandler.totalRequestHandlingTime,\
        ../server/DrpServer.activeHandlerCount,\
        ../server/HttpServer.activeHandlerCount

sampleListeners=\
        LogSampler

You can modify this component’s configuration, or define your own Sampler component.

 
loading table of contents...