Hallo, I'm working with java OpenMPI on a server with 64GB memory. But when I run the java class I can only run it on until 15 processes (with this command: mpirun -np 15 java Multiplikation). Although there is 64GB memory, only about 3 GB will be used(with top command can I see that, the first two lines are below). When I run more than 15 processes I get this error:
Error occurred during initialization of VM java.lang.OutOfMemoryError: unable to create new native thread But I want to run it on more than 15 processes and use more than 3 GB. In Addition, after searching in google I have tried to run it with this command: mpirun -np 20 java -Xmx2096M -Xms1048M Multiplikation but I still get the same error. My question: How can I allocate java more memory, so that I run my program with more than 15 processes and more than 3GB memory? thanks in advance Ibrahim PS: It may help, these are the first two lines from the top command: PID PRI VIRT RES SHR S CPU% MEM% 23255 20 0 20.7G 103M 11916 S 2.0 0.2 0:52.14 java 23559 20 0 20.7G 33772 11916 S 1.0 0.1 0:50.82 java