After upgrading to the latest OpenAI SDK (6.9.1) I have experienced Node.js Server crashes due to JavaScript heap exhaustion with following message:
”FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory”
- Server fails to start immediately
- Logs show repeated garbage collection attempts:
```
[808:0x140008000] 99740 ms: Scavenge 2019.8 → 2012.3 MB, allocation failure
[808:0x140008000] 105775 ms: Mark-Compact (reduce) 2036.1 → 2006.5 MB
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
```
Server that previously ran under Node.js’s default 2GB heap may now fail immediately.