Open excieve opened 7 years ago
What a hungry little beast, that's unexpected! I'm not entirely sure if that comes from the way I use ChakraCore or if it's the runtime itself which just behaves this way.
One thing you could try is to use the ´-S´ switch as a parameter to chakra-core on the command line, which will call JsSetRuntimeMemoryLimit
.
-S 200000000
didn't help with this, still ≈35GB of virtual mem. I think it only affects real memory.
I've been tracing resource usage with my benchmarks and noticed that couch-chakra processes are using about 35G of virtual memory (with only ≈55M RSS):
I'm pretty sure it shouldn't be like this. Other query servers (and even CouchDB itself) don't use anywhere near this much. This is maintained even when no data is being processed.