NettyAndroid icon indicating copy to clipboard operation
NettyAndroid copied to clipboard

多次连接服务器报错Throwing OutOfMemoryError "Could not allocate JNI Env

Open wangchengyan opened this issue 9 years ago • 1 comments

当服务器停止,或者把网络关掉的话,反复调用reset2Connect();方法,会报错 ashmem_create_region failed for 'indirect ref table': Too many open files Throwing OutOfMemoryError "Could not allocate JNI Env

wangchengyan avatar Apr 28 '17 11:04 wangchengyan

U could build with a fixed pool or list to get restart count .Must call the method Recycle in onDestroy and this project was used at work at that time and you could modify it according to your work 😄

xh82 avatar Sep 08 '17 10:09 xh82