hi,
I have problem with this Error message "System.OutOfMemory was Thrown"
I using C#.net 2003 to develop my service and running my service in Windows server 2003 service pack2.
does this error message is caused by using many thread?
because I using pretty much thread in my service.
how to handle this kind error?
Loading
LisaPosted Mar 31, 2009, 2:06 AM
I doubt then incresing the physical memory and also memory allocated for the web server are the only options. and i strongly suggest you to profle your application for any memory leaks (or does it has lots of stuff that its using 500 mb of memory) i dont know what kind of application is that you working on so i cant say ...
Thanks,
Lisa
andyPosted Mar 31, 2009, 1:50 AM
the Error Message "System.OutOfMemory was Thrown" is appear when the usage memory of my service is going up to 500 MB.
LisaPosted Mar 30, 2009, 8:44 AM
threads definetely do take a lot of memory, u can try few things like increasing the memory (RAM) and increasing the memory allocated to the webserver the application is hosted on.
check also your application if there are any leakages.. that can help too.
Thanks,
Lisa
vivek kulkarniPosted Mar 30, 2009, 7:55 AM
Hi,
Base on the informatio you provide one thing is sure that you are running out of memory. You can clean up your harddrive by deleting unwanted tmp files and check what is eating the memory in the task manager. You can also think of improving your hardware increasing RAM. etc.