The flag you are using increase the amount of RAM allocated to the dx tool. 
It has nothing to do with your application when it runs on a phone. Besides, 
1 GB of RAM is waaaaay higher than the entire available RAM on a phone.

Your app is just using too much memory :)

On Oct 12, 2008 8:49 PM, "sunil" <[EMAIL PROTECTED]> wrote:


Hi Experts,
I am trying to run an matrix operation ( transpose) for a mxn matrix
where m=5400 rows and n=45 columns. It is crashing with the following
error message.

10-12 20:31:37.006: INFO/dalvikvm-heap(214): Clamp target GC heap from
17.970MB to 16.000MB
10-12 20:31:37.016: DEBUG/dalvikvm(214): GC freed 0 objects / 0 bytes
in 207ms
10-12 20:31:37.486: ERROR/dalvikvm-heap(214): Out of memory on a 89680-
byte allocation.
10-12 20:31:37.486: INFO/dalvikvm(214): "main" prio=5 tid=3 RUNNABLE
10-12 20:31:37.486: INFO/dalvikvm(214):   | group="main" sCount=0
dsCount=0 s=0 obj=0x400113a8
10-12 20:31:37.496: INFO/dalvikvm(214):   | sysTid=214 nice=0
sched=0/0 handle=-1090589540
10-12 20:31:37.496: INFO/dalvikvm(214):   at
java.lang.reflect.Array.createMultiArray(Native Method)
10-12 20:31:37.496: INFO/dalvikvm(214):   at
java.lang.reflect.Array.newInstance(Array.java:389)

I am getting a dalvik sig 11 core dump.


I have already added more working memory by updating dx.bat file with -
Xms900M -Xmx1024M.

My question is that how to optimize memory utilization and what else
can do to ensure my app runs properly.

Looking for your expert opinion asap.

thanks
Sunil


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to