StatisticsResource Resource

Simple server statistics.

GET /statistics

Get basic server statistics.

Response Body
media type data type description
application/json StatisticsDto (JSON) basic server statistics

Example

Request
GET /statistics
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "serverStartTimeMs" : 12345,
  "uptime" : 12345,
  "loadingSuperTask" : {
    "id" : "...",
    "name" : "...",
    "totalWork" : 12345,
    "workUnit" : "...",
    "worked" : 12345,
    "done" : true,
    "cancelled" : true,
    "startTimeMs" : 12345,
    "runningDurationMs" : 12345
  },
  "totalmoleculecount" : 12345,
  "totaldescriptorcount" : 12345,
  "version" : "..."
}
                
              

GET /statistics/get-total-sizeinfo

Experimental endpoint to estimate allocated size of all of the resources. Please note that the size estimations are intended to reflect the allocations of the exposed REST resources. Other allocations made by the web server are not considered. Please note that this endpoint is under construction, use with caution: execution might fail and execution might have significant memory/cpu impact. The availability/functionality of this endpoint might change in any of the subsequent releases.

Request Parameters
name type description default constraints
dc query Duplicate check on the large storages. false boolean
method query Size info method to use.   "CALCULATED" or "JAVAAGENT"
Response Body
media type data type description
application/json SizeInfoDto (JSON) Size info description

Example

Request
GET /statistics/get-total-sizeinfo
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "size" : 12345,
  "details" : [ {
    "size" : 12345,
    "name" : "..."
  }, {
    "size" : 12345,
    "name" : "..."
  } ]
}
                
              

GET /statistics/loading-status

Loading status of the server.

Response Body
media type data type description
application/json LoadingStatusDto (JSON) Detailed loading status

Example

Request
GET /statistics/loading-status
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "superTask" : {
    "id" : "...",
    "name" : "...",
    "totalWork" : 12345,
    "workUnit" : "...",
    "worked" : 12345,
    "done" : true,
    "cancelled" : true,
    "startTimeMs" : 12345,
    "runningDurationMs" : 12345
  },
  "tasks" : [ {
    "id" : "...",
    "name" : "...",
    "totalWork" : 12345,
    "workUnit" : "...",
    "worked" : 12345,
    "done" : true,
    "cancelled" : true,
    "startTimeMs" : 12345,
    "runningDurationMs" : 12345
  }, {
    "id" : "...",
    "name" : "...",
    "totalWork" : 12345,
    "workUnit" : "...",
    "worked" : 12345,
    "done" : true,
    "cancelled" : true,
    "startTimeMs" : 12345,
    "runningDurationMs" : 12345
  } ],
  "serverStartTimeMs" : 12345
}
                
              

GET /statistics/profiling-snapshot

Create a profiling snapshot.

Response Body
media type data type description
application/json ProfSnapshotDto (JSON) Profiling snapshot created when processing this request.

Example

Request
GET /statistics/profiling-snapshot
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "timestamp" : 12345,
  "heapMemoryUsed" : 12345,
  "heapMemoryUsage" : {
    "committed" : 12345,
    "init" : 12345,
    "max" : 12345,
    "used" : 12345,
    "asString" : "..."
  },
  "nonHeapMemoryUsed" : 12345,
  "nonHeapMemoryUsage" : {
    "committed" : 12345,
    "init" : 12345,
    "max" : 12345,
    "used" : 12345,
    "asString" : "..."
  },
  "objectPendingFinalizationCount" : 12345,
  "garbageCollectors" : [ {
    "name" : "...",
    "memoryPoolNames" : [ "...", "..." ],
    "collectionCount" : 12345,
    "collectionTime" : 12345
  }, {
    "name" : "...",
    "memoryPoolNames" : [ "...", "..." ],
    "collectionCount" : 12345,
    "collectionTime" : 12345
  } ],
  "totalCollectionCount" : 12345,
  "totalCollectionTime" : 12345,
  "totalCompilationTime" : 12345,
  "memoryPools" : [ {
    "name" : "...",
    "type" : "...",
    "usageUsed" : 12345,
    "collectionUsageUsed" : 12345,
    "collectionUsage" : {
      "committed" : 12345,
      "init" : 12345,
      "max" : 12345,
      "used" : 12345,
      "asString" : "..."
    },
    "usage" : {
      "committed" : 12345,
      "init" : 12345,
      "max" : 12345,
      "used" : 12345,
      "asString" : "..."
    }
  }, {
    "name" : "...",
    "type" : "...",
    "usageUsed" : 12345,
    "collectionUsageUsed" : 12345,
    "collectionUsage" : {
      "committed" : 12345,
      "init" : 12345,
      "max" : 12345,
      "used" : 12345,
      "asString" : "..."
    },
    "usage" : {
      "committed" : 12345,
      "init" : 12345,
      "max" : 12345,
      "used" : 12345,
      "asString" : "..."
    }
  } ],
  "systemLoadAverage" : 12345.0
}