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
Accept: application/json

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

                
{
  "loadtime" : 12345,
  "uptime" : 12345,
  "totalmoleculecount" : 12345,
  "totaldescriptorcount" : 12345,
  "version" : "..."
}
                
              

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
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
}
                
              

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
Accept: application/json

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

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