OutOfMemoryError: Java heap space

Small talk on SmartPLS that does not correspond to the other forums!
janschreier
PLS Expert User
Posts: 117
Joined: Fri Sep 12, 2014 2:12 pm
Real name and title: Jan Schreier

OutOfMemoryError: Java heap space

Post by janschreier » Sat Jan 17, 2015 1:04 pm

For those calculating larger samples in Bootstrapping or MGA you might run into the error:
OutOfMemoryError: Java heap space

The solution is to edit the smartpls.ini file in the installation directory and increase the values of the following parameters:
-Xmx512m
-Xms256m

to higher values such as :
-Xmx2048m
-Xms1024m

You have to restart smartPLS afterwards.
The first parameter defines the maximum Memory allocted to smartPLS, the 2nd parameter is the minimum RAM value. The values should not exceed your machines RAM otherwise calculation performance will go down rapidly.


Hope that helps somebody. I got the info via support as the forum did not yet have this entry :)
BR, Jan

asrivastava
PLS User
Posts: 15
Joined: Sun May 31, 2015 5:40 am
Real name and title: Ankur Srivastava. Doctoral Student

Re: OutOfMemoryError: Java heap space

Post by asrivastava » Thu Jun 04, 2015 5:41 am

ya it worked for me.
but in case if users are getting access denied permission message. then proceed as....(for windows 8)
first copy the text on some other notepad file and make the desired changes in the new copied text file. keep the name same as original file.
second go to the smartpls.in file and cut the original file and move it to some other place/folder/drive.
third copy the same newly changed wordfile to the same location, and it will run.

sitizuraida
PLS Junior User
Posts: 1
Joined: Thu Aug 07, 2014 1:30 am
Real name and title: Siti Zuraida

Re: OutOfMemoryError: Java heap space

Post by sitizuraida » Wed Aug 19, 2015 4:15 am

i have the same problem.. i cannot export the excel file..
what should i do?

jmbecker
SmartPLS Developer
Posts: 888
Joined: Tue Mar 28, 2006 11:09 am
Real name and title: Dr. Jan-Michael Becker

Re: OutOfMemoryError: Java heap space

Post by jmbecker » Thu Aug 20, 2015 7:50 am

Follow the procedure to increase your memory for SmartPLS.
Dr. Jan-Michael Becker, University of Cologne, SmartPLS Developer
Researchgate: https://www.researchgate.net/profile/Ja ... v=hdr_xprf
GoogleScholar: http://scholar.google.de/citations?user ... AAAJ&hl=de

User avatar
Hengkov
PLS Super-Expert
Posts: 1619
Joined: Sun Apr 24, 2011 10:13 am
Real name and title: Hengky Latan
Location: AMQ, Indonesia
Contact:

Re: OutOfMemoryError: Java heap space

Post by Hengkov » Fri Aug 21, 2015 6:38 am

Hi,

This issue also comes up when you estimate the model is quite complex with a large number of resampling (e.g 5000), so that the program can not export analysis results into excel because of large data. The solution, you can use a smaller amount of resampling e.g 2000.

Kind regards,

krismurphy01
PLS Junior User
Posts: 8
Joined: Tue Jan 20, 2015 2:34 pm
Real name and title: Kris Murphy

Re: OutOfMemoryError: Java heap space

Post by krismurphy01 » Tue Sep 29, 2015 11:52 am

Hello,

How do I update the space information on a mac? Let me extend this conversation. In the recent release of PLCc the research article mentioned using 10,000 samples. My Mac will handle the 5000 samples but not 10,000.

Thanks

krismurphy01
PLS Junior User
Posts: 8
Joined: Tue Jan 20, 2015 2:34 pm
Real name and title: Kris Murphy

Re: OutOfMemoryError: Java heap space

Post by krismurphy01 » Tue Sep 29, 2015 7:39 pm

Along this same line of questions when I try to export a report to Excel I get this error:
java.lang.OutOfMemoryError: GC overhead limit exceeded GC overhead limit exceeded

User avatar
Hengkov
PLS Super-Expert
Posts: 1619
Joined: Sun Apr 24, 2011 10:13 am
Real name and title: Hengky Latan
Location: AMQ, Indonesia
Contact:

Re: OutOfMemoryError: Java heap space

Post by Hengkov » Wed Sep 30, 2015 1:05 am

Hi,

See my suggestion above and also to choose basic boostrap to reduce output.

Best regards,

krismurphy01
PLS Junior User
Posts: 8
Joined: Tue Jan 20, 2015 2:34 pm
Real name and title: Kris Murphy

Re: OutOfMemoryError: Java heap space

Post by krismurphy01 » Wed Sep 30, 2015 9:49 pm

Hello,

I found a file that stated ini bak and it already had the increased settings.

-Xmx2048m
-Xms1024m

I'm not sure basic bootstrapping solves the consistency problem that was discussed in the recent article.

User avatar
Hengkov
PLS Super-Expert
Posts: 1619
Joined: Sun Apr 24, 2011 10:13 am
Real name and title: Hengky Latan
Location: AMQ, Indonesia
Contact:

Re: OutOfMemoryError: Java heap space

Post by Hengkov » Fri Oct 02, 2015 1:30 am

Hi,

This problem has been solved in SmartPLs v.3.2.2, please try.

Best regards,

PJ Rosenberger
PLS Junior User
Posts: 5
Joined: Fri Jun 26, 2009 1:49 am
Real name and title:

Re: OutOfMemoryError: Java heap space

Post by PJ Rosenberger » Fri Nov 20, 2015 3:11 am

Hi,

I am getting this message on a Macintosh running the SmartPLS 3.2.3. I can do 1,000 bootstrap samples but not 5,000 (and no MGA with 5,000).
Even trying the simple bootstrap output does not work.

How do I increase the RAM available?

janschreier
PLS Expert User
Posts: 117
Joined: Fri Sep 12, 2014 2:12 pm
Real name and title: Jan Schreier

Re: OutOfMemoryError: Java heap space

Post by janschreier » Fri Nov 20, 2015 7:42 am

Hi PJ,

I am not on a MAC but since it is JAVA, this post should help you:
viewtopic.php?p=11417#p11417

just check where the .ini file is located on your system, back it up, and edit the original one.

regards, Jan

PJ Rosenberger
PLS Junior User
Posts: 5
Joined: Fri Jun 26, 2009 1:49 am
Real name and title:

Re: OutOfMemoryError: Java heap space

Post by PJ Rosenberger » Fri Nov 20, 2015 11:18 pm

Hi Jan,

There is no ini file I can adjust that I am aware of.

PJ

janschreier
PLS Expert User
Posts: 117
Joined: Fri Sep 12, 2014 2:12 pm
Real name and title: Jan Schreier

Re: OutOfMemoryError: Java heap space

Post by janschreier » Sun Nov 22, 2015 9:36 am

Maybe it is hidden?! or in another folder? I don't have a Mac but generally the way things work in Java it should be the same regardless of the operating system.

User avatar
swende
SmartPLS Developer
Posts: 105
Joined: Mon Sep 26, 2005 10:34 am
Real name and title: Dipl. Wi-Inf. Sven Wende
Location: Hamburg (Germany)

Re: OutOfMemoryError: Java heap space

Post by swende » Sun Nov 22, 2015 11:52 am

The smartpls.ini file on Mac OSX can be located when you go to Programs/SmartPLS and call the "Show package contents" action from the context menu. Then navigate down to > Contents > MacOS.
Sven Wende, SmartPLS Developer

Post Reply