Skip to main content

How to Increase Heap memory in phoneME feature MR2

3 replies [Last post]
senthilkumar05
Offline
Joined: 2006-10-26
Points: 0

Hi, My Application requires 2 MB of heap memory, Can anyone tell me , how to increase the heap memory in PhoneME feature MR2,?
and also, i want to know, how much heap is used, and available during
i) running the whole application.
ii) while running the application, how much heap memory is allocated to creating and drawing images
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
msuman
Offline
Joined: 2005-01-19
Points: 0

You can increase the heap size using -Xms option for the CVM.like CVM -Xms 10m Main

You can also try to set the GC parameters like -Xgc:youngGen=2M usually this value should be 1/8 of your total heap size(Give only integer values do not give any decimal values here). I also have another problem looks like -Xms option in not working correctly in phoneme. I need to look at how the VM args are being parsed.

senthilkumar05
Offline
Joined: 2006-10-26
Points: 0

I have configured PhoneME MR2, and QT 4.2.0 on linux, and running my app, is there any way to monitor the network status, and memory status, Pls let me know

msuman
Offline
Joined: 2005-01-19
Points: 0

I am not sure how you can monitor network but you can monitor memory usage of the total system in linux using the following command
cat /proc/meminfo
This will also include your heap memory usage.