Hi. I am having a huge problem with Axis2. I am missing 70ms somewhere during processing the request. I've made these tests on Jetty 6.1 and on Tomcat 5.5 to be sure. I've got an Axis2 war file, with a demo service [wsdl file attached]. Structure of the whole system looks like this:
Client->Axis2(on Tomcat)->Middleware->Axis2(on Tomcat)->Client The code I put into the java stub generated by wsdl2java is very simple. It just invokes the bean responsible for communication with middleware and gathers statistics. But from the tests I know now that middleware does not affect the tests and you can simply generate the response in java. The value in echo will determine the length of the string in response, thus making it possible to generate bigger strings. I've created a client that opens up a socket, sends a request and waits for the response. I am stopping measuring the time after receiving \r\n0\r\n\r\n in the response. Info about middleware times is taken from tomcat logs, where I output it with slf4j. #############Statistics For echo (10bytes)############# Request sent @ 1211386947230 Response started @ 1211386947233 Response received @ 1211386947310 Response size: 451 bytes Time between sending a request and receiving first byte: 72 ms Time between receiving first and last byte: 5 ms Total time: 80 ms Time taken to handle the request by Middleware:5 ms Start:1211386947298 End:1211386947303 Average operation time:86 ms I've sent 10 requests in a loop, that's where the average comes from. The middleware start and end time are put at the beginning and at the end of the stub generated by wsdl2java. Inside it's just a call to our middleware. Little bigger request: #############Statistics For echo (1000bytes)############# Request sent @ 1211387125371 Response started @ 1211387125377 Response received @ 1211387125471 Response size: 1848 bytes Time between sending a request and receiving first byte: 83 ms Time between receiving first and last byte: 11 ms Total time: 100 ms Time taken to handle the request by Middleware:5 ms Start:1211387125454 End:1211387125459 Average operation time:112 ms Same situation. There is 70ms lost between sending the request from client and receiving the request in webservice java code. Could you please tell me, where do I lose these 70ms? How to find out? Same thing occurs on Jetty and on Tomcat. Any ideas, help? -- Krystian Szczesny This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC.
DemoService.wsdl
Description: DemoService.wsdl
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
