>I want to do some accounting related to the actual resources consumed >by a web service. The information I seek is how much CPU a web >service has consumed up to a given time or the %CPU it consumes when >it is processing a request, how much is the memory consumption at >that time.
I think a tool like you describe would be very interesting to many web services publishers. I looked into doing something similar way back in Java 1.1 and found it essentially impossible. JVMTI, which you reference, or its earlier versions JVMPI and JVMDI, may give you access to the raw data you need like CPU time and memory usage. The Axis-specific part of this is pretty simple. Axis web services run as servlets, so if you have a solution that works for servlets it will work for Axis as well. You may want to tune things a bit specially for Axis to know how much time is spent in the Axis marshalling code, how much time is spent actually executing the service. Let us know if you get anywhere!
