OutOfMemoryError: Java heap space
-
- PLS Expert User
- Posts: 116
- Joined: Fri Sep 12, 2014 2:12 pm
- Real name and title: Jan Schreier
OutOfMemoryError: Java heap space
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
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
-
- PLS User
- Posts: 16
- Joined: Sun May 31, 2015 5:40 am
- Real name and title: Dr. Ankur Srivastava
Re: OutOfMemoryError: Java heap space
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.
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.
-
- PLS Junior User
- Posts: 1
- Joined: Thu Aug 07, 2014 1:30 am
- Real name and title: Siti Zuraida
Re: OutOfMemoryError: Java heap space
i have the same problem.. i cannot export the excel file..
what should i do?
what should i do?
-
- SmartPLS Developer
- Posts: 1284
- Joined: Tue Mar 28, 2006 11:09 am
- Real name and title: Dr. Jan-Michael Becker
Re: OutOfMemoryError: Java heap space
Follow the procedure to increase your memory for SmartPLS.
Dr. Jan-Michael Becker, BI Norwegian Business School, SmartPLS Developer
Researchgate: https://www.researchgate.net/profile/Jan_Michael_Becker
GoogleScholar: http://scholar.google.de/citations?user ... AAAJ&hl=de
Researchgate: https://www.researchgate.net/profile/Jan_Michael_Becker
GoogleScholar: http://scholar.google.de/citations?user ... AAAJ&hl=de
- Hengkov
- PLS Super-Expert
- Posts: 1599
- Joined: Sun Apr 24, 2011 10:13 am
- Real name and title: Hengky Latan
- Location: AMQ, Indonesia
- Contact:
Re: OutOfMemoryError: Java heap space
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,
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,
-
- PLS Junior User
- Posts: 8
- Joined: Tue Jan 20, 2015 2:34 pm
- Real name and title: Kris Murphy
Re: OutOfMemoryError: Java heap space
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
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
-
- PLS Junior User
- Posts: 8
- Joined: Tue Jan 20, 2015 2:34 pm
- Real name and title: Kris Murphy
Re: OutOfMemoryError: Java heap space
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
java.lang.OutOfMemoryError: GC overhead limit exceeded GC overhead limit exceeded
- Hengkov
- PLS Super-Expert
- Posts: 1599
- Joined: Sun Apr 24, 2011 10:13 am
- Real name and title: Hengky Latan
- Location: AMQ, Indonesia
- Contact:
Re: OutOfMemoryError: Java heap space
Hi,
See my suggestion above and also to choose basic boostrap to reduce output.
Best regards,
See my suggestion above and also to choose basic boostrap to reduce output.
Best regards,
-
- PLS Junior User
- Posts: 8
- Joined: Tue Jan 20, 2015 2:34 pm
- Real name and title: Kris Murphy
Re: OutOfMemoryError: Java heap space
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.
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.
- Hengkov
- PLS Super-Expert
- Posts: 1599
- Joined: Sun Apr 24, 2011 10:13 am
- Real name and title: Hengky Latan
- Location: AMQ, Indonesia
- Contact:
Re: OutOfMemoryError: Java heap space
Hi,
This problem has been solved in SmartPLs v.3.2.2, please try.
Best regards,
This problem has been solved in SmartPLs v.3.2.2, please try.
Best regards,
-
- PLS Junior User
- Posts: 5
- Joined: Fri Jun 26, 2009 1:49 am
- Real name and title:
Re: OutOfMemoryError: Java heap space
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?
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?
-
- PLS Expert User
- Posts: 116
- Joined: Fri Sep 12, 2014 2:12 pm
- Real name and title: Jan Schreier
Re: OutOfMemoryError: Java heap space
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
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
-
- PLS Junior User
- Posts: 5
- Joined: Fri Jun 26, 2009 1:49 am
- Real name and title:
Re: OutOfMemoryError: Java heap space
Hi Jan,
There is no ini file I can adjust that I am aware of.
PJ
There is no ini file I can adjust that I am aware of.
PJ
-
- PLS Expert User
- Posts: 116
- Joined: Fri Sep 12, 2014 2:12 pm
- Real name and title: Jan Schreier
Re: OutOfMemoryError: Java heap space
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.
- swende
- SmartPLS Developer
- Posts: 111
- 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
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, CEO SmartPLS GmbH