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
    53
    Vote Rating
    2
    Drömbolaget is on a distinguished road

      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.

  3. #3
    Touch Premium Member
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    621
    Vote Rating
    64
    marc.fearby is a jewel in the rough marc.fearby is a jewel in the rough marc.fearby is a jewel in the rough

      0  

    Thumbs up


    Thanks for posting this solution. I've been using Sencha Architect/Designer for years and never came across this problem, until now (using 3.0.4 on Windows 8.1)

Thread Participants: 2