Monitoring - Mendix Runtime

Last update: Download PDF Edit

Call runtime statistics monitoring action

The runtime statistics monitoring action can be called by sending a JSON request to the admin handler of the runtime. This is accomplished by sending a request to the admin port which is specified in the application configuration. The JSON request should be accompanied by a base64 encoded monitoring password (the password should also be specified in the application configuration) in the request header “X-M2EE-Authentication”. The content type of the request should be “application/json”.

To fetch runtime statistics the following JSON string should be sent in the body of the request:

"{"action" : "runtime_statistics", "params":{} }"

The result has the following format:


Requests Displays information about the request per handler. The value field shows the number of requests per handler. Since Mendix 5.3, the last_request_timestamp field shows the timestamp in milliseconds of the last handled request. If there are no requests handled, this field shows the moment the handler is registered. The empty handler represents the resource request handler, which handles images, forms etc. (only in use when no reverse proxy is used for static content handling). “file” handles file uploads and downloads, “xas/” processes CRUD actions and microflow execution calls issued by the web client and “ws/” and “ws-doc/” handle web service requests and provide web service documentation.

Sessions The number of sessions per category. Categories are “named users” (the number of user instances), “named_user_sessions (the number of non-anonymous concurrent sessions) and “anonymous_sessions” (the number of anonymous concurrent sessions).

Connectionbus Number of database requests. Distinguishes between “select”, “update”, “insert”, “delete” commands and started database transactions.

Memory Represents the number of bytes allocated to the specified memory section. See the memory usage and the tuning garbage collection pages for an explanation of the different sections.