ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Bug]: the adapter generates files core files that eat up all disk space

Open LoPromise opened this issue 3 months ago • 2 comments

I'm sure that

  • [ ] This issue is still present in the current beta version of this adapter
  • [ ] There is no other (open) issue with the same topic (use the search!)
  • [ ] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

None

The problem

when restarted it keeps generating core.* (number) i asume these are core dumps or something. below you can find some of the log outputs. i assume this is due to the js OOM Error that occures.

iobroker.current.log (in debug mode!)

<--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [5131:0x2a992000] 365623 ms: Scavenge (reduce) (interleaved) 2045.4 (2075.4) -> 2043.4 (2072.4) MB, pooled: 0 MB, 3.73 / 0.00 ms (average mu = 0.261, current mu = 0.252) allocation failure; [5131:0x2a992000] 367431 ms: Mark-Compact (reduce) 2043.6 (2072.4) -> 2043.4 (2072.6) MB, pooled: 0 MB, 1799.12 / 0.00 ms (+ 12.1 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1818 ms) (average mu = 0.210, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [5519:0x44dd0000] 346299 ms: Scavenge (reduce) (interleaved) 2046.6 (2074.9) -> 2045.6 (2074.9) MB, pooled: 0 MB, 2.76 / 0.00 ms (average mu = 0.337, current mu = 0.301) allocation failure; [5519:0x44dd0000] 346828 ms: Mark-Compact (reduce) 2045.7 (2074.9) -> 2045.6 (2075.1) MB, pooled: 0 MB, 526.49 / 0.00 ms (+ 11.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 549 ms) (average mu = 0.323, cur <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [5867:0x275fe000] 363385 ms: Scavenge (reduce) (interleaved) 2045.4 (2075.4) -> 2043.4 (2072.4) MB, pooled: 0 MB, 3.79 / 0.00 ms (average mu = 0.302, current mu = 0.365) allocation failure; [5867:0x275fe000] 365200 ms: Mark-Compact (reduce) 2043.6 (2072.4) -> 2043.4 (2072.6) MB, pooled: 0 MB, 1805.65 / 0.00 ms (+ 11.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1825 ms) (average mu = 0.234, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [6228:0x26066000] 364677 ms: Scavenge (reduce) (interleaved) 2044.4 (2072.6) -> 2043.4 (2072.6) MB, pooled: 0 MB, 3.91 / 0.00 ms (average mu = 0.266, current mu = 0.238) allocation failure; [6228:0x26066000] 366469 ms: Mark-Compact (reduce) 2043.4 (2072.6) -> 2043.4 (2072.9) MB, pooled: 0 MB, 1790.60 / 0.00 ms (+ 10.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1813 ms) (average mu = 0.222, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [6602:0x2e17f000] 350468 ms: Scavenge (reduce) (interleaved) 2045.4 (2075.4) -> 2043.4 (2072.4) MB, pooled: 0 MB, 3.87 / 0.00 ms (average mu = 0.372, current mu = 0.389) allocation failure; [6602:0x2e17f000] 352290 ms: Mark-Compact (reduce) 2043.5 (2072.4) -> 2043.4 (2072.6) MB, pooled: 0 MB, 1813.12 / 0.00 ms (+ 12.1 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1833 ms) (average mu = 0.244, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [6963:0x36fee000] 358442 ms: Mark-Compact (reduce) 2047.8 (2078.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 513.27 / 0.00 ms (+ 4.4 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 527 ms) (average mu = 0.221, curr[6963:0x36fee000] 359147 ms: Mark-Compact 2046.8 (2075.4) -> 2045.8 (2076.1) MB, pooled: 0 MB, 704.88 / 0.00 ms (average mu = 0.149, current mu = 0.001) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [7325:0x27834000] 364676 ms: Scavenge (reduce) (interleaved) 2046.9 (2075.1) -> 2045.9 (2075.1) MB, pooled: 0 MB, 1.77 / 0.00 ms (average mu = 0.110, current mu = 0.001) allocation failure; [7325:0x27834000] 366402 ms: Mark-Compact (reduce) 2046.4 (2075.1) -> 2045.9 (2075.4) MB, pooled: 0 MB, 1725.76 / 0.00 ms (+ 2.5 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1775 ms) (average mu = 0.106, cu <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [7685:0x136b7000] 365833 ms: Scavenge (reduce) (interleaved) 2045.7 (2075.9) -> 2043.7 (2072.9) MB, pooled: 0 MB, 3.98 / 0.00 ms (average mu = 0.349, current mu = 0.316) allocation failure; [7685:0x136b7000] 366752 ms: Mark-Compact (reduce) 2043.9 (2072.9) -> 2043.7 (2073.1) MB, pooled: 0 MB, 911.64 / 0.00 ms (+ 13.6 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 939 ms) (average mu = 0.282, cur <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [8057:0xa770000] 351652 ms: Scavenge (reduce) (interleaved) 2046.8 (2076.1) -> 2045.8 (2075.1) MB, pooled: 0 MB, 6.05 / 0.00 ms (average mu = 0.202, current mu = 0.114) allocation failure; [8057:0xa770000] 353412 ms: Mark-Compact (reduce) 2046.1 (2075.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 1746.17 / 0.00 ms (+ 14.8 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1776 ms) (average mu = 0.155, cu <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [8418:0xcfaa000] 350582 ms: Scavenge (interleaved) 2046.7 (2076.1) -> 2045.7 (2076.1) MB, pooled: 0 MB, 0.91 / 0.00 ms (average mu = 0.152, current mu = 0.001) allocation failure; [8418:0xcfaa000] 351200 ms: Mark-Compact 2046.7 (2076.4) -> 2045.7 (2076.4) MB, pooled: 0 MB, 616.26 / 0.00 ms (average mu = 0.127, current mu = 0.082) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [8766:0x13252000] 348617 ms: Scavenge (reduce) (interleaved) 2046.8 (2075.1) -> 2045.8 (2075.1) MB, pooled: 0 MB, 4.01 / 0.00 ms (average mu = 0.193, current mu = 0.113) allocation failure; [8766:0x13252000] 350383 ms: Mark-Compact (reduce) 2045.8 (2075.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 1766.01 / 0.00 ms (+ 10.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1789 ms) (average mu = 0.157, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [9125:0x22375000] 356576 ms: Scavenge (reduce) (interleaved) 2046.6 (2075.1) -> 2045.6 (2075.1) MB, pooled: 0 MB, 3.37 / 0.00 ms (average mu = 0.294, current mu = 0.326) allocation failure; [9125:0x22375000] 358315 ms: Mark-Compact (reduce) 2045.7 (2075.1) -> 2045.6 (2075.1) MB, pooled: 0 MB, 1735.71 / 0.00 ms (+ 12.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1759 ms) (average mu = 0.193, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [9487:0x1e0f3000] 357951 ms: Scavenge (reduce) (interleaved) 2046.6 (2074.9) -> 2045.6 (2074.9) MB, pooled: 0 MB, 3.89 / 0.00 ms (average mu = 0.312, current mu = 0.367) allocation failure; [9487:0x1e0f3000] 359684 ms: Mark-Compact (reduce) 2045.7 (2074.9) -> 2045.6 (2074.9) MB, pooled: 0 MB, 1731.66 / 0.00 ms (+ 11.6 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1754 ms) (average mu = 0.211, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [9847:0x3d06e000] 349865 ms: Scavenge (reduce) (interleaved) 2046.8 (2075.1) -> 2045.8 (2075.1) MB, pooled: 0 MB, 4.28 / 0.00 ms (average mu = 0.310, current mu = 0.301) allocation failure; [9847:0x3d06e000] 351620 ms: Mark-Compact (reduce) 2045.9 (2075.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 1755.78 / 0.00 ms (+ 7.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1783 ms) (average mu = 0.190, cu <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [10207:0x3d2ab000] 346898 ms: Mark-Compact (reduce) 2046.0 (2075.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 1736.76 / 0.00 ms (+ 12.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1766 ms) (average mu = 0.165, [10207:0x3d2ab000] 347568 ms: Mark-Compact 2046.8 (2075.4) -> 2045.8 (2076.1) MB, pooled: 0 MB, 669.37 / 0.00 ms (average mu = 0.124, current mu = 0.001) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [10557:0x89b1000] 351080 ms: Scavenge (reduce) (interleaved) 2046.8 (2075.1) -> 2045.8 (2075.1) MB, pooled: 0 MB, 6.14 / 0.00 ms (average mu = 0.305, current mu = 0.412) allocation failure; [10557:0x89b1000] 352807 ms: Mark-Compact (reduce) 2045.8 (2075.1) -> 2045.8 (2075.4) MB, pooled: 0 MB, 1724.48 / 0.00 ms (+ 9.1 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1754 ms) (average mu = 0.198, cu <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [10921:0x2d6d8000] 360210 ms: Scavenge (reduce) (interleaved) 2045.4 (2075.6) -> 2043.4 (2072.6) MB, pooled: 0 MB, 4.49 / 0.00 ms (average mu = 0.375, current mu = 0.528) allocation failure; [10921:0x2d6d8000] 362036 ms: Mark-Compact (reduce) 2043.4 (2072.6) -> 2043.4 (2072.6) MB, pooled: 0 MB, 1822.49 / 0.00 ms (+ 12.4 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1843 ms) (average mu = 0.261, <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [11282:0x1789c000] 355160 ms: Scavenge (reduce) (interleaved) 2043.8 (2071.9) -> 2042.8 (2071.9) MB, pooled: 0 MB, 3.60 / 0.00 ms (average mu = 0.290, current mu = 0.261) allocation failure; [11282:0x1789c000] 356964 ms: Mark-Compact (reduce) 2042.9 (2071.9) -> 2042.8 (2072.1) MB, pooled: 0 MB, 1797.67 / 0.00 ms (+ 9.8 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1820 ms) (average mu = 0.269, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [11644:0x24000000] 345062 ms: Mark-Compact (reduce) 2045.9 (2075.1) -> 2045.9 (2075.4) MB, pooled: 0 MB, 473.09 / 0.00 ms (+ 10.6 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 500 ms) (average mu = 0.270, cu[11644:0x24000000] 345746 ms: Mark-Compact 2046.8 (2075.4) -> 2045.9 (2076.1) MB, pooled: 0 MB, 683.18 / 0.00 ms (average mu = 0.174, current mu = 0.001) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [11992:0x2d18e000] 348659 ms: Mark-Compact (reduce) 2045.8 (2075.1) -> 2045.7 (2075.4) MB, pooled: 0 MB, 1724.96 / 0.00 ms (+ 11.5 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1746 ms) (average mu = 0.207, [11992:0x2d18e000] 349338 ms: Mark-Compact 2046.7 (2075.4) -> 2045.7 (2076.4) MB, pooled: 0 MB, 677.83 / 0.00 ms (average mu = 0.149, current mu = 0.001) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging] <--- Last few GCs ---> [12341:0xf6e0000] 351787 ms: Scavenge (reduce) (interleaved) 2046.6 (2075.9) -> 2045.6 (2074.9) MB, pooled: 0 MB, 4.04 / 0.00 ms (average mu = 0.303, current mu = 0.341) allocation failure; [12341:0xf6e0000] 353557 ms: Mark-Compact (reduce) 2045.7 (2074.9) -> 2045.6 (2075.1) MB, pooled: 0 MB, 1764.37 / 0.00 ms (+ 16.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1789 ms) (average mu = 0.200, c <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [io.javascript.0] 2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0] 4: 0x141a575 [io.javascript.0] 5: 0x141a5a3 [io.javascript.0] 6: 0x143367a [io.javascript.0] 7: 0x1436848 [io.javascript.0] 8: 0x1c9c351 [io.javascript.0] ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped] ENOSPC: no space left on device, write Error: ENOSPC: no space left on device, write [Error: ENOSPC: no space left on device, write] { errno: -28, code: 'ENOSPC', syscall: 'write' } ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]

Version of nodejs

v22.19.0

Version of ioBroker js-controller

7.0.7

Version of adapter

8.9.2

LoPromise avatar Sep 29 '25 12:09 LoPromise

I would suggest to open a issue at out forum (https://forum.iobroker.net)

3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [io.javascript.0]

indicates some out of memory situation. This could be caused be some faulty script, or iinsufficient memory configuration (i.e. inside docker). Disgnosing such problems is out of scope for a issue.

As a first attempt consider stopping ALL scripts and enabling them one by one to see if the probelm relates to one specific script.

mcm1957 avatar Sep 29 '25 12:09 mcm1957

alright apperenty my js script caused ram usage to spike... still when is garbage collection triggered? im pullling around 4*80values from sql and do some least squares calc on them... not that migthy of a thing to do... still ram profile does not go down after the script is stoped. is this not properly sandboxed

LoPromise avatar Sep 29 '25 13:09 LoPromise