This is an update on the Progress so far. There was no problem in AS and I tested capturing CPU time & Thread Live time for several web apps as well as web services. This is because AS it self has no thread pool inside to do their internal work
I have tested two BPEL processes with the help of Waruna in BPS. One is to call a axis2 service which has a busy loop from a BPEL Process. Since it is a external service call I was able to capture the CPU time as well as thread live time for that particular Thread. Actually 2 threads are created, one for axis2 and one for BPS. But when tried out a busy loop inside a BPEL process (inside BPS), I was not been able to capture the CPU time for that particular thread/request. But in both occasions I successfully captured thread live time for that request. The reason as I understood was BPS has its own Thread pool to execute their BPS processes and are not captured as CPU time by the main tomcat thread. I tested this with ESB as well. I created a custom proxy service to call my axis2 web service(with busy loop) hosted in SLive. I tried measuring CPU time as well as thread live time for a particular service request and was failed in finding neither accurate CPU time nor accurate thread live time. May be thread execution happens differently compared to AS or BPS in ESB(non-blocking ??) I appreciate some help regarding the thread execution/handling from someone from ESB as well. BTW since some servers has their own thread pools and thread executing patterns, it seems hard to find the CPU time for each and every thread execution 'inside' servers(BPS/ESB/DSS). Again a re-usability issue comes in since we have to do this for each an every Server which has a thread pool inside(What if new server comes in 2 years time ?) At the same time it is unfair if we measure the CPU time despite the thread pool execution inside servers. So as Azeez suggested measuring the thread live time solves most of the problems, yes it can be used for throttling, but can we use it for billing as well ??(which includes wait, sleep time as well) So, I think it's better to have a discussion and I like to know your opinion as well. Please tell me if I can go in any other direction as well. Thanks, Lasindu. _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
