tags:

views:

9950

answers:

18

I have a 2.67GHz Celeron Processor, 1.21GBs of RAM on a x86 Windows XP Pro machine. My understanding is that the emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I if possible fix this problem. Even if it starts and loads home screen it is very sluggish. Any help would be appreciated guys thanks. I have tried the Eclipse IDE in Galileos, and Ganymede.

+3  A: 

The emulator is really slow. On my 3.6Ghz Core 2 Duo it also takes forever...

Simon H.
+9  A: 

It is not a problem with your environment, it is just that the emulator is very slow.

Practically I use a real phone to do my tests. It is faster and tests are more realistic. But if you want to test your application on a lot of different Android versions and don't want to buy several phones, you will have to use the emulator from time to time.

Nicolas Raoul
+1  A: 

Now I'll try do some to solve that problem, guys look here http://developer.android.com/guide/developing/tools/emulator.html Possibly that option ( -cpu-delay ) can help?

toosla
This is interesting. It looks like the default value is probably zero? I wonder if this is intended to slow the emulator down _even more_?
Ben Gotow
Wouldn't you want the default value to be zero for it to be as fast as possible? Sounds like a good default to me.
Jay Askren
+1  A: 

Try to disable your antivirus. Maybe it will make emulator a little bit faster.

Fedor
I found this to be true as well -- I removed AVG Free and installed MS Security Essentials, and the emulator starts noticeably faster. YMMV.
Guy Starbuck
+6  A: 

I've noticed that emulator starts much faster if there's no DDMS connected. So if you start emulator from Virtual Device Manager "SDK Setup.exe" and Eclipse is not started emulator works faster. If you start emulator from Eclipse - DDMS is there, so sometimes emulator is extremely slow, but sometimes it's faster.

Fedor
Interesting - thanks!
Ben Gotow
+2  A: 

Some problem here. Ubuntu Karmic 9.10, Eclipse 3.5 Ganymede, 1.73GHz, 1GB RAM. Tried different AVDs and different Targets (Android 2.1 and 1.6). All extremely slow. Sometimes the emulator runs ok with little CPU usage, then it suddenly keeps running at 100%.

Any ideas yet?

TIA Martin

Martin
+11  A: 

The startup of the emulator is very slow. The good thing is that you only need to start the emulator once. If the emulator is already running and you run your app again, the emulator reinstalls the app relatively quickly. Of course, if you want to know how fast it will run on a phone, it is best to test it on a real phone.

Jay Askren
taking a couple hours to start on a 3ghz cpu is hardly "good to just wait once".
gcb
If it takes a couple of hours, there is probably something else wrong. It only takes a couple of minutes for me.
Jay Askren
+4  A: 

Hi there,

Just to add a little more to this.

I have a dual boot system with Windows 7 and Karmic Koala.

On my Ubuntu installation my emulator is also running very slow.

On Windows 7 although the emulator takes a few minutes to start up once it has started it seems to run fine (well at least a lot faster than the Ubuntu installation).

Usually I would assume that my Linux installation would have ran the emulator faster than Windows.

So could it be issues with the JDK?

I am currently running the Java6 SDK java-6-sun-1.6.0.15 and my 'java -version' output is:

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)

Anything similar on others machines?

Eggsy

eggsy84
Same problem here I'm on Karmic , I have a much slower system than most though (Atom 330 @ 2.1Ghz)java version "1.6.0_16"Java(TM) SE Runtime Environment (build 1.6.0_16-b01)Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
dangerstat
+1  A: 

To add further information to this.

I have recently upgraded my Ubuntu installation to Lucid Ubuntu 10.04 LTS which in turn updated my Java version to:

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

And now the emulator (although takes a while to start) seems to be running faster than previously?

Might be worth people upgrading their JVM?

Eggsy

eggsy84
A: 

Same problem faced, emulator worked comparatively faster in first experiences, and then after 2-3 times of use, it has become extremely slow to respond the loaded application. [my config: 2.3 Ghz, 3GB DDR2, Windws-7, tried with disabled antivirus as well]. Solutions ? Can someone clarify my doubt that what has DDMS to do with slow response of emulator ?

itska
A: 

Really slow on MacOSX too ... :/

Mitch
A: 

Me too. Booting of android takes ax. 4 minutes and very long touch/click respond time. When i drag'n'dropping, it lags. My config is I C2D E6550 OC @ 2.5 GHz; 3 GB RAM

Majko
A: 

I switched from using the OpenJDK (on Ubuntu 10.04) to Sun Java and now (although still very slow) the emulator at least gets going. On the OpenJDK the emulator was hanging on the boot process (showing 'android' text in the mobile window) and never go to the mobile display.

Alex Little
A: 

Here is a much faster emulator, but not from Google. It is from youwave.com. It is cool. Check this video out http://www.youtube.com/watch?v=zAV4Jbmuhc4 to see how fast it is.

mbg
+2  A: 

You can create emulator.bat with follow command to start the emulator. It will start faster.

emulator.exe -cpu-delay 0 -no-boot-anim -avd avd

andgps
A: 

The batch file running outside of Eclipse worked for me. Thanks!

I will give the youwave.com emulator a try later.

Greg
+1  A: 

I thought it was slow when I was running Vista 32 bit. I updated to Windows 7 Ultimatex 64bit and it's even slower!

Alex
+1  A: 

Installed LauncherPro apk from their website and my emulator got at least twice as fast. System is Debian Squeeze.

uldics