[Request Help] Account Server RAM Gain Problem

01/13/2011 22:26 FuriousFang#1
Hey everyone,

I got done with my Account Server last night. It's written in C#. The system uses 5,900kb now... but there's a problem. The client goes through it nicely... It hits the game server and the socket at the account server is disconnected, but the program gains 100kb in the process and then doesn't go back down. It stays at 6,000kb. Each time I log in, the RAM intake increases by 100kb. I don't think that the program is saving anything and I'm not using threads. I am using a queue but I don't think that would cause it (because again, it's not saving anything). What should I look at next? Is this a common problem?

Thanks,
Sincerely
Fang

EDIT: I checked all of the queues... lists... dictionaries... and threads, but they all drop the connection. I'm confused. =\ After another login attempt, I noticed it increases by exactly 100kb.
01/13/2011 23:02 _tao4229_#2
[Only registered and activated users can see links. Click Here To Register...]
01/13/2011 23:42 FuriousFang#3
Quote:
Originally Posted by _tao4229_ View Post
[Only registered and activated users can see links. Click Here To Register...]
I'm trying to use that, I can't see where it's coming from. Everything changes so quickly... unless I'm looking in the wrong area. I'm not sure how this is supposed to work. I added the program to start and then looked at the graph and the live bytes/sec of all the references it's using. I'm not sure where it's coming from still. How should I use that program?

I don't understand what the problem could be. I checked dictionaries, and they're removing entries correctly. All of them are. I don't think it's saving the account client in the background somewhere... I mean, that's really not possible in this case since the socket disconnects, which is supposed to delete the account client in that thread.

Any suggestions anyone?
01/15/2011 10:31 ChingChong23#4
perform a garbage cleanup after the socket disconnects. see wat happens
01/15/2011 10:58 KraHen#5
Call Dispose manually, do a proper destructor in your class, the GC seems to get stupid sometimes for whatever reason and forgets to dispose some stuff. Happened to me before.
01/15/2011 16:25 FuriousFang#6
Quote:
Originally Posted by ChingChong23 View Post
perform a garbage cleanup after the socket disconnects. see wat happens
Quote:
Originally Posted by KraHen View Post
Call Dispose manually, do a proper destructor in your class, the GC seems to get stupid sometimes for whatever reason and forgets to dispose some stuff. Happened to me before.
That was it. =] It's running at 4,300 KB and it's not increasing. Now I have to clean up my work. Thanks! ^^
#request close