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

afxentios
  • 2,502
  • 2
  • 21
  • 24
avi007
  • 63
  • 1
  • 6

3 Answers3

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.

xhadon
  • 876
  • 14
  • 33
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
סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
Rakesh
  • 31
  • 4
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