Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I noticed that my Motorola Droid, running rooted 2.2 Froyo, has been acting sluggish sometimes. I fired up the terminal emulator, and ran top, and noticed that /system/bin/mediaserver is using around 90% of my CPU.

What does this program do? Is it safe to kill it? How can I prevent it from slowing down my phone in the future?

Some quick Googling has turned up other people with the same problem, but not really any answers.

share|improve this question

3 Answers 3

The media server is responsible for indexing the images, videos and music files on the device. It then is queried by programs like the media gallery or the music player for filtered lists of certain media types.

I think that it would be restarted pretty fast after killing. I would assume that somehow there are many write options on the sd card and the media server will constantly reindex your mass storage. But I don't know a solution for that.

share|improve this answer
1  
Okay, thanks. I noticed this behavior after I moved a bunch of my apps out of internal memory, and onto the SD card, so I suppose all of those writes explains why mediaserver went a little crazy. –  pkaeding Aug 9 '10 at 20:22

As Janusz explained, this program scans and indexes media files on the internal and removable storage. Sometimes the media scanner using a lot of CPU can be a result of it trying to scan one or more corrupted files. This is usually a symptom of your SD card starting to fail. Try scanning your SD card's filesystem for errors on a proper computer (e.g. using fsck on a GNU/Linux system, or Scandisk on Windows). If any errors are detected and fixed, put the SD card back in your phone and see if the problem goes away.

share|improve this answer

Simplest solution is, if you can identify where in memory card you have junk image files, then just place a .nomedia file. Which avoids scanning that perticular folder for indexing media files (Note: It will also not appear in gallery).

In my case I did that to Whatsapp images folder, which had hell lot of images but I dont want it to be appearing in my gallery. So I thought it would work for me.

Same way you find out such content and then try to clean up unwanted stuff, also look for any corrupted media files also and remove them.

This is a dirty hack, not permanent fix.

share|improve this answer
1  
The title is still unanswered: "What is /system/bin/mediaserver on Android, and why is it pegging the CPU?" –  Firelord Jul 28 at 12:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.