tkroman
tkroman

Reputation: 4798

Is it possible to monitor (detect, keep track etc) basic types of I/O activity inside the JVM?

Is there any API or library that allows user to create some kind of report about actions performed by a program running inside a JVM instance? What I mean is something like JVM/system calls interception with further classification according to the type of activity, for example, DiskWrite, DiskRead, NetworkWrite, NetworkRead, Wait (is that really an activity?) and so on. Detecting periods of intensive CPU usage etc. would be useful too. If some amount of writing native code is required, detailed answers covering the topic are appreciated as well.

Upvotes: 3

Views: 94

Answers (1)

ursa
ursa

Reputation: 4591

Use SIGAR API by Hyperic. It provides Memory, CPU, Disk, Load-Average, Network Interface info and metrics, Process Table information, Route info, etc.

And all this staff under Apache License, Version 2.0.

Upvotes: 1

Related Questions