I thought he already tried a larger -Xmx setting of 2GB, which is more than enough for the simple HelloWord application
On Wed, Jan 20, 2016 at 5:11 PM, Gilles Gouaillardet < gilles.gouaillar...@gmail.com> wrote: > the limit could come from the JVM. > iirc, you have to add extra flags to the java command line so the JVM can > allocate more memory. > java -Xmx=... > or something like that (and that could be JVM dependent) > > Cheers, > > Gilles > > > On Thursday, January 21, 2016, Saliya Ekanayake <esal...@gmail.com> wrote: > >> Hi Ibrahim, >> >> This is most likely due to a ulimit setting. Check with *ulimit -a* and >> set *ulimit -n unlimited* and *ulimit -l unlimited*. >> >> I've experienced the same problem in the past and this was the reason. >> >> Hope this helps >> >> On Wed, Jan 20, 2016 at 9:49 AM, Ibrahim Ikhlawi <ibrahim_...@hotmail.com >> > wrote: >> >>> >>> >>> Hi Howard, >>> >>> I use 64bit JVM. The problem is not in the code, because I am still >>> getting the same error when I run the Hello.java from examples folder. >>> Any other suggestion? >>> >>> Ibrahim >>> >>> ------------------------------ >>> Date: Tue, 19 Jan 2016 09:48:24 -0700 >>> From: hpprit...@gmail.com >>> To: us...@open-mpi.org >>> Subject: Re: [OMPI users] How to allocate more memory to java OpenMPI >>> >>> >>> 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 >>> >>> >>> >>> _______________________________________________ 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/28302.php >>> >>> _______________________________________________ >>> 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/28308.php >>> >> >> >> >> -- >> Saliya Ekanayake >> Ph.D. Candidate | Research Assistant >> School of Informatics and Computing | Digital Science Center >> Indiana University, Bloomington >> Cell 812-391-4914 >> http://saliya.org >> > > _______________________________________________ > 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/28310.php > -- Saliya Ekanayake Ph.D. Candidate | Research Assistant School of Informatics and Computing | Digital Science Center Indiana University, Bloomington Cell 812-391-4914 http://saliya.org