Does java have the ability to monitor cpu usage when starting a process

Does java have the ability to monitor CPU usage when starting a process? We have a case where multiple Java processes are running concurrently and we want to limit how much CPU time each process can take so that it cannot affect other processes.

+3


source to share


1 answer


The JVM has no control over CPU usage and priority.



However, you can run each JVM in a separate Docker container . And control the allocation of resources for each container. This is definitely the added value of Docker containers.

+1


source







All Articles