axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Giger <gigerst...@gmx.ch>
Subject Memory leaks
Date Sun, 12 Nov 2006 14:24:15 GMT
Hi,

I see massive memory leaks with the Simple Axis2 HTTP Server.
Because I can't test it with mod_axis2 (see my previous mail)
I can only report it with the simple http server.

Here are two valgrind outputs:

The first one is with a shoot to the sample echo service:

Started Simple Axis2 HTTP Server ...
==19904==
==19904== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from
1) ==19904== malloc/free: in use at exit: 71,000 bytes in 1,038 blocks.
==19904== malloc/free: 15,119 allocs, 14,081 frees, 1,513,871 bytes
allocated. ==19904== For counts of detected errors, rerun with: -v
==19904== searching for pointers to 1,038 not-freed blocks.
==19904== checked 8,697,064 bytes.
==19904==
==19904== LEAK SUMMARY:
==19904==    definitely lost: 70,309 bytes in 1,023 blocks.
==19904==      possibly lost: 136 bytes in 1 blocks.
==19904==    still reachable: 555 bytes in 14 blocks.
==19904==         suppressed: 0 bytes in 0 blocks.
==19904== Use --leak-check=full to see details of leaked memory.


This second one is with a service built with the skeleton generator and
no data binding but just XML in/out:

Started Simple Axis2 HTTP Server ...
==13034==
==13034== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 46 from
1) ==13034== malloc/free: in use at exit: 200,214 bytes in 1,025 blocks.
==13034== malloc/free: 24,826 allocs, 23,801 frees, 2,676,022 bytes
allocated. ==13034== For counts of detected errors, rerun with: -v
==13034== searching for pointers to 1,025 not-freed blocks.
==13034== checked 8,697,064 bytes.
==13034==
==13034== LEAK SUMMARY:
==13034==    definitely lost: 199,523 bytes in 1,010 blocks.
==13034==      possibly lost: 136 bytes in 1 blocks.
==13034==    still reachable: 555 bytes in 14 blocks.
==13034==         suppressed: 0 bytes in 0 blocks.
==13034== Use --leak-check=full to see details of leaked memory.

My service function looks like the following:

axiom_node_t* axis2_skel_TestService_Test (const axis2_env_t *env,
					      axiom_node_t* param0 )
{
	return param0;
}

In this case i sent a document with about 34KB in size.

I can provide you a detailed memory leak report if wished.

Thanks

Marc

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


Mime
View raw message