Projects / jniThreadCPUUsage

jniThreadCPUUsage

jniThreadCPUUsage is a Java library to get the amount of user and system CPU time used per thread. This is done via JNI, which calls getrusage() on the system. getrusage() is only available on Linux 2.6.26 or later and Solaris. One useful application of this is measuring the amount of CPU time used for a servlet request. getrusage() CPU time reporting is better than using the real time clock because it measures actual CPU time used and disregards times when the thread is idle or waiting (such as when it is waiting for network I/O).

Tags
Licenses
Operating Systems
Implementation
Screenshot

Project Spotlight

OpenStack4j

A Fluent OpenStack client API for Java.

Screenshot

Project Spotlight

TurnKey TWiki Appliance

A TWiki appliance that is easy to use and lightweight.