Persistent zombie process in android makes network sockets busy
In my device I have a program that works well, but it works several times and when I run next time it will give me an error and it will work again and more and more ..
After searching for the problem, I found that the program after a crash goes into the "Zombie" state and will not release the "Network server socket" resources even after starting the next program of execution, but errors that "Server sockets are already in use!". and crash!
Note: my program package name is AndroidEX.AndroidEX, but the zombie process name is 'oidEX.AndroidEX'
I tried to kill the zombie process, but I found that we cannot kill the zombie process because it has already died, I killed its PPID (zygote) and the android system will go to a smooth restart, but after booting .. I see zombies here but also not cleared, but PPID of Zombies changed to 1 (init process!) does anyone know what I should do to clean up the zombie process and free up network sockets?
I tried them for killing and clearing zombies at ADB:
adb shell kill ZOMBIES_PID
adb shell kills ZOMBIES_PPID
adb shell busybox killall zygote
adb shell busybox killall system_server
adb shell busybox killall init
adb shell am force-stop AndroidEX.AndroidEX
adb shell am force-stop oidEX.AndroidEX
adb shell busybox killall AndroidEX.AnadroidEX
But the zombie process didn't go! (Android 4.1 version)
Network sockets in netstat:
source to share
No one has answered this question yet
Check out similar questions: