System

On this page

System

The System page shows the machine. Memory, garbage collection, threads and JVM flags are on the JVM page.

The System page is the machine under BoxLang: what it is, what it is made of and how busy it is. It updates live and keeps the last 15 minutes of CPU, load, memory, disk and network in small charts. It works on every operating system the JVM runs on. The JVM itself (heap, garbage collection, memory pools, classes) is on the JVM page.

The System page: needs attention, live tiles with graphs, a 15 minute chart and Locations

BlockContent
MachineThe type (physical, virtual machine or container) with the cloud when it can be told ("Virtual machine, AWS EC2 m5.large"), the host name, the operating system with version, kernel and architecture, the CPU model and count, memory, swap and the time zone.
ContainerDocker, Kubernetes, Podman or LXC, with the pod and namespace on Kubernetes, the CPU limit and the memory limit next to what the machine has. The node, the image and the restart count are shown only when the deployment mounts them as files (see below).
UptimeThe machine uptime and the BoxLang uptime.
LiveCPU of the machine and of BoxLang (and against the container limit, with the time the container was throttled), load average per core, memory against the machine or the container limit, swap, disk I/O in bytes per second, network in bytes per second and open files against the limit.
HistoryThe same numbers for the last 15 minutes, one point every 10 seconds, kept in memory by a small sampler. It starts and stops with the module and never delays a request.
Storage that mattersLogs, the BxLens store, the BoxLang home, temp and the working directory: the volume of each, its size, used and free space and a status (amber at volumes.warnPct, red at volumes.critPct). A folder BxLens must write to that is read only or on a full volume is flagged. Free for everyone.
Other volumesEvery other mount with a size, the busiest first. Kernel and in-memory file systems (tmpfs, overlay, devtmpfs, squashfs, cgroup and similar) are listed here only and never raise an alert.

The tabs

The page has six tabs. Overview is the page above (the machine, the live tiles, one chart with a metric and a range picker, the storage). The other five show the detail of one part of the machine. Each tab shows "Not reported on " for a group the system cannot give.

TabContent
CPUEvery core as a bar with its busy percent, the frequency against the maximum, the temperature of the CPU package, context switches and interrupts per second.
MemoryUsed, file cache and available memory, swap in use against its size, swap pages in and out per second and page faults per second.
DisksEach physical disk with its kind (SSD or hard disk), where it is mounted, how busy it is, bytes read and written per second and the average queue.
NetworkEach interface with its speed, link state, bytes in and out per second, errors and drops since boot. TCP connections (established, TIME_WAIT, listening) and the share of segments retransmitted, the DNS servers and the default gateway.
ProcessesThe top 10 or 20 processes by CPU or by memory, refreshed every 10 seconds: name, pid, CPU as a share of the whole machine, memory, threads and, where the system allows it, open files and disk bytes per second. The row of the BoxLang JVM is tagged "this server".

Processes show names only. The command line and the environment of a process can hold passwords and tokens, so BxLens never reads them. On Linux the process list comes from /proc/<pid>/stat (name, CPU time, threads, resident memory); for the processes of the two top lists only, statm-sized memory, the count of fd entries and io are read too. Another user's fd and io cannot be read without root, so those columns are "not reported" for them, which is normal. A pass reads one small file per process (at most 8000) and never blocks a request.

CPU: every core

Disks: busy, read, write and queue per physical disk

Network: interfaces and TCP states

Processes: the top 10 or 20 by CPU or memory

Needs attention

The top of Overview lists what is wrong right now, in the same shape as the other pages (attention: [ { level, id, title, text, link } ], link is the tab that shows it). The block is hidden when nothing is wrong, and shows "Nothing needs attention" when everything was read and is fine. A value the system does not report never raises an item.

RuleLevelWhen
A location is nearly fullwarn, critThe storage that matters is over volumes.warnPct or volumes.critPct
Loadwarn, critThe 5 minute load per core is over 1.0 (warn) or 1.5 (crit)
Low memorywarn, critMemory a program can still get is under 10% (warn) or 5% (crit) of the total
SwappingwarnSwap is in use and about a page a second or more moves in or out
Container throttledwarnThe container CPU limit held processes back in the last 30 seconds
One core is pinnedwarnOne core is at 95% or more for 30 seconds while the whole machine is under 50%
A hot processwarnA process uses more than 80% of the whole machine for 30 seconds
A saturated diskwarnA disk is busy 90% of the time or more with at least one request waiting
Interface errorswarnErrors or drops of an interface grew over the last minute
TIME_WAITwarnMore than 10000 TCP connections wait to close

Each rule is a pure function in SystemAttention with its thresholds in one block of constants, and each has a unit test.

Where the numbers come from

