You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Frank Huebbers (JIRA)" <ji...@apache.org> on 2008/03/01 00:49:51 UTC

[jira] Commented: (AXIS2C-1001) Axis2/C Stress tests fail

    [ https://issues.apache.org/jira/browse/AXIS2C-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574011#action_12574011 ] 

Frank Huebbers commented on AXIS2C-1001:
----------------------------------------

Hi Senaka,

I'm glad to hear to that Axis2/c now supports a timeout interval. I do not believe, however, that this will solve my issue due to the following observation:

1. The problem I am seeing seems to stem from a race condition between cleanup after a service call and making the next service call. 
2. The timeout (and correct me if I'm wrong), handles the case of not receiving a response within a specified period of time.

Thoughts?

Frank

> Axis2/C Stress tests fail
> -------------------------
>
>                 Key: AXIS2C-1001
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1001
>             Project: Axis2-C
>          Issue Type: Bug
>         Environment: Using an Axis2/C snapshot from 7/2/2008 compiled with Guththila enabled (due to problems with libxml)
>            Reporter: Frank Huebbers
>            Assignee: Senaka Fernando
>
> I am using Axis2/C in an application which uses asynchronous web service calls heavily. In this application, it can happen that several web service calls are issued one after another. In my tests, however, I have noticed that this almost always causes problems with Axis.
> I was able to narrow down the problem to the following test cases:
> 1. Fire several non-blocking web service calls right after each other (without waiting for a response). 
>    ==> Always causes failure on the second call
> 2. Fire 100 web service calls one after the other (i.e., fire one, wait for response, fire next)
>   ==> Causes failure randomly
> Now, it's important to note that I am reusing the axis environment and stub for these calls.
> In my next series of tests, I repeated the two set-ups above. Instead of reusing the stub for each call, however, I created a new stub for each call. In my test, this allowed me to pass the two tests above. However, in this set of tests I did not clean up the stubs,  which, of course, creates an unacceptable memory leak.
> So, the next series of tests included cleaning up the stub right at the end of the on_complete/on_failure callbacks. This, however,  caused crashes in the axutil library. Specifically, the line of code which caused the crash was (in op_client.c):
> axis2_async_result_free(args_list->op_client->async_result, th_env);
> With further investigation I was able to figure out that this caused an error because in the deletion of the stub (which in my test above would happen before the async_result_free above would execute) the op_client variable was freed.
> So, in my final set of tests, I created a stub resource manager which, essentially, frees the stubs in a time delayed fashion. This would allow the thread to complete the on_complete/on_failure callback and clean up after itself and then do a freeing of the stub. This seems to work very reliable for me, but, as I understand it, is not the most efficient way of doing things as I am required to create a new stub for every web service call.
> So, I was wondering if these scenarios are tested in the Axis2/C regression tests and/or if I can do something else to get my test cases working.
> Frank

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org