heap limit Allocation failed
rpuig2001
HOBBYOP

a year ago

Since today at 00:00 CET heap limit allocation failed.

No new code has been commited.

I have my memory by nodd limited at 500mb, but after removing this issue appears same way.

Trace:

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/e1a28fb2-0bce-4428-9bbd-e7d635dcef40/vol_5hj1gm65y4hwwc03

<--- Last few GCs --->

[15:0x2f8cd50] 301483 ms: Scavenge (reduce) 490.5 (500.1) -> 489.6 (500.3) MB, 46.1 / 0.0 ms (average mu = 0.594, current mu = 0.425) allocation failure;

[15:0x2f8cd50] 301769 ms: Mark-sweep (reduce) 524.4 (533.9) -> 523.4 (533.4) MB, 159.9 / 0.0 ms (+ 254.8 ms in 47 steps since start of marking, biggest step 16.4 ms, walltime since start of marking 529 ms) (average mu = 0.483, current mu = 0.358) alloc

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

1: 0xaea8e8 node::Abort() [node]

2: 0x9ad387 [node]

3: 0xd019e0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node]

4: 0xd01dbb v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node]

5: 0xef9485 [node]

Solved

25 Replies

rpuig2001
HOBBYOP

a year ago

84834faa-629f-4eee-a90d-be5a7c6b698d


rpuig2001
HOBBYOP

a year ago

Issue seems to be solved. I didn’t do anything… Any idea?


a year ago

did you upgrade to Hobby?


rpuig2001
HOBBYOP

a year ago

Yes I am Hobby since long time. Issue is happening again


a year ago

is your app trying to use more than 8gb of memory?


rpuig2001
HOBBYOP

a year ago

It looks like, but why today is using that much gb of memory?


rpuig2001
HOBBYOP

a year ago

Normally uses max 300mb


a year ago

I wouldn't have any way to answer that unfortunately


rpuig2001
HOBBYOP

a year ago

But nothing has changed at my end


a year ago

kinda like asking your power company why you have used more power, they wouldn't know why


a year ago

what do the metrics say?


rpuig2001
HOBBYOP

a year ago

Then it is very strange…
The issue seems to be when mounting the volume as my log above


rpuig2001
HOBBYOP

a year ago

Metrics go up when mounting the volume


a year ago

that's a platform level message, nothing to do with what your app prints


rpuig2001
HOBBYOP

a year ago

I normally dont recive this message when works fine


a year ago

you won't receive that mount message if you aren't mounting a volume


rpuig2001
HOBBYOP

a year ago

I have re-run code from more perfectly stable days and it still crashes


a year ago

try setting a service variable - NODE_OPTIONS=--max-old-space-size=4096


rpuig2001
HOBBYOP

a year ago

I did and still crashes with the same


rpuig2001
HOBBYOP

a year ago

Actually I already had it as 500. My app does not use more than 300mb never


a year ago

looks like it crashes right after - AEE875 Using flight time to calculate ETA


rpuig2001
HOBBYOP

a year ago

If there’s no clue. It will be something at my end. I will check it


rpuig2001
HOBBYOP

a year ago

Thanks a lot!


a year ago

yeah this is an application level issue and we have no observability into what your code does or doesnt do


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...