Android core issue-ams faq analysis, androidams

Source: Internet
Author: User

Android core issue-ams faq analysis, androidams

AMS has the following common problems:

1. low memory problems

2. Performance problems

3. Activity jump

4. Slow Broadcast Reception

Low memory problems:

1. view the keyword sendsigkill/lowmemorykiller in the kernel. log.

2. Search and view the application process name in the preceding search results. Note that the process name in kernel. log is printed as the last 15 digits.

Performance problems:

You need to carefully compare and analyze the specific time consumption and current system status in event. log, system. log, and main. log.

Activity jump problem:

Use the adb shelldumpsys activity to print the current system activity stack information to understand the specific jump

Slow Broadcast Reception:

When a broadcast is sent, the static registered broadcast is sent in an ordered manner. The latter broadcast is sent only after the previous processing is completed. Therefore, the latter receives slowly.

To receive a broadcast, open the DEBUG_BROADCAST macro in ActivityManagerService. java to analyze the broadcast sending process.


Several common Debugging commands:

• Cat/proc/meminfo • adb shell ps • cat/proc/<pid>/oom_score_adj • kill-3 <pid> • dumpsys activity • procrank • top

Common am log:


Common Causes of activity record destruction:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.