Health API
Runtime information about the engine process: when it booted, uptime, memory, CPU, threads, garbage collection, disk and the database pool.
GET /api/healthThis endpoint is restricted to BSH_ADMIN users.
In the SDK, use bshEngine.health.load().
The engine dashboard has a built-in Runtime Health view that visualizes this API.
Response
Sample
{
"data": [
{
"status": "UP",
"version": "0.0.7",
"environment": "DEV",
"timestamp": {
"$date": "2026-11-28T20:30:00"
},
"boot": {
"bootedAt": {
"$date": "2026-11-28T18:02:11.412"
},
"readyAt": {
"$date": "2026-11-28T18:02:19.870"
},
"startupMs": 8458,
"uptimeMs": 8869000
},
"process": {
"pid": 1,
"hostname": "bshengine-7f9c",
"timezone": "UTC",
"containerized": true
},
"jvm": {
"name": "OpenJDK 64-Bit Server VM",
"vendor": "Eclipse Adoptium",
"version": "21.0.5+11",
"javaVersion": "21.0.5"
},
"os": {
"name": "Linux",
"arch": "amd64",
"version": "6.8.0",
"availableProcessors": 4,
"systemLoadAverage": 0.42,
"processCpuLoad": 0.03,
"systemCpuLoad": 0.11,
"totalMemory": 8589934592,
"freeMemory": 3221225472
},
"memory": {
"heap": {
"used": 182452224,
"committed": 268435456,
"max": 4294967296
},
"nonHeap": {
"used": 141557760,
"committed": 148897792
}
},
"threads": {
"live": 42,
"peak": 47,
"daemon": 31,
"totalStarted": 118
},
"classes": {
"loaded": 21450,
"totalLoaded": 21502,
"unloaded": 52
},
"gc": [
{
"name": "G1 Young Generation",
"count": 37,
"timeMs": 412
},
{
"name": "G1 Old Generation",
"count": 0,
"timeMs": 0
}
],
"disk": {
"total": 107374182400,
"free": 64424509440,
"usable": 59055800320
},
"database": {
"poolName": "HikariPool-1",
"maximumPoolSize": 10,
"active": 1,
"idle": 9,
"total": 10,
"waiting": 0
}
}
],
"code": 200,
"status": "OK",
"message": "Engine is up",
"meta": {
"type": "Engine Health"
}
}Last updated on