How to free virtual memory ?

Posted by Mehdi Amrollahi on Stack Overflow See other posts from Stack Overflow or by Mehdi Amrollahi
Published on 2010-06-02T20:07:21Z Indexed on 2010/06/02 20:14 UTC
Read the original article Hit count: 349

Filed under:
|
|
|

I have a crawler application (with C#) that downloads pages from web . The application take more virtual memory , even i dispose every object and even use GC.Collect() .

This , have 10 thread and each thread has a socket that downloads pages . I use dispose method and even use GC.Collect() in my application , but in 3 hour my application take 500 MB on virtual memory (500 MB on private bytes in Process explorer) . Then my system will be hang and i should restart my pc .

Is there any way that i use to free vitual memory ?

Thanks .

© Stack Overflow or respective owner

Related posts about c#

Related posts about memory