The Process Monitor is a Java application that displays information about the top 10 processes sorted by CPU usage. It uses the OSHI library to gather system information and display details such as process ID, type, CPU usage, memory usage, I/O usage, and whether the process is CPU-bound or I/O-bound.
- Java 21 or higher
- Maven 3.6.0 or higher
The project uses the following dependencies:
- OSHI (Operating System and Hardware Information)
- SLF4J (Simple Logging Facade for Java)
- Log4j (Logging framework)
These dependencies are defined in the pom.xml
file.
-
Clone the repository:
git clone https://github.com/yourusername/process-monitor.git cd process-monitor
-
Build the project using Maven:
mvn clean install
You can download the file from this repository and run it from your PC or Mac locally.
- Go to green button that says "Code"
- "Download Zip"
- Extract and run
ProcessMonitor.java
on a prefered IDE.