You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running librechat 0.7.8 in kubernetes and trying to set `NODE_OPTIONS="--max-old-space-size=24576" for node. We are not sure if the librechat npm process takes environment or not. Once deployed, inside of the container, we see this:
/app $ ps -ef
PID USER TIME COMMAND
1 node 0:00 npm run backend
18 node 0:00 node /app/node_modules/.bin/cross-env NODE_ENV=production node api/server/index.js
25 node 4:08 node api/server/index.js
43 node 0:00 sh
66 node 0:00 ps -ef
How do can we know if npm/node takes the environment setting?
What we notice is the librechat process would be up and running a lot of cleanup process and the memory usage keeps going up until 16GB ish and the container would die and restart on its own, without obvious error.
We suspect NODE_OPTIONS memory tunning probably does not take effect...
This discussion was converted from issue #8748 on July 30, 2025 15:33.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We are running librechat 0.7.8 in kubernetes and trying to set `NODE_OPTIONS="--max-old-space-size=24576" for node. We are not sure if the librechat npm process takes environment or not. Once deployed, inside of the container, we see this:
How do can we know if npm/node takes the environment setting?
What we notice is the librechat process would be up and running a lot of cleanup process and the memory usage keeps going up until 16GB ish and the container would die and restart on its own, without obvious error.
We suspect NODE_OPTIONS memory tunning probably does not take effect...
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions