Hi Samira,
Are you wrapping a DI API object in your web application ?
DI API is notorious of memory leak.
In a web/ windows service, you cannot have memory/handle leak at all.
Once your service consume a certain amount of memory, the process will be killed by the OS.
The better way to implement service is via B1if or DIServer/B1WS.
Regards
Edy