mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
feat(admin): flag a heap limit below 700 MB with the setting to raise
The support report and the system status now say in one sentence when the heap is the 1 GB-container size and point at APP_MEMORY_LIMIT. Refs #1239
This commit is contained in:
1 parent
ac047854ba
commit
1d7077286f
16 files changed
+147
-7
No files matched your search
@@ -61,6 +61,8 @@ export interface SystemStatus {
|
||||
buildTime: string;
|
||||
startTime: string;
|
||||
database: string;
|
||||
/** The process's heap ceiling; `low` when it is below what a long-used account needs. */
|
||||
memory: { heapLimitMb: number; low: boolean };
|
||||
worker: WorkerStatus;
|
||||
/**
|
||||
* Queues whose jobs exhausted their retries recently. `null` means the
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
Key,
|
||||
Loader2,
|
||||
Map,
|
||||
MemoryStick,
|
||||
Server,
|
||||
Users,
|
||||
} from "lucide-react";
|
||||
@@ -156,6 +157,16 @@ export function SystemStatusSection() {
|
||||
}
|
||||
tone={status.database === "connected" ? "success" : "destructive"}
|
||||
/>
|
||||
<StatusItem
|
||||
icon={MemoryStick}
|
||||
label={t("admin.heapLimitLabel")}
|
||||
value={
|
||||
status.memory.low
|
||||
? t("admin.heapLimitLow", { mb: status.memory.heapLimitMb })
|
||||
: t("admin.heapLimitValue", { mb: status.memory.heapLimitMb })
|
||||
}
|
||||
tone={status.memory.low ? "warning" : undefined}
|
||||
/>
|
||||
<StatusItem
|
||||
icon={Clock}
|
||||
label={t("admin.startedAt")}
|
||||
|
||||
Reference in new issue
Block a user