Java Socket/SocksSocketImpl memory clog -


in our test lab setup have 2 hosts, both acting server/client sending heartbeats each other.

i running automated performance tests, , after 5 days ram consumption increase steady consistent, on first application. since tests did not target heartbeat application, not expected.

after collecting heap dump of problematic host , loading memoryanalyzer , found lots of "unreachable" sockssocketimpl objects. the number huge, more 12k of objects.

now, application create , use sockets pretty confident, after reviewing code, there no sort of creation loop there. however, when application quits, socket not closed, again, heartbeat application did not restart during 5 days.

i've read in question: memory leak sockssocketimpl finalize method

... however, running version 1.7.0_76 , guys there write bug fixed in 1.7.0_51.

java -version output:

java version "1.7.0_76" java(tm) se runtime environment (build 1.7.0_76-b13) java hotspot(tm) server vm (build 24.76-b04, mixed mode) 

does have clue might be? suggestions?

in socket data transferring , can prepend size of data transfer data ,(eg:- 10 byte reserved length of data) , if doing on client side can size of data receive ,wait (loop)and collect full data . thought may solve problem


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -