Application memory usage guidance

I have an application that receives and displays the text in a window. Happens more in addition to text, more text is displayed (available through scrolling).

I know there is a point where I have to pull the text out of the screen, to limit the use of memory.

The problem I encountered is that I've not found a good way to determine where I should limit the amount of text that is displayed - with regard to the use of the memory.

I've searched the forums and poured on the api documentation, but have not yet found a way to determine the amount of text will take too much memory.

Is there something in the docs that I missed?

Not an area of expertise (you will see), but since nobody else has replied, here's my 2 p.

Most devices, even the oldest, will have megabytes of memory available for the use of the application.  The BlackBerry uses Unicode, each screen character requires 2 bytes.  There are some an extra charge for a string in terms of management objects, but nevertheless, you are looking to 500 000 characters for each MB of storage.  Very rough usage figures, on the "BOLD" in a typical font, you get about 11 lines at up to 40 characters on a line, so we can say 500 characters is 1 page.  So roughly 1 megabyte will hold 1000 pages.  So the limitation on the amount of text that you put in the display won't be the memory, it will be its usefulness for the user.

Given my experience with send and receive e-mails on the device, I recommend display over 4 pages to the user, so limit your scope to about 2,000 characters - not because it is a restriction of the memory, but because users dislike trawl by more text than that.

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • the compiled code application memory usage differences for Win XP and Win 7 code compiled.

    I have an application developed in visual studio 6.0 on windows XP computer. Recently, I changed the code of Windows XP build environment to Windows 7.

    When the application is run (nine with Win 7 compilation) he gives issues like the Application is locked and does respond to any event.

    following things are associated with the application environment.

    -Oracle database 10g

    version of the compilation OS - Windows 7

    the same version of code with the compilation of Windows XP does not any problems at all.

    Are there specific windows the settings necessary to solve the problems of application with Win 7 the compiled code.

    all suggestions will be of great help.

    Thank you

    Deepak

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • How can I check the JVM memory usage?

    Hi all

    I had a number of applications that run in Weblogic running in the same JVM. Is there a way to monitor the memory usage of the JVM heap for a particular application?

    If I do
    ps -ef | grep java
    I can see the process, but how can I check the FMV of each of the applications memory usage? Thank you very much.

    No Linux command will be made available within a JAVA virtual machine running an application server and understand how much his memory belongs to a specific web - app.

  • How Profilling memory in the java application BB usage?

    Hi all

    I want to know is it possible to profile memory usage of an application (process) in the java program of The BB. I want to check that the memory of the uses of my app in my code.

    Can someone help me?

    Thanks for your help.

    The JDE has a high profile tools that I'm sure will do what you need to do.  You will find that he documented in the JDE, in the BlackBerry Java Applications debugging.  The general process (or at least, how I usually use) is to set a breakpoint at the beginning and at the end of the code I want to analyze.  When I hit the breakpoint in the beginning, I reset the stats, let it go all the way and then to spot the differences!

  • Application download blackBerry Smartphones has failed - the memory usage decreased

    Hello

    I have a Verizon Storm 2. I tried twice to download Sea Storm Animated Themes. torwards the end, the download fails. buy my "memory usage" declines, even if the download has failed. How can I erase what is downloaded or what I need to do to regain my memory space?

    Thank you

    MM

    Reboot: The BlackBerry device powered time, remove the battery for a few seconds and then reinsert the battery to restart.

  • creeping memory usage when you use NEITHER-9477

    Hi, I write output digital (4 outputs line, on request, 10 updates per second) in a loop using the DAQ assistant. When I use a NOR-9477 as the device output application use memory increases about 10 MB for 15 minutes and will eventually run out of memory.

    If I use a USB6009 as the output device, the memory usage is stable. Same code is used, the only difference is the physical channel.

    Any suggestions as to what might cause this behavior?

    Thanks for the tip Ravensfan.

    To distill the code down for the most part, one of the two VI is leaks memory - the NOR-9477 one. The other not...

    In any case, the solution to my problem is to convert the express VI DAQmx code.

  • Memory usage analysis

    Hi all

    I need to test the memory usage of the application that I'm developing. Can someone please suggest a tool?

    Thank you much in advance.

    Eclipse includes tools, do a search for 'Profile' in the forum. and you will find a few references including this one:

    http://supportforums.BlackBerry.com/T5/Java-development/profiling-with-Eclipse-plugin/m-p/557767

  • QNetworkAccessManager limiting the memory usage when no head

    I have a long application works without head that downloads files from 6 MB upwards on a web server. Now using QNetworkAccessManager to view the file, I see the memory usage, pull up and soon to exceed the limit of 3 MB.

    The QNetworkAccessManager then suffers bad allocations and crashes.

    I was hoping would be sort of the QNetworkAccessManager chunk the data of the file on the disk and keep low memory footprint, but it seems he is trying to remove all of the file.

    All means to limit or control the behavior of the QNetworkAccessManager?

    See you soon

    Paul.

    Hello.

    We started an internal investigation to verify the QNetworkAccessManager implementation.  A suggestion to try next was to try using libcurl to perform the download of files.

  • Monitoring the memory usage on iOS using the Stats class

    I was check memory usage on an application I'm developing for iOS using Stats class https://github.com/mrdoob/Hi-ReS-Stats ( http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c3-315cd077124319488fd-7fff.html#WS 948100b6829bd5a61637f0a412623fd0543-8000).

    I added the class Stats to my project and redeployed and, Ouch, reported in Stats memory usage ramp upward (quite slowly) even when there is nothing going on in the application (just displaying a loaded bitmap).

    To try to find the question, I created a project with a test class that extends Sprite with just this single call in the constructor: -.

    addChild (New Stats());

    I have deployed to the device to check that he didn't swallow all of memory.

    But I was surprised to observe the use of the memory to crawl upward and upward (to 5) before kicking in some garbage and takes memory down. I left it running and then he slipped once again more than 7.5 this time before being deported back down to just below 3.

    So 2 questions that I would be grateful any feedback/comments/thoughts on related: -.

    1 is this normal (i.e. memory creeping up when there is nothing else than to the Stats in the project)?

    2 - What is the best way to monitor the memory usage in an application? Good enough stats - is Stats itself causing the memory usage?

    All the best guys!

    See also thread (http://forums.adobe.com/message/4280020#4280020)

    My conclusions are:-

    -If you run an application and let idle, use memory slips gradually upward (probably in memory is used to perform the Calc/refresh the display, etc.)

    -Periodic garbage collection occurs and memory is brought back down

    -This cycle could be more than 5 min.

    Work with your real application and memory will increase and be published much more quickly/regularly.

    -It's probably worth making an initial check running on your desktop computer to smooth out all the initial problems

  • Best way to detect the memory usage etc. on a mobile device for debugging?

    Hello

    What is the best way, during development, to detect the use of memory and other while the application is running on the device?

    So you can test it and see if something is the cause in the wild. I do an iOS/Android device so I want to try on fast and slow both phones and I have a script which ' add on ' memory usage as long as the user continues. I would like for this monitor (app, or the debugger) to see what is happening.

    Any ideas?

    Thank you

    Hello!

    My debugger favorite, by far, is "Debbuger Monster".

    Easy to use and very powerful!

    Go > http://demonsterdebugger.com/

  • Memory usage of Firefox flies away and crashes despite Reset etc.

    I use Windows Vista and recently, after he tried to update Java and Adobe plugins for Firefox browser last shot every time I use Firefox any open what really but especially if a video is open the memory usage keeps climbing and does not stop. Firefox crashes almost everytime. I tried the Reset, I tried to turn off and so on several plugins and others, and nothing has changed, but that the memory usage can climb higher and avoid crashing anymore. The fundamental problem of the memory usage crazy not stopped nor slowed down.

    It starts at an average use 200 k to 300 k, which was normal, except if he had run for hours or playback of videos for hours could go up to 800 k. For now, thirty minute walk with no video and four tabs is 1 300, 000 k. I don't know what does. I'll try to uninstall adobe and then use an earlier version but I have done so many things at this point, I'm curious to know who else has this problem. I have not tested the safemode, but despite everything I need a lot of these add-ons to what I use my browser for. I do not understand why the use of memory keeps climbing even when I do nothing. I run a system scan for virus etc, nothing. I know that I have an older video, its pilots updated card and I tried to turn on the option acceleration on and out also. Why Firefox would continue eating memory?

    The crash of the reports I receive look like this:
    BP-7cf4e751-66dB-49fc-8a05-083132130814
    BP-b680d967-eee5-44a7-a5e0-c1f422130814
    BP-5b457653-8B58-4ee0-80cc-32fe82130814
    BP-304b8b40-d4e5-4F36-AF10-de58e2130814

    Thanks to anyone who can help!

    Three of the four crash reports indicate a correlation with the Ghostery extension. The precise cause seems to be indeterminate. Can you make an exception for the video sites and see that allows, or try turning it off for 24 hours?

  • Extremely high after upgrade to Firefox 12 memory usage

    After I've upgraded to Firefox 12, I started frequently affected by hot air balloon Firefox memory usage extremely high (2-3 GB after a few minutes of navigation) light. Sometimes it will fall back down to a more reasonable level (a few hundreds of MB), sometimes it crashes (probably trying to garbage collect everything), and sometimes it crashes. Usually the thread crash cannot be determined, but when it's possible, it's in the garbage collection code ( https://crash-stats.mozilla.com/repor.../list?signature=js%3A%3Agc%3A%3AMarkChildren%28JSTracer * %2 js C + % 3A % 3Atypes % 3A % 3ATypeObject * 29% ).

    I managed to capture a subject: report memory when Firefox had about 1.5 GB and have attached an image.

    A couple of things I've tried. I have a lot of tabs open (although don't load it the tabs until the selected option is enabled), so I copied my profile, all kept my extensions enabled, but all my tabs closed. I then left an open page http://news.google.com/ and it worked very well for several days, while my original profile goes down several times a day.

    I also tried to disable most of my extensions, leaving the following extensions that I refuse to sail without:

    Adblock more
    BetterPrivacy
    NoScript
    PasswordMaker
    Views
    Priv3

    However, the problem still happens in this case.

    Don't know if this helps or not. I'm looking forward to trying Firefox 13 when it comes out.

    Never knew what was causing the problem, but have disappeared since the upgrade to Firefox 13, accidents and memory pathological use.

  • Firefox uses a huge amount of memory on my computer. I continue to receive alerts from high memory usage. Can I do to solve this problem?

    Firefox uses a huge amount of memory on my computer. I continue to receive alerts from high memory usage. Can I do to solve this problem?

    300-400 MB is not huge.

    How much RAM do you have?

    How AVG reports that Firefox uses?

  • withdraw the authorization allowing you to monitor the memory usage

    I now often have either force quit, restart and started having panic 'of the core"since I agree allow Firefox CPU usage monitor. I'm still on OS X 10.6.8 on my Mac. I got no problem with anything since installing this OS X.

    However, from time to time with the latest Firefox 7.0.1 installation I think the program or my computer 'blocks' and seems unresponsive. I left active Firefox and resident on my computer last night and once again, everything will be inadmissible. I opened the monitor activity and noticed that Firefox was consuming 283 MB of real memory (now 298,6 MB) and I have this one open another tab for the Seattle Times. I withdraw my permission to allow Firefox to watch my memory usage and need to know how to delete the cookie or what ever that governs)

    Go to Firefox > Preferences > advanced > general tab and uncheck the box "send performance data" more information here.

  • Message tells me that the memory usage has been 75%

    Hello

    I get (once a week) a message Bublé Tosh saying my memory usage average during the last 7 days was 75%.
    Should I be worried?

    I have 1014 MB and I don't exactly tell me a power user!

    Thanks for any help.

    Nick

    Don t think that there could be a problem is only a windows Vista notification message that informs you about the State of laptops OS.

Maybe you are looking for