Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
QuestionReceiving Connection Error w/ SQL DB File on Remote/Hosting Server Pin
dboy22111-Dec-07 7:17
dboy22111-Dec-07 7:17 
GeneralClasses and references Pin
User 665811-Dec-07 6:42
User 665811-Dec-07 6:42 
GeneralRe: Classes and references Pin
Skippums11-Dec-07 6:59
Skippums11-Dec-07 6:59 
GeneralLoad assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:19
Josh Ryon11-Dec-07 6:19 
GeneralRe: Load assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:46
Josh Ryon11-Dec-07 6:46 
QuestionC# Deployment on Remote Machine [modified] Pin
Tiger_tom11-Dec-07 5:13
Tiger_tom11-Dec-07 5:13 
GeneralGarbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 4:48
sponsorJudah Gabriel Himango11-Dec-07 4:48 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 7:01
sitebuilderLuc Pattyn11-Dec-07 7:01 
Hi Judah,

I have no experience with Win2003 Server nor do I run programs that long. Anyway:

AFAIK there are only two ways to either run out or leak memory:
1. keeping references to managed objects that are no longer required;
2. not releasing unmanaged resources (i.e. forgetting to implement and/or call Dispose).

If your program runs out of memory, it must be violating 1 and/or 2. If it then recovers after
executing a particular piece of code, then it seems to me that piece of code is remedying 1, 2
or both. So I would suggest you inspect that piece to discover what is happening.

FWIW: If you want to implement some caching, make sure to use WeakReference objects.

BTW: 2GB in a couple of days isn't much, it is around 1MB/minute.

As an alternative idea, the gc probably uses some lower priority threads, so if your server is
heavily loaded, it just might fail to retrieve old generation objects in time. I suggest you
check its CPU load overall and in particular when the problems show.

Hope this helps.

Luc Pattyn [Forum Guidelines] [My Articles]


Sorry for any delays in replying, I currently don't always get e-mail notifications.


GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 7:55
sponsorJudah Gabriel Himango11-Dec-07 7:55 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 8:21
sitebuilderLuc Pattyn11-Dec-07 8:21 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 9:14
sponsorJudah Gabriel Himango11-Dec-07 9:14 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Pete O'Hanlon11-Dec-07 9:49
mvePete O'Hanlon11-Dec-07 9:49 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 9:52
sitebuilderLuc Pattyn11-Dec-07 9:52 
QuestionON_MESSAGE in C# Pin
PKR11-Dec-07 3:57
PKR11-Dec-07 3:57 
GeneralRe: ON_MESSAGE in C# Pin
Anthony Mushrow11-Dec-07 4:08
professionalAnthony Mushrow11-Dec-07 4:08 
GeneralRe: ON_MESSAGE in C# Pin
PKR11-Dec-07 5:08
PKR11-Dec-07 5:08 
GeneralObject cannot be cast from DBNull to other types. Pin
eyeseetee11-Dec-07 3:51
eyeseetee11-Dec-07 3:51 
GeneralRe: Object cannot be cast from DBNull to other types. Pin
Anthony Mushrow11-Dec-07 4:12
professionalAnthony Mushrow11-Dec-07 4:12 
GeneralRe: Object cannot be cast from DBNull to other types. Pin
Pete O'Hanlon11-Dec-07 5:26
mvePete O'Hanlon11-Dec-07 5:26 
GeneralPassing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
f4hd11-Dec-07 3:14
f4hd11-Dec-07 3:14 
GeneralRe: Passing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
m@u11-Dec-07 3:25
m@u11-Dec-07 3:25 
GeneralRe: Passing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
f4hd11-Dec-07 3:46
f4hd11-Dec-07 3:46 
GeneralRe: Passing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
m@u11-Dec-07 4:15
m@u11-Dec-07 4:15 
GeneralRe: Passing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
f4hd11-Dec-07 8:33
f4hd11-Dec-07 8:33 
GeneralRe: Passing dynamic 2 dim float array in c# to unmanaged c++ dll Pin
m@u11-Dec-07 22:33
m@u11-Dec-07 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.