Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the error "com.sencha.exceptions.BasicException: GC overhead limit exceeded" while building an app in sencha cmd v6.5.1.240

I am not able to build my extjs app using sencha command "sencha app build"

I have recently updated my sencha cmd version to Cmd v6.5.1.240 and extjs version to ext-6.5.0. I also tried updating the environmental variable, by updating the path variable "set _JAVA_OPTIONS="-Xms1024m -Xmx2048m"", but couldn't resolve the issue.

The screen shot is also attached. Please help me in resolving this problem.

Thank you !

enter image description here

like image 536
avi007 Avatar asked Aug 02 '17 04:08

avi007


2 Answers

You suggestion was correct, but the location was not. You can change the vmoptions in the Sencha CMD directory:

userhome/bin/Sencha/Cmd/6.5.1.240/

There should be a file called sencha.vmoptions. Just add your memory increase there.

like image 118
xhadon Avatar answered Nov 04 '22 16:11

xhadon


Faced same issue, but updating in sencha.vmoptions did not help for me.
Version Sencha cmd (6.5.3.6) on Windows 10.
So I had to set in command line before sencha build (sencha app build):

set _JAVA_OPTIONS=-Xms1024m -Xmx2048m -Dawt.useSystemAAFontSettings=lcd
like image 43
Rakesh Avatar answered Nov 04 '22 16:11

Rakesh