If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
vipintomer
Posts: 41
Registered: ‎05-03-2012
My Device: 9800 torch
My Carrier: -

Re: Device memory is Low issue for an WebWork app

Hi,

 

I am developing an WebWork app which calls a lot of html pages and java script function on these pages and display it on the page. The problem we have encountered is that after we have install it on 9800 torch ,after we have used the app to load data for a few times, the app will say "Device Memory is Low" and request to close some opened application......

 

On  opened my application only and we have only used it for while, and after a few more click, the system will force the app to quit.

 

Please help me out of this .

 

Please suggest if there any professional help for the same.

 

I have applied memory cleaning enable on device and increase the size of cache used in app by setting it in config file . Even when i take 2 or 3 html pages with 4-5 images and navigate between tham i got the same error.

 

My cod file is of size 1.2MB and it takes upto 40 MB at run time and going over and gets close by OS itself forcefully.

 

Can we clear cache between html pages . I have used localstorage.clean(); on html page as well but no sol.

 

Thanks in advance for any help in this.

 

Vipin

 

RIM PLEASE HELP OR ANYONE BETTER THEN RIM, PLEASE HELP!!!

Please use plain text.
Contributor
vipintomer
Posts: 41
Registered: ‎05-03-2012
My Device: 9800 torch
My Carrier: -

Re: Device memory is Low issue for an WebWork app

Please give some suggestion to run this app with phone gap resolving this issue

Please use plain text.
New Contributor
chrisbevan
Posts: 2
Registered: ‎04-25-2012
My Device: developer
My Carrier: developer

Re: Device memory is Low issue for an WebWork app

I have the same sort of problem (see earlier post)

 

Out of interest, how did you change the cache size in the config file?

Please use plain text.
Contributor
vipintomer
Posts: 41
Registered: ‎05-03-2012
My Device: 9800 torch
My Carrier: -

Re: Device memory is Low issue for an WebWork app

 

 

enter the following line in config file of your bb app

 

 

<rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256" />
Please use plain text.
Contributor
vipintomer
Posts: 41
Registered: ‎05-03-2012
My Device: 9800 torch
My Carrier: -

Re: Device memory is Low issue for an WebWork app

Please use plain text.
Trusted Contributor
lakshmanan
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles
My Carrier: app development

Re: Device memory is Low issue for an WebWork app

Hello Friends,

 

In my phonegap application i used facebook and twitter through javascript extension.. I use latest webworks sdk..

 

Whenever i login the facebook account it goes to my facebook home screen and then immediately it shows me this alert message "Memory is low.. Some of the applications will be closed" and then it crashes my application..

 

Memory issue is there.. Can anyone help me to solve this problem..

 

Regards,

Lakshmanan

 

 

Please use plain text.
Trusted Contributor
lakshmanan
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles
My Carrier: app development

Device memory is Low issue for an WebWork app

Hello Friends,

 

Any solution for this..

 

Regards,

lakshmanan

Please use plain text.
Contributor
leocrawf
Posts: 47
Registered: ‎06-06-2011
My Device: bolt2
My Carrier: digicel jamaica

Re: Device memory is Low issue for an WebWork app

To be frank, I have pretty much given up on blackberry development. Its just too frustrating to get a really good app done that is fuctionally rich and data intensive.This is of course for the bb5 devices which in my market account for over 90% of all users.

Please use plain text.
Trusted Contributor
lakshmanan
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles
My Carrier: app development

Re: Device memory is Low issue for an WebWork app

leocrawf,

 

I tested my application in 9800 torch..

 

I am also too frustrating and struggling by this memory issue..

 

I am also used child browser plugin for blackberry.. When i open some external url in child browser it shows me the same memory issue message like Memory is very low.. some applications will be closed..

 

The latest webworks sdk also didnt able to solve my problem..

 

Waiting for reply from any RIM guys..

 

Regards,

Lakshmanan

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Device memory is Low issue for an WebWork app

On a BlackBerry smartphone running BB6/BB7 there is a finite amount of memory set aside for web views which are used in a WebWorks application or a Java application.  BB5(doesn't have webkit)/BB10/PlayBook do not run this way.  They consume the shared memory on the device.

 

The amount of physically allocated memory varies between device models, but lets say on average it's approximately 40MB of RAM.  This amount of memory is allocated for both running WebKit (loading the engine into memory, running JavaScript, displaying pages, computing layout, scaling images, etc.) and also loading your content in the view.  

 

All apps on the device share the same WebKit instance so everyone shares the same 40MB space.  Think of each app using a web view as creating a "virtual tab" in the same web kit instance.

 

Once one or more applications use up all the physical memory allocated for that process there isn't anything that can be done to grow the amount of memory.. the cup is full of water.

 

JavaScript takes some time to garbage collect any objects/images that you discard so you need to also take that into account.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.