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

2 Answers 2

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

Your Answer

 
discard

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