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


    Default Object Heap Allocation Error

    Object Heap Allocation Error

    Hey, all -
    This is going to be a weird one: been using Sencha CMD ( 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:

    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,

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Vote Rating
    Drömbolaget is on a distinguished road



    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