• Out of memory when running llm_index.js

    From Keyop Troy@1:103/705 to GitLab issue in main/sbbs on Sun Oct 18 13:18:02 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1291

    When running llm_index.js on the Dove-Net area, I'm getting this error:

    ```
    [sbbs@lr08 sbbs]$ exec/jsexec exec/llm_index.js guru

    JSexec v3.22a-Linux master/~f9b3073c69 - Execute Synchronet JavaScript Module Compiled Oct 18 2026 15:55 with GCC 14.3.1

    Loading configuration files from /sbbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes

    Reading script from /opt/sbbs/exec/llm_index.js
    /opt/sbbs/exec/llm_index.js compiled in 0.00 seconds
    !JavaScript /opt/sbbs/exec/llm_index/msgs.js line 266: out of memory /opt/sbbs/exec/llm_index.js executed in 0.62 seconds
    !Module (exec/llm_index.js) set exit_code: 1

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    Returning error code: 1
    ```

    Memory available:

    ```
    [sbbs@lr08 sbbs]$ free -h
    total used free shared buff/cache available
    Mem: 11Gi 2.9Gi 2.0Gi 36Ki 6.9Gi 8.5Gi
    Swap: 4.0Gi 511Mi 3.5Gi
    ```

    The maximum number of message in the biggest message base is about 17,300.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sun Oct 18 13:53:27 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1291
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Oct 18 13:53:27 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1291#note_10645

    This is normal and expected - not an issue. You'll need to increase the size of the JS memory heap that you allow the JS engine to use via JSexec command-line argument (e.g. `-m1g` to give it one gig) or JSexec.ini setting.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)