cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SocketRead0 high time

marina_alcayde
Participant

Hello
We are doing performance testing of a web application with JSF and Hibernate, and we have found very high times in the SocketInputStream class, API Connection Pooling on the purepath. Added screen with purepath with detail and recorded highs.
We do not know why there are high times in this class, what exactly is it doing?
What can be the source for these high times to be recorded?

2 REPLIES 2

david_n
Inactive

Hello Marina,

High SocketRead times can be common in some environments and can be caused by various things. In my research, I have found the general consensus to be that adding timeouts to your threads can stop blocked/hung threads from becoming a problem.

Here is a great article that explains some common problem patterns and gives helpful solutions:https://javaeesupportpatterns.blogspot.com/2011/08/javanetsocketinputstreamsocketread0.html

Thanks,

David Nicholls

Another note, the source of the high SocketRead time in your screenshot is most likely the database commit. It is probably waiting on a reply from your DB.