How to force WebLogic to use all processors on a multiprocessor machine

Yesterday, we noticed peculiar behavior with Java / Web Logic on one of our multiprocessor servers, so we wanted to get our thoughts from you.

For some reason, Web Logic / Java uses only one processor of the available two processors. When we started some kind of heavy load, I could see that the processor on one reaches almost 100%, and the other processor does not work completely. Does it matter if it is a virtual machine (.. but it is not a virtual machine)

Interestingly, any other OS actions indicate processor activity on both.

Regards, _UB

+3
source share
3 answers

WebLogic (, , Java) , . WebLogic , . , Java.

- Java, WebLogic, SingleThreadModel (), , , . , , .

, , Java , VMWare, VM VM. , .

, JSP , . , .

+2

WebLogic . .

+1

Java, , Java CPU (8 ):

public class MultiThreadCPUEater implements Runnable {
    public static void main(String[] args) {
        for (int i = 0; i < 8; i++) {
            MultiThreadCPUEater multiThreadCPUEater = new MultiThreadCPUEater();
            Thread thread = new Thread(multiThreadCPUEater);
            thread.start();
        }
    }

    @Override
    public void run() {
        for (;;) {
        }
    }
}
0

Source: https://habr.com/ru/post/1715740/


All Articles