mogill / ems

Extended Memory Semantics - Persistent shared object memory and parallelism for Node.js and Python
Other
597 stars 41 forks source link

Bug memory leak when used to run custom next.js server. #29

Closed wayne-tt closed 4 years ago

wayne-tt commented 4 years ago

We made a custom server for next.js.

and adopted esm using es import and export syntax.

but esm make built pages each request and not free.

So we adopted babel-core & babel-cli to custom server instead of esm.

I hope you will fight with code without suffering.

Good luck!

mogill commented 4 years ago

EMS does not dynamically allocate memory from the OS, could you please provide an example that reproduces the problem? Thanks!

wayne-tt commented 4 years ago

When running next js custom server with esm, a code build script is generated for each page request and memory is not free.

I guess this is not an ems problem.

mogill commented 4 years ago

Please take a look at the example of EMS as a web server. Depending on how you're using EMS in your program you'll want to follow different example operations to get the outcome you're looking for.