Skip to main content

OutOfMemorryError on phoneME

5 replies [Last post]
rafdutra
Offline
Joined: 2009-01-27
Points: 0

Hi everybody.

I'm having a Out Of Memory Error when I import a JSON String from my server that picks some data in the database.

The String size is about 1MB and before I persist it on my device, this message is displayed!

Can anyone help me?

I'm using this phoneME (http://www.cs.kuleuven.ac.be/~davy/phoneme/?q=node/1).

Sorry for my English!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rafdutra
Offline
Joined: 2009-01-27
Points: 0

Oh sorry, I forgot to say.

I'm using phoneME feature on a Windows CE device to run a MIDlet.
So, the .lnk that I'm using do not have a CVM parameter and the VM does not have a CVM.EXE.

Here is the .lnk:

255#"\phoneme\midp\bin\arm\runMidlet.exe" -classpathext "\phoneme\midp\examples\Test.jar" "\IPSM\phoneme\midp\examples\Test.jad" br.com.test.midlet.Midlet

rafdutra
Offline
Joined: 2009-01-27
Points: 0

Nobody??

I still have this problem with the memory in the phoneME feature!!
I don't know if I can use these parameters (Xmx ...) with the phoneME Feature!

Please. I'm getting crazy!
Thanks!

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

I would recommend taking a serious look at your 1 MB JSON String - a single piece of data this size will be difficult to handle on most mobile platforms. You may have to partition your data according to the resource limitations of mobile and embedded platforms.

-- Terrence

davyp
Offline
Joined: 2007-01-03
Points: 0

Try to increase the heap space to e.g. 8MB by adding a few parameters to cvm.exe:

cvm.exe -Xopt:useLargeMemoryArea=true -Xmx8m ...

Davy

rafdutra
Offline
Joined: 2009-01-27
Points: 0

Have phoneME a max heap space? Or the limit of the heap size is the memory of the device?