A java usage monitor..


FX Le Louarn (lelouarn@crt.umontreal.ca)
Mon, 17 May 1999 11:58:17 -0400


Hi everyone, This is to let you know that I finished developing a resource usage monitor for the Java 2 platform. I "packaged" it up a bit so it could be used by others and it is available at (1). It works for Solaris and Linux. Source code comes with the package. Jum can monitor CPU and memory allocation for individual (java) Threads. Thread (un)registration is done by catching JVMPI (2) events thrown by the Java 2 JVM. Memory usage is evaluated by catching events describing object (de)allocation. Finally, CPU accounting is possible thanks to the proc filesystem. There are of course some problems, which are briefly described on the web page. Jum is far from being bullet proof. It was a way for me to have a simple resource monitor and to see to what extent the JVM is 'hookable'... Jum's api was inspired by JRes, of course :) Hope it helps someone. (1) http://www.iro.umontreal.ca/~lelouarn/jum.html (2) http://www.javasoft.com/products/jdk/1.2/docs/guide/jvmpi/jvmpi.html -- François-Xavier Le Louarn Centre de Recherche sur les Transports Université de Montréal Tout le monde ment. Bien mentir, voilà ce qu'il faut. -- Les justes, A. Camus ---------------------------------------------------------------------------- To unsubscribe (or other requests) mailto:majordomo@media.mit.edu List archives, FAQ, etc. http://gee.cs.oswego.edu/dl/javares/



This archive was generated by hypermail 2.0b3 on Mon May 17 1999 - 13:27:57 EDT