OOM in system_server and finding the root cause

275 views
Skip to first unread message

art...@samsung.com

unread,
Mar 13, 2018, 10:30:58 AM3/13/18
to android-platform
Hello

Have you even seen OutOfMemoryError in system server?
If yes, how do you find the root case of OOM? Do you have any tools that help finding the root cause in production code or during development?

Haili Wang

unread,
Apr 20, 2018, 1:45:10 PM4/20/18
to android-platform
do you have more logs?

Android should have low memory killer kicks in before kernel space OOM killer. Low memory killer has log like "Low on memory". Depends on different types of process, and it's determined by framework/base/services/core/java/com/android/server/am/ProcessList.java

Some vendors would set a very high limit for background process killing to preserve memory for foreground app. However such behavior may not be desirable for different use cases. 

abu.alanoud

unread,
Oct 13, 2018, 10:51:13 PM10/13/18
to android-platform
Reply all
Reply to author
Forward
0 new messages