A
Avi
Hi,
We have a webservice in c# which makes use of XML and COM objects. The
MemoryLimit in processModel in machine.config is set to the default of 60. A
new process "a.exe" is started from within the webservice using
System.Diagonostics.Process.Start(). The aspnet_wp process recycles itself
once it reaches a maximum of 60% of the total virtual memory.
The problem is two-fold.
1. How can we get a handle to the recycle event so that the "a.exe" process
can be killed and its memory released during recycle? We tried
Application_End and Session_End events but they were not fired during the
recycle.
2. How can we ensure that the memory does not reach the upper limit through
forced garbage collection?
Increasing the MemoryLimit does not seem to be a plausible solution.
Thanks for your help.
Regards.
We have a webservice in c# which makes use of XML and COM objects. The
MemoryLimit in processModel in machine.config is set to the default of 60. A
new process "a.exe" is started from within the webservice using
System.Diagonostics.Process.Start(). The aspnet_wp process recycles itself
once it reaches a maximum of 60% of the total virtual memory.
The problem is two-fold.
1. How can we get a handle to the recycle event so that the "a.exe" process
can be killed and its memory released during recycle? We tried
Application_End and Session_End events but they were not fired during the
recycle.
2. How can we ensure that the memory does not reach the upper limit through
forced garbage collection?
Increasing the MemoryLimit does not seem to be a plausible solution.
Thanks for your help.
Regards.