How to control the number of threads regarding available memory in Java. This means that I want to control the number of running threads, by encoding, relative to the memory available on the server. Any suggestions, tips, tutorials, libraries are welcome.
source
share