Comprehensive system monitoring extension providing CPU, memory, disk, network, and OS metrics using the OSHI library.
- CPU Metrics - Usage, core count, frequency, temperature
- Memory Metrics - RAM, swap, virtual memory statistics
- Disk Metrics - Partition space, I/O statistics
- Network Metrics - Interface information and traffic statistics
- OS Information - Version, uptime, boot time
- Process Information - List running processes with CPU/memory usage
- Backward Compatibility - Includes GetCPUUsage() for compatibility when removed from core
GetSystemInfo() // Complete system snapshot
GetOSVersion() // Operating system details
GetSystemUptime() // System uptime in millisecondsGetCPUUsage() // CPU usage percentage (backward compatible)
GetProcessorInfo() // Processor details (cores, speed, vendor)GetMemoryUsage() // RAM usage (total, used, available, percent)
GetMemoryMetrics() // Detailed memory info (including swap)GetDiskUsage(path) // Disk space for mount point
GetDiskMetrics() // All partitions with I/O statisticsGetNetworkInfo() // Network interfaces and traffic statisticsGetProcessList() // All running processes
GetProcessInfo(pid) // Details for specific processmvn packageThis generates the extension file (.lex) in the target directory.
- Build the extension using Maven
- In the Lucee Admin Console, go to Extensions > Install
- Upload the generated
.lexfile
- Name: System Monitoring Extension
- Version: 1.0.0.0-RC
- Repository: https://github.com/lucee/extension-sysmon
- License: LGPL 2.1
The extension uses:
- OSHI (6.6.1) - Operating System and Hardware Information library
- Java 17+
- Maven for building
See the Lucee Maven-based Extensions Guide for more details.