Related to my previous question:
Preventing memory issues when processing large amounts of text
Is there a way to determine how much memory my program takes? I end up processing a large amount of text file and usually store processed objects in memory. There are times when there will be too much information and I will run out of memory. I have a solution to prevent a memory allocation problem, but I want to use it when necessary to avoid paging, which will ultimately reduce my performance when it is not needed. Is there any way to find out how much memory I occupy so that I can compose my information only when necessary?
NOTE: I am looking for a solution that my program can use to start paging when necessary.
Dan mcclain
source share