[workaround] Azilink and "Too many open files"
Hi,
I’m using my mobile internet connection to connect my laptop to my computer by an USB wire.
But lately my connection did fall down a lot and in random times. I have no idea what changed to behave like that. I suspect about some apps or some “background sistem configuration change” (the dalvik vm config).
Anyway, the scenario is
High usage of the browser. Opening various tabs from a google search.
Consequences:
The log of the phone started to say “too many connections” as an unknown error. ( See the android logs
The process azilink dies some seconds after.
The connections that were present (Usually XMPP(gmail), Messenger and ssh) do not respond.
The connection is recovered after 5 seconds, as say the phone logs and the openvpn is recovered after that. But after 2 deaths, dalvikvm decides to not recover the process anymore as seems to be unstable.
Here you can see a log example of the “./adb catlog”
E/OSNetworkSystem(10594): unclassified errno 24 (Too many open files) E/OSNetworkSystem(10594): unclassified errno 24 (Too many open files) E/OSNetworkSystem(10594): unclassified errno 24 (Too many open files) E/dalvikvm-gc(10594): Could not create 2248704-byte ashmem mark stack I/ActivityManager( 74): Process org.lfx.azilink.net (pid 10594) has died. D/Zygote ( 50): Process 10594 terminated by signal (11) W/ActivityManager( 74): Scheduling restart of crashed service org.lfx.azilink/.ForwardService in 5000ms I/ActivityManager( 74): Start proc org.lfx.azilink.net for service org.lfx.azilink/.ForwardService: pid=11173 uid=10028 gids={3003, 1015} I/dalvikvm(11173): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) I/dalvikvm(11173): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) I/InetAddress(11173): gethostbyaddr: getnameinfo: 127.0.0.1 = localhost V/AziLink (11173): AziLink established connection to VPN
Workaround - Browse through a SOCKS 5 proxy
This workaround is intended to reduce the number of connections that goes “in plain” through the VPN.
If we connect to a server that we have on the internet, we’ll send all the conections in the ssh connection and the azilink will have less connections to process.
The web is full of tutorials in how to do that (http://www.google.com/search?q=ssh+socks+5+proxy), but remember that you need a server on internet with ssh access.
That way I got a more persistent azilink connection except when doing videocalls that the phone log shows really weird messages and the connection fails after 10 or 20 minutes.


















