Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: java.lang.OutOfMemoryError: Java heap space

  1. #1
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    51

    Default java.lang.OutOfMemoryError: Java heap space

    I build my sencha touch app with

    PHP Code:
    sencha ant cordova-build-production 
    And error
    PHP Code:
    java.lang.OutOfMemoryErrorJava heap space 
    I use Mac OSX 10.8.4 , 4GB RAM.

    Any suggestion ?

    Thanks

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    What version of Cmd are you using ("sencha which" for the full version). What framework version?

  3. #3
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    51

    Default

    Quote Originally Posted by slemmon View Post
    What version of Cmd are you using ("sencha which" for the full version). What framework version?
    Sencha CMD 4.0.0.126, using sencha touch 2.3 beta 2.
    My App consist of 38 View + Controller, Model and Store. I also test it on my windows machine (Win 7 64bit, 8 GB RAM) , the problem still the same.

  4. #4
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    There is another beta Cmd available for upgrade. Can you try with that version and see if you still observe the issue?

    sencha upgrade -b

  5. #5
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    51

    Default

    Quote Originally Posted by slemmon View Post
    There is another beta Cmd available for upgrade. Can you try with that version and see if you still observe the issue?

    sencha upgrade -b
    Still have the same error, I already upgrade to Sencha CMD 4.0.0.161

    Now I'm stick with sencha CMD 3.1.1.274

  6. #6
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    What happens if you do a local build only? If you do "sencha app build testing" or "sencha app build production" do you get the memory errors as well?

  7. #7
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    51

    Default

    Quote Originally Posted by slemmon View Post
    What happens if you do a local build only? If you do "sencha app build testing" or "sencha app build production" do you get the memory errors as well?
    Yes, it's the same still error. For simple project it's OK but for bigger project its error. Now I'm going back using Sencha Cmd v3.1.1.274 which is run well no problem at all.

    I hope this problem gonna be fix soon because I love all new features on Sencha Cmd v4

  8. #8
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    898

    Default Java heap space

    I have this same problem with Sencha CMD 4.0.0.126 with big project.

    Can build long js file. always result erros or java heap space? Is there any workaround? I use Windows 7 64bits JVM 1.7.0 update 40
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  9. #9
    Sencha User
    Join Date
    Jan 2012
    Posts
    43

    Default

    We had some performance related fixes that didn't make it in until after the RC build (4.0.0.161), so I'd recommend trying again with the GA release when it becomes available, which should be any day now.

  10. #10
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    898

    Default

    Quote Originally Posted by kkrohe View Post
    We had some performance related fixes that didn't make it in until after the RC build (4.0.0.161), so I'd recommend trying again with the GA release when it becomes available, which should be any day now.
    Maybe this week? Soon?
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Page 1 of 2 12 LastLast

Posting Permissions

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