Lens never starts an external program (no uptime, wmic or sysctl). On Linux it reads /proc (cpuinfo, meminfo, vmstat, uptime, loadavg, stat, diskstats, mounts, net/dev, net/tcp, net/tcp6, net/snmp, net/route, self/limits, self/fd, self/cgroup, and for the processes <pid>/stat, fd and io), /sys (class/dmi/id for virtual machine and cloud detection, class/net, block/*/queue/rotational, thermal zones and CPU frequency) and the cgroup files of version 1 and version 2 (limits, memory in use, throttling, I/O). Nothing needs a library on Linux.

On macOS and Windows the CPU cores, memory, disks, network and processes come from OSHI (MIT licence), bundled in the module and used through one class, OshiBridge. OSHI does start commands (sysctl, ps, netstat, sw_vers, route and others) in some of its code, so BxLens calls only what has no path to a command in the bundled version, found by following the compiled code of every call down to ExecutingCommand and ProcessBuilder:

PartWindowsmacOS
CPU ticks per core, frequency, context switches, interrupts, temperatureOSHIOSHI
Memory, swap in use and its page countersOSHIOSHI
Disks and network interfacesOSHIOSHI
TCP countsOSHI (connection table of the system)not reported
ProcessesOSHI (name, pid, CPU time, memory, threads, handles, I/O bytes)the JDK (name, pid, CPU time); memory, threads, files and I/O not reported
DNS servers and gatewaynot reportednot reported

The macOS operating system object of OSHI is not used: its constructor runs sw_vers on some version strings and its static initializer falls back to sysctl when a native call fails. If OSHI cannot load for any reason (a blocked native library, a restricted environment), the page shows "Not reported on " and everything else works. The macOS and Windows paths were checked in the bytecode and by unit tests on Linux; they have not been run on a Mac or a Windows machine by the authors of this change. To exercise the OSHI path on Linux, start the JVM with -Dbxlens.host.oshi=force (see Configuration); that mode is restricted to memory, disks, interfaces and the JDK process list.

A value Lens cannot read is shown as "Not reported" and is never guessed or shown as zero. The unsupported list of the answer names the groups the system cannot give:

GroupLinuxmacOSWindows
CPU, memory, swap, cores, process CPUyesyesyes
Load averageyesyesnot reported
Machine uptime and boot timeyesnot reportednot reported
Physical, virtual machine, cloudyes (DMI)not reportednot reported
CPU modelyesnot reportednot reported
Disk I/O and network speedyesnot reportednot reported
Open filesyesyesnot reported
Container limits and throttlingyesnot applicablenot applicable

Cloud detection uses the DMI texts of the machine: AWS (with the instance type), Google Cloud, Azure, DigitalOcean and Hetzner, and a few others as "other". The instance type of the other clouds needs their metadata service, which Lens does not call.

Inside a container, memory in use is counted the way docker stats does (usage without the cache the kernel can drop) and disk I/O is the container's own. The CPU limit is the quota of the container over its period, found on the container or on a parent group such as the pod. "Throttled" is the time the container wanted to run and could not, in the last sampling step.

How the runtime is detected

One class decides, for the System, Environment and Web server pages, from markers read in the sources of the servers:

RuntimeMarkers
MiniServerThe main class ortus.boxlang.web.MiniServer or a jar named *miniserver*.jar, or that class on the class path. The version is in /META-INF/boxlang-miniserver/version.properties.
CommandBoxA server started by CommandBox runs runwar.Start (the Runwar jar), so the main class or the class runwar.Server is the marker. The version is the COMMANDBOX_VERSION variable CommandBox sets for the process (only that one variable is read, its value is a version) and the Runwar version is in runwar/version.properties. The box shell itself is cliloader.LoaderCLIMain with the property cfml.cli.home.
Servlet containercatalina.base or catalina.home (Tomcat), jetty.home or jetty.base (Jetty), jboss.home.dir (WildFly), wlp.install.dir (Liberty), or the main class of one of them.
BoxLang command lineThe main class BoxRunner, or a jar named boxlang*.jar.
UnknownNothing above matched.

A container is found by /.dockerenv, /run/.containerenv, the cgroup text, the mounts (a private cgroup namespace hides the path, but the mount of /docker/containers/ or /kubelet/pods/ stays) and the presence of the variable KUBERNETES_SERVICE_HOST. Only the presence is checked, no environment value is read or shown.

Kubernetes names

The pod is the host name and the namespace is the file the kubelet mounts at /var/run/secrets/kubernetes.io/serviceaccount/namespace. Lens never opens the token next to it. The node, the image and the restart count appear only when your deployment exposes them with a downward API volume at /etc/podinfo (files nodename, image and restarts); otherwise they are not reported.

The answer

GET system keeps every key it had (cpu, ram, memory, gc, threads, classes, runtime, disks, storage with volumes and folders, lens, at) and adds machine, live, history, unsupported and, inside storage, matters and other. The tabs add, each only when the system reports it:

KeyContent
cpuDetailcores: [ { id, pct } ], frequencyMhz, maxFrequencyMhz, temperatureC, contextSwitchesPerSec, interruptsPerSec
memoryDetailusedBytes, cacheBytes, availableBytes, swapUsedBytes, swapTotalBytes, swapInPagesPerSec, swapOutPagesPerSec, pageFaultsPerSec
disks[ { name, kind: ssd, hdd or unknown, mounts, busyPct, readBps, writeBps, queue } ]
networkinterfaces: [ { name, speedBps, up, inBps, outBps, errors, drops } ], tcp: { established, timeWait, listening, retransmitPct }, dns, gateway
processes{ at, topCpu, topMem, total }, each list up to 20 rows { pid, name, cpuPct, memPct, threads, openFiles, ioReadBps, ioWriteBps, self }
historythe old series plus swapUsed, now one hour (360 samples, one every 10 seconds); the 15 minute view takes the last 90
attentionthe list described above
unsupportedalso cores, cpuFrequency, temperature, contextSwitches, memoryDetail, swapRates, pageFaults, disks, network, tcp, processes, processMemory, processThreads, processFiles, processIo when the system leaves them out

Every number that cannot be read is null, never zero. The same document is saved with the health snapshot, without processes and the per core readings (size) and with the last 15 minutes of history, so the page works for another server in a cluster and shows the tabs as "not available for other servers".

Heap, garbage collection, Run GC, heap dumps, threads and deadlocks moved to the JVM page. Blocked chains, same-stack groups, the pool summary and thread snapshots are described under Threads there. Turn the System page off with collectors.system.enabled (or tabs.hide).

Edit this page Download Markdown Last updated Nov 26, 2026, 8:34:30 AM Report an issue