You Are Here:

Community: Developer Discussion Boards

#1 Old Question Max RMS size for S40 3rd Edition? - 2006-08-08, 18:16

Join Date: Mar 2003
Posts: 77
moamoa
Offline
Regular Contributor
My application is failing after a while with out of memory on a RecordStore.set() call.

I'm using a 6233 (S40 3rd Ed)

Question 1.

What is the max RMS size I can set on this device?

Question 2.

If I can't make it big enough I could use the JSR-75 FileConnection stuff. With RMS the writing of records for a very simple database is possible. But I can't see how this kind of functionality can be done via FileConnection as there seems to be no seek type operation from with a DataOutputStream and so on.

How can a simple database with record updating (as in RMS) be done is JSR-75?
Reply With Quote

#2 Old Re: Max RMS size for S40 3rd Edition? - 2006-08-08, 19:04

Join Date: Nov 2003
Posts: 3,641
Location: Bangalore , India
Send a message via Yahoo to balagopalks
balagopalks's Avatar
balagopalks
Offline
Forum Nokia Expert
Quote:
Originally Posted by moamoa
What is the max RMS size I can set on this device?
As per Forum_Nokia_Technical_Library_v1_25

RecordStore maximum size has been increased in Series 40 3rd Edition devices and some Series 40 2nd Edition devices

Overview
Previously there has been a limit of 32K for a single RecordStore in Series 40 devices. Now it has been increased.

Reported against
S60 2nd Edition and S60 3rd Edition, Nokia 6230i, Nokia 8800

Detailed description
The maximum size of a RecordStore has been increased in the latest Series 40 devices. The maximum size varies between devices, but it can be asked by using the RecordStore.getSizeAvailable() method. The maximum size is, for example, in the Nokia 6230i approximately 130kB and in the Nokia 6270 260kB. The minimum record store size is 32K.

Hope this link is of some help!
http://discussion.forum.nokia.com/fo...ht=RecordStore

Regards
Gopal
Reply With Quote

#3 Old Re: Max RMS size for S40 3rd Edition? - 2006-08-08, 21:25

Join Date: Mar 2003
Posts: 77
moamoa
Offline
Regular Contributor
If the max size varies across S40 models, where is the definative list? Should it not be on the phone specification section on Nokia developer site?

Surely there must be a better way than buying each S40 model in order to run a test application that does rs.getSizeAvailable() ?
Reply With Quote

#4 Old Re: Max RMS size for S40 3rd Edition? - 2006-08-10, 02:19

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

unfortunately that varies between implementation and between manufacturers,
as basic rule we should always follow specs (midp 2.0 here):
Quote:
Storage Limits

The amount of memory available for record-based data storage varies from device to device. The MIDP specification requires devices to reserve at least 8K of non-volatile memory for persistent data storage. The specification does not place any limits on the size of an individual record, but space constraints will vary from device to device. RMS provides methods for determining the size of an individual record, the total size of a record store, and how much memory for data storage remains. Remember that persistent memory is a shared, scarce resource, so be frugal in its use.
Any MIDlet suite that uses RMS should specify the minimum number of bytes of data storage it requires, by setting the MIDlet-Data-Size attribute, in both the JAR manifest and the application descriptor. Do not set this value any larger than absolutely necessary, as the device may refuse to install a MIDlet suite whose data storage requirements exceed the space available. If the attribute is missing, the device assumes the MIDlet suite requires no space for data storage. In practice, most devices allow applications to exceed their stated space requirements, but do not depend on this behavior.

Note that some MIDP implementations require you to define additional attributes related to storage requirements -- check device documentation for details.
http://developers.sun.com/techtopics...s/databaserms/

regards,
Peter
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
Max RMS size ronitr Mobile Java General 4 2008-09-04 06:25
RAM size of a thread in 3rd edition sivasankari21 General Symbian C++ 0 2006-07-07 13:35
SDK 3rd edition Emulator screen size? khurshed79 Symbian Tools & SDKs 0 2006-07-06 14:17
Audio Input Stream on N80 tkaihock Symbian Media (Graphics & Sounds) 9 2006-06-30 10:15
The correct meaning of MAX JAR size bigrio Mobile Java General 0 2004-11-13 12:03

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