"out" parameter and memory leak?

  • Thread starter Thread starter Alex Chan
  • Start date Start date
A

Alex Chan

Hi Group,

I have written a window service wtih SAP.NET Connector which is to
fulfil request from SAP client. SAP client will call a function exposed by
my window service that has a big "out" parameter. That "out" parameter is of
class SAPTable, you can regard that as DataTable.

As everytime SAP client issue request to my window service, it will
connect to oracle and do some searching and return the result in a SAPTable.
I did a volume test by issuing 10,000 request and observed the memory usage
of the window services jumping from 20mb to 800mb.

I know reading the memory usage from Task Manager is not an accurate
method to judge the footprint of any .NET program. But isn't it my app got
memory leak? is it becoz of the jumbo "out" parameter which i has no way to
free it?

Please advise.

Alex
 
Back
Top