[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .Net Core program crashes on Linux and not on Windows



Hi Dan,

Yes I've been coding for a living for 15 years in C#. 


/var/log/messages:Sep  1 12:41:34 debian-s-websites kernel: [31104249.962672] .NET ThreadPool invoked oom-killer: gfp_mask=0x6280ca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0
/var/log/messages:Sep  1 12:41:34 debian-s-websites kernel: [31104249.973435]  oom_kill_process.cold.30+0xb/0x1cf

Dan - you found my problem.  Thanks!

When the program is running I have this:
Mem:          989Mi       579Mi        64Mi       149Mi       346Mi       120Mi

It clearly thinks 64M is not enough.  I know my program can require up to a Gig of memory for the bigger datasets.  What is the minimum GNU/Linux will tolerate so I don't end up throwing money away on unused RAM?

Patrick

On Thu, 1 Sept 2022 at 15:21, Dan Ritter <dsr@randomstring.org> wrote:
Patrick Kirk wrote:
> I have a program that is meant to run on my Debian VPS which is hosted by
> Digital Ocean.  My access to the server is via Putty. Unfortunately the
> program simply stops, silently, after a few minutes.
>
> My code is littered with try catch statements. The console window shows no
> errors. It just silently fails.
>
> One issue may be that the program is a resource hog working with datasets
> of a million or so records at a time. Perhaps the system kills processes
> that threaten to take over all resources?

There is a kernel feature called the Out Of Memory Killer, which
kills processes that try to use all the memory of the system.

> Anyway, I would be grateful for any suggestion on how to track down this
> problem. I'm happy to read the documentation but as you can probably tell I
> don't know how to start framing the question.

Did you write this program?

Are you a fluent .Net Core programmer?

Has it ever run on some other system?

What happens if you try with a dataset of ten records?

-dsr-

Reply to: