M
Marios
Hi,
I want to have in a application i have created the feature of application
recycling,
similar to the aspnet_wp, and the new COM+ service.
The reason i want to do this is because of being able to set limits to the
memory usage my app
can consume, and recycling it when it exceeds this limit.
What I have done so far, is to create an application domain, in which all
the objects i use are created,
and by defining a certain number of method calls, or a memory threshold, i
unload this domain and load
it again rigtht after.
However, because i use a number of threads in the app, i have to write code
that unloads the application domain,
only when all the created threads have finished their work, and pausing of
course the creation of new ones.
The threads i use, come from a timer
Until no i have some satisfactory results, but i would like to here some
more ideas, if any one has the time
Thanks
I want to have in a application i have created the feature of application
recycling,
similar to the aspnet_wp, and the new COM+ service.
The reason i want to do this is because of being able to set limits to the
memory usage my app
can consume, and recycling it when it exceeds this limit.
What I have done so far, is to create an application domain, in which all
the objects i use are created,
and by defining a certain number of method calls, or a memory threshold, i
unload this domain and load
it again rigtht after.
However, because i use a number of threads in the app, i have to write code
that unloads the application domain,
only when all the created threads have finished their work, and pausing of
course the creation of new ones.
The threads i use, come from a timer
Until no i have some satisfactory results, but i would like to here some
more ideas, if any one has the time
Thanks