partham
Active member
Dear Sir,
I am programming a IVR Socket Server using VB.Net. In the application, I have coded as carefully as possible trying to ensure that all the objects that are created are destroyed when they go out of scope. However, when I run the application in the simulation environment, it shows alarming increase in the memory used by the executable. The application start by occupying about 26 MB. After processing 10000 requests, it shows the memory utilisation as about 94 MB.
I used a memory profiling tool. From the tool, I gather that the Generation 0 GCs are raising constantly as the application is running. After processing 10000 requests, the Generation 0 GCs are about 11000.
I would be very grateful if you could provide me some guidelines to be able to run the application without memory leaks.
The same application when I code using VB 6.0, takes about 12 MB at startup. Though this program also has memory leaks, it increased to about 15 MB after processing 10000 requests.
Why does the VB.Net application take so much of memory space at startup? Are there any mechanisms to be able to optimise this?
Very grateful in advance for you time and assistance.
Wishing you a very happy new year 2006.
Regards,
Partha.
I am programming a IVR Socket Server using VB.Net. In the application, I have coded as carefully as possible trying to ensure that all the objects that are created are destroyed when they go out of scope. However, when I run the application in the simulation environment, it shows alarming increase in the memory used by the executable. The application start by occupying about 26 MB. After processing 10000 requests, it shows the memory utilisation as about 94 MB.
I used a memory profiling tool. From the tool, I gather that the Generation 0 GCs are raising constantly as the application is running. After processing 10000 requests, the Generation 0 GCs are about 11000.
I would be very grateful if you could provide me some guidelines to be able to run the application without memory leaks.
The same application when I code using VB 6.0, takes about 12 MB at startup. Though this program also has memory leaks, it increased to about 15 MB after processing 10000 requests.
Why does the VB.Net application take so much of memory space at startup? Are there any mechanisms to be able to optimise this?
Very grateful in advance for you time and assistance.
Wishing you a very happy new year 2006.
Regards,
Partha.