Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Too many open files error

Tags:

android

I am getting "Too many open files" error on a android device.

Is it possible for me list all open files by my app in Emulator?

Android lsof equivalent?

Please help.

like image 742
GJain Avatar asked Mar 13 '26 01:03

GJain


1 Answers

You can connect to emulator using adb shell command and then execute lsof command:

lsof | grep <PID>

where is process of your app (can be found in Android Studio if connected via debug) or you can use your app package name instead of PID - this should also work

like image 111
Alex Radzishevsky Avatar answered Mar 17 '26 04:03

Alex Radzishevsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!