HI Ibrahim,

Are you using a 32bit or 64bit JVM?

I don't think this is an Open MPI issue, but likely something owing to your
app or your java setup.
You may want to checkout

http://javaeesupportpatterns.blogspot.com/2012/09/outofmemoryerror-unable-to-create-new.html

If you'd like to post the java code to the list, I can try it out on some
of the servers I use.

Howard


2016-01-19 8:03 GMT-07:00 Ibrahim Ikhlawi <ibrahim_...@hotmail.com>:

>
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2016/01/28301.php
>

Reply via email to