Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OutOfMemory on both device and emulator

I am getting OutOfMemory Exception while running my project on both emulator and device(acer tablet and samsung galaxy) showing

the application launcher process com.android.launcher has stopped unexpectedly.

I've increase the virtual machine size of emulator to 256mb still there was no change in that exception. How can I avoid this exception? And how can I increase the process size of the heap for both emulator and device?

Please refer to this question

like image 900
Taruni Avatar asked Aug 23 '11 07:08

Taruni


1 Answers

I don't know what kind of application you are running, but it's possible that you have a memory leak in your application. Then it would not matter how big you set your virtual machine size.

Check out the video below on how to find memory leaks in your own application. Works on devices and emulators. (I found a very big memory leak last week, that I didn't know I had in the application)

http://www.youtube.com/watch?v=_CruQY55HOk&feature=player_embedded

like image 101
Peter Fortuin Avatar answered Sep 28 '22 05:09

Peter Fortuin