Results 1 to 3 of 3

Thread: Failed to start reactor-kitchensink - Java heap space error

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    7

    Default Failed to start reactor-kitchensink - Java heap space error

    I have also posted these details in github - see issue 212.

    I followed
    the steps here to install / launch the kitchen sink app.

    • npm install appears to complete successfully
    • npm start causes the error below.


    ENVIRONMENT
    - Windows 10 Home
    - node: 6.9.4
    - npm: 4.6.1

    10% building modules 2/2 modules 0 active
    Project is running at http://0.0.0.0:8084/
    webpack output is served from /
    Content not from webpack is served from ./build
    404s will fallback to /index.html
    94% asset optimization
    building ExtReact bundle: ext => C:\sandbox\extjs-reactor\packages\reactor-kitchensink\build\ext-react
    Wat!
    configFile: C:\sandbox\extjs-reactor\packages\reactor-kitchensink\node_modules\@extjs\sencha-cmd\node_modules\@extjs\sencha-cmd-windows\dist\sencha.cfg
    Sencha Cmd v6.5.0.180
    [INF] Loading compiler context
    [INF] Loading app json manifest...
    [INF] Writing concatenated output to file C:\sandbox\extjs-reactor\packages\reactor-kitchensink\build\ext-react\ext.js
    [INF] Appending concatenated output to file C:\sandbox\extjs-reactor\packages\reactor-kitchensink\build\ext-react\ext.js
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: Java heap space
    [ERR]
    [ERR] Total time: 11 seconds
    [ERR] com.sencha.exceptions.BasicException: Java heap space
    undefined
    (node:1452) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'toString' of undefined




  2. #2
    Sencha - Engineering israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    395

    Default

    Hi,

    You need to adjust the memory settings of the JVM. You can do this by creating a _JAVA_OPTIONS environment variable with -Xmx2048m -XX:MaxPermSize=512m as value (that specifies a maximum of 2 GB memory and 512 MB for permanent generation).

    If you want/need to increase this maximum, just change 2048 or 512 for the desired amount in megabytes.

    Based on the error message you shared, you should see this issue go away just by setting -Xmx2048m but setting both is useful to also prevent java.lang.OutOfMemoryError: PermGen space errors in the future.
    Israel Roldán | Senior Software Engineer (Framework tools)

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    7

    Default

    @israelroldan Many thanks.

    I had already found a similar solution. I used _JAVA_OPTIONS with a value of -Xms512m -Xmx1024m which solved the problem. For anyone else trying this solution, you can test your _JAVA_OPTIONS by running java -version which will return the _JAVA_OPTIONS value (if it has been set) in the first line.

    Couple of things to note:
    1. I did try -Xms512m -Xmx2048m but this gave me an error when running java -version - something like "... unable to allocate 2097152kb memory".
    2. I had to restart my machine to get the options to take effect.

    Anyway, thanks for the quick response. Very helpful.

Similar Threads

  1. Java heap space error with cmd 6.1.0.65
    By mmancosu_intesa in forum Sencha Cmd
    Replies: 2
    Last Post: 13 Mar 2018, 4:03 AM
  2. java.lang.OutOfMemoryError: Java heap space
    By trinitrotoluen in forum Sencha Cmd
    Replies: 11
    Last Post: 1 Oct 2013, 3:39 PM
  3. App build failed => Java Heap Space problem
    By Renan Cunha in forum Sencha Cmd
    Replies: 3
    Last Post: 2 Aug 2013, 9:04 AM
  4. Replies: 16
    Last Post: 7 Mar 2013, 8:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •