Forum C# Server occupies more and more RAM

Server occupies more and more RAM

Postby fourthworld » May 9th, 2013, 9:20 pm

My server always start occuping a Little part of the RAM, but 5 minutes past the server occupied the entire ram, then my computer always crash. Any idea to solve this issue?
Thanks.
(Sorry about my english, i know its not the best)
fourthworld
 
Posts: 2
Joined: May 1st, 2013, 9:00 pm

Re: Server occupies more and more RAM

Postby Henrik » May 9th, 2013, 9:23 pm

fourthworld wrote:Any idea to solve this issue?

Don't write code that eventually uses up all your RAM? :-)

Are you using any large in-memory structures that you grow over time? Are you keeping things in lists that you shouldn't be keeping? You can use a memory profiler such as this one to figure it out:

http://www.red-gate.com/products/dotnet ... -profiler/
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Server occupies more and more RAM

Postby fourthworld » May 9th, 2013, 9:33 pm

I only have 3 lists with 15 elements each list, i dont believe my 3 or 4 lists take a lot of RAM. In addition i can't use any memory optimizer because its an universitary Project. There is any way to use the GC? i tried but always when i start the server it crashes.
fourthworld
 
Posts: 2
Joined: May 1st, 2013, 9:00 pm


Return to C#



cron