Re: Debugging Nginx Memory Spikes on Production Servers

2023-09-21 Thread Lance Dockins
Thanky you, Dmitry. One question before I describe what we are doing with NJS. I did read about the VM handling process before switching from Lua to NJS and it sounded very practical but my current understanding is that there could be multiple VM’s instantiated for a single request. A js_set, j

Re: Debugging Nginx Memory Spikes on Production Servers

2023-09-21 Thread Dmitry Volyntsev
On 9/21/23 6:50 AM, Lance Dockins wrote: Hi Lance, See my comments below. Thanky you, Dmitry. One question before I describe what we are doing with NJS.  I did read about the VM handling process before switching from Lua to NJS and it sounded very practical but my current understanding is

Re: Debugging Nginx Memory Spikes on Production Servers

2023-09-21 Thread Lance Dockins
That’s good info. Thank you. I have been doing some additional testing since my email last night and I have seen enough evidence to believe that file I/O in NJS is basically the source of the memory issues. I did some testing with very basic commands like readFileSync and Buffer + readSync and

Re: Debugging Nginx Memory Spikes on Production Servers

2023-09-21 Thread Dmitry Volyntsev
On 9/21/23 4:41 PM, Lance Dockins wrote: That’s good info.  Thank you. I have been doing some additional testing since my email last night and I have seen enough evidence to believe that file I/O in NJS is basically the source of the memory issues.  I did some testing with very basic command