oshi/oshi
Native Operating System and Hardware Information observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 12
- age_days: 5318
- days_rel: 10
- days_push: 8
- n_releases_24m: 32
Adoption not part of the score
5260 stars · 918 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
OSHI is a free, cross-platform Java library for retrieving native operating system and hardware information using JNA or the JDK Foreign Function & Memory API, with no additional native library installation required. It exposes a unified API for OS version, processes, CPU and memory usage, disks, filesystems, network interfaces, sensors, batteries, USB devices, GPUs, and more across Windows, macOS, Linux, and UNIX platforms.
Use cases
- get cpu and memory usage in java
- list running processes with cpu and memory stats
- read disk and partition information cross-platform
- monitor system temperature and fan speeds
- detect operating system version and hardware details
- query network interface bandwidth and stats
- build a java system monitoring dashboard
- get battery and usb device info from java
When to choose
- you need cross-platform system/hardware metrics from Java without native dependencies
- you want a single unified API covering Windows, macOS, Linux, and BSD/UNIX
- you need detailed process, filesystem, network, or sensor data for monitoring tools
When to avoid
- you are not working on the JVM (use psutil, sigar, or OS-native tools instead)
- you only need metrics for one OS and prefer a lighter native-specific solution
- you need real-time low-overhead telemetry rather than on-demand polling
Facets
library · maturity active
monitoring developer-tools sdk operating-systems developer-tools monitoring cross-platform jvm cross-platform windows bsd jna ffm system-information hardware-monitoring cpu-usage memory-usage disk-utilization process-list sensors metrics macos linux
5 sources
- readme: https://github.com/oshi/oshi · fetched 2026-08-28 · 872a79b72eca
- homepage: https://oshi.ooo · fetched 2026-08-29 · 6b849410cff9
- site_page: https://www.oshi.ooo/oshi-core/apidocs · fetched 2026-08-29 · 783f55d33b14
- site_page: https://www.oshi.ooo/oshi-core-ffm/apidocs · fetched 2026-08-29 · c55d1b32cd0c
- site_page: https://www.oshi.ooo/oshi-core/apidocs/com.github.oshi.common/oshi/util/GlobalConfig.html · fetched 2026-08-29 · 1b3bfe9697b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| oshi/oshi | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem