On Tue, May 9, 2023 at 3:05 PM Meir Shpilraien <m...@redis.com> wrote: > > I know I can limit the memory used by a single isolate. But assuming my > application creates more than one isolate. Is there a way to put a global > limit such that the memory used by all isolates combined will not bypass this > limit?
V8 has no such mechanism built in. Users of V8 have cobbled together various solutions but they ultimately all involve tracking isolates and forcing garbage collection (isolate->LowMemoryNotification()) or terminating them when they exceed a threshold. If crashing is okay for your use case, implementing your own PageAllocator could work; see include/v8-platform.h. -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc-ca0EK%3DnuxnRX1hGjeJ8Fz%2B-vOCjD7%2BxwUHX0vs8OdqQ%40mail.gmail.com.