View Single Post
Posts: 97 | Thanked: 55 times | Joined on Jun 2010
#24
I poked around and couldn't figure out how to pass max heap size to cvm through runmidlet, maybe there is a cleaner way but I ended up using the full command line for the Exec property in my googlemaps.desktop file, notice the -Xmx parameter which now sets max heap size to 24m instead of default 12:

Code:
Exec=/opt/phoneme/bin/cvm -Xmx24m -Xbootclasspath/a:/opt/phoneme/lib/jsr234.jar -Dmicroedition.profiles=MIDP-2.1 -Dmicroedition.location.version=1.0 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/opt/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader sun.misc.MIDPLauncher -suitepath /opt/phoneme/googlemaps.jar -jadpath /opt/phoneme/googlemaps.jad -1 com.google.googlenav.GoogleNav
With this value I couldn't trigger the low memory condition which used to occur fairly soon after enabling traffic and zooming in/out several times. In theory this may help to speed up the app somewhat as the garbage collector doesn't have to run full sweeps as often.

Last edited by Val Demar; 2013-01-02 at 08:41.
 

The Following 3 Users Say Thank You to Val Demar For This Useful Post: