Is there any way to know how big memory has been allocated by GC currently (or in the last scan)?

I want to limit the total memory usage of program manually. So, while I am allocating some space (in server program), if the desired memory will exceed the limit, I will fail the operation immediately.

Reply via email to