You Are Here:

Community: Developer Discussion Boards

#1 Old Optimizing Large Application....Please help. - 2008-07-30, 11:20

Join Date: Jul 2008
Posts: 13
sandeepsandeep
Offline
Registered User
Hello everyone,

I have one application with
1) lots of forms
2) each form having some kind of RMS operation

so here i have problem with memory usage.
In nokia it shows OutOfMemoryError while using.
can anyone suggest some good design strategy for improving this application, because i have so many forms and each with average 10 textfields and 5 chechboxes, so maintaining these objects is really very hard,but i have adapted following convention.
1) no System.out.println
2) all possible objects public static final.

if you have any other suggestions please let me know so at least i can run the application with average performance.
Reply With Quote

#2 Old Re: Optimizing Large Application....Please help. - 2008-07-30, 18:28

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Quote:
2) all possible objects public static final.
I would start from here and not have all possible objects "static" as that way they use memory all the time, not just when you need them.

But as you description of the application is quite vague and also saying that the MIDlet shows out of memory error while using is not very descriptive (does that mean immediately at app start, or something else) it is hard to say if changing that approach would change anything.

Hartti
Reply With Quote

#3 Old Re: Optimizing Large Application....Please help. - 2008-07-31, 10:22

Join Date: Jul 2008
Posts: 13
sandeepsandeep
Offline
Registered User
thanks for reply

it shows out of memory while doing big operation on RMS.or some processing.it doesn't give any error at starting application.
only when we do any time consuming (especially RMS related work).

may i use the approach mentioned below.

1) not to make any objects until they are necessary
2) when component is being displayed only that period of time keep objects in memory(not before not after), in all other cases keep it null for gc(after using that component).


Regards,
Sandeep
Reply With Quote

#4 Old Re: Optimizing Large Application....Please help. - 2008-07-31, 20:01

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
How much data are we talking about? where does the data come from?
Which phone models are you testing this on?

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with a signed application Alfury Mobile Java Networking & Messaging & Security 7 2008-03-27 06:15
downloading a java application with a 9 kb from wap displays file too large kareem_sami_uae Mobile Java General 2 2007-06-04 11:45
3250: Too many SMSs received crash the application kewldeep Mobile Java General 4 2007-01-27 01:00
Not able to deploy an updated application on the mobile -it deploys a new application kishban Mobile Java General 0 2005-05-28 11:20
Optimizing J2ME application size jnassif Mobile Java General 2 2002-05-17 10:48

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia