1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    41
    Vote Rating
    0
    Answers
    1
    prasanna_hr is on a distinguished road

      0  

    Default Unanswered: High memory consumption

    Unanswered: High memory consumption


    We have observed high memory consumption by the applications when run on devices like iPhone (4) and Andorid (Samsung Galaxy).

    Even a simplest of the applications (code below) takes upwards of 15 mb memory on the device. The way we measured it was using a system utility app that shows free memory in the device. Free memory fell by 10 mb as soon as the browser (safari) was started. It fell further 15 mb as soon as the app started.

    Is there something wrong in the app/browser setting? This kind of memory consumption is crashing our application which has things like carousels and lists. This behavior is observed even with the app that was packaged with jsbuilder.

    Any pointers would be highly appreciated

    Code:
    <html>
    <head>
    <meta charset="UTF-8" />
    <title>My Panel</title>
    
    
    <link rel="stylesheet" type="text/css" media="screen, projection, print" href="../../resources/css/sencha-touch.css">
    <link rel="stylesheet" type="text/css" media="screen, projection, print" href="app.css">
    
    
    <script src="../../sencha-touch-debug.js" type="text/javascript" charset="utf-8"></script>
    <script src="app/app.js" type="text/javascript" charset="utf-8"></script>
    
    
    
    
    </head>
    <body/>
    
    
    </body>
    </html>
    Code:
    Ext.Loader.setConfig({
        enabled : true,
        paths : {
            'MyApp' : 'app',
        }
    });
    
    
    
    
    Ext.setup({    
        viewport : {
            autoMaximize : ((Ext.os.is('iOS'))&& (location.href.indexOf('.app') != -1)) ? false : true
        },
        onReady : function() {    
        
            Ext.create('Ext.app.Application', {
                name : 'MyApp',
                fullscreen : true,
                appFolder : 'app',
                launch : function() {
                
                        var mypanel = Ext.create('Ext.Panel', {
                            html:'My Panel' 
                        });
                        
                        Ext.Viewport.add(mypanel);
                    }
            
            });
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Moved to the ST2 Q&A forum.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1