1. #1
    Sencha User
    Join Date
    Dec 2013
    Posts
    1
    Vote Rating
    0
    affenhauer is on a distinguished road

      0  

    Default Object Heap Allocation Error

    Object Heap Allocation Error


    Hey, all -
    This is going to be a weird one: been using Sencha CMD (4.0.1.45) for a few weeks now with a grand total of zero issues -- including Friday (12/20). Powered my PC down for the weekend; came in to work today (12/23), started up and got the following from CMD:

    C:\Windows\System32>sencha
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.


    It's not just me -- guy in the office next door is having the same exact issue. My question: what conceivably could have changed between COB Friday and SOB today? Local IT appears to be avoiding me on this one. Doesn't look like a Java issue: Eclipse starts up and runs like a champ...

    Thanks in advance,
    Joe

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    52
    Vote Rating
    0
    Drömbolaget is an unknown quantity at this point

      0  

    Default


    Pretty easily fixed:


    Open the Control Panel
    Go to System (win + pause/break works also)
    Go to Advanced Systems Properties
    Then Environment Variables
    In System Variables, click Add
    New Variable Name: _JAVA_OPTIONS
    New Variable Value: -Xmx512M
    Click OK

    Works now for me. Had to restart Visual Studio to pick up the new environment variable.

Thread Participants: 1