1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    132
    Answers
    2
    Vote Rating
    1
    darkling235 is on a distinguished road

      0  

    Default Unanswered: Memory Management

    Unanswered: Memory Management


    Are there any good resources on how to manage memory in GXT/GWT?
    I'm not really sure how the garbage collector runs in different browsers and I worry that I could create memory leaks while moving and overwriting lists.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    JavaScript's memory model is more or less like Java's own memory model - don't reference something, and it will go away when the VM next runs its garbage collection routine. In the browser, you have no control over running gc manually, but that's amount the main difference. As a result, writing GWT/Java as you would normal Java will typically result in the same basic memory patterns - when you remove an object from a list, if it is no longer referenced anywhere else (in another list, from another object, etc), it will be deleted.

    When chasing a memory leak, the easiest way to start is to compile with style=PRETTY, and debug your app in Chrome with the inspector active. Take a heap snapshot, use the app further until it should be in the same state (open/close a window for example), and take another snapshot. You usually will want to repeat this several times, and compare the last several snapshots to see what has been created but not deleted - often the first few times your app is still building new objects as you open windows for the first time.

    The one danger area is when you are building your own container widgets and calling the attach/detach methods manually. This is an area where is it possible to introduce memory leaks in certain browsers. Check out https://developers.google.com/web-to..._leaks_and_you for a quick summary on this topic, and the role of attach/detach methods in this process.

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    132
    Answers
    2
    Vote Rating
    1
    darkling235 is on a distinguished road

      0  

    Default


    Thank you. I'll try that

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi