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

3

6

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

Holpen answered 2/8, 2017 at 4:15 Comment(1)
Not sure why, but I started getting this issue suddenly, and the options you suggested helped fix it.Coenzyme
A
12

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.

Altricial answered 2/8, 2017 at 5:32 Comment(0)
A
1

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
Aneroid answered 2/4, 2020 at 7:27 Comment(0)
P
0

From sencha 6.6+, this command is enough:

macos : export _JAVA_OPTIONS=-Xms2048m -Xmx8192m -Dapple.awt.UIElement=true

window: set _JAVA_OPTIONS=-Xms2048m -Xmx8192m -Dapple.awt.UIElement=true

Plainspoken answered 18/1, 2022 at 19:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.