[PolyORB-users] DSA example and memory dynamic management
Thomas Quinot
quinot at adacore.com
Mon Nov 10 16:33:29 CET 2008
* hector, 2008-11-10 :
> When runnig dsa echo example seems to be some problems in heap memory
> deallocation... For example, in RT-CORBA personality requests are
> clearly allocated and deallocated by stubs/skeletons but in DSA they don't.
>
> Using gnatmem tool by GNAT in the same example with 10,000 requests,
> just for PolyORB.Request.Create_Request call, we have got the following
> info:
>
> Allocation Root # 9
> -------------------
> Number of non freed allocations : 10000
> Final Water Mark (non freed mem) : 2.10 Megabytes
> High Water Mark : 2.10 Megabytes
> Backtrace :
> polyorb-requests.adb:117 polyorb.requests.create_request
> server.ads:3 server.echo_string
> client.adb:10 client
>
> And the overall evaluation showed:
>
> Global information
> ------------------
> Total number of allocations :1239479
> Total number of deallocations :1102565
> Final Water Mark (non freed mem) : 7.05 Megabytes
> High Water Mark : 10.58 Megabytes
>
> Is this behaviour unexpected? Maybe there is something I'm missing?
Thanks for your report, we'll look into it.
--
Thomas Quinot, Ph.D. ** quinot at adacore.com ** Senior Software Engineer
AdaCore -- Paris, France -- New York, USA
More information about the PolyORB-users
mailing list