Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

SocketTimeoutException Read timed out

Moderators: Vladimir Kondratyev, Anton Katilin

SocketTimeoutException Read timed out

Postby yosefarr » Mon Feb 12, 2018 8:13 am

Hi,
I'm profiling remote application and i'm receiving:
error: exception in dispatchRequest(): java.net.SocketTimeoutException: Read timed out

is there any option to configer SocketTimeout?

17.02-71 107.916: SamplingSettings: sampling_period_ms = 20 (default)
17.02-71 107.946: retransformProbes: loaded classes: 12731 probeClassNames: 117
17.02-71 107.957: Probe classes to retransform: 26
com.yourkit.probes.builtin.Databases$Connection_createStatement_Probe
com.yourkit.probes.builtin.Databases$Connection_or_Statement_close_Probe
com.yourkit.probes.builtin.Databases$Connection_prepareStatement_Probe
com.yourkit.probes.builtin.Databases$DataSource_or_PooledConnection_getConnection_Probe
com.yourkit.probes.builtin.Databases$Driver_connect_Probe
com.yourkit.probes.builtin.Databases$PreparedStatement_execute_Probe
com.yourkit.probes.builtin.Databases$Statement_clearBatch_Probe
com.yourkit.probes.builtin.Databases$Statement_execute_Probe
com.yourkit.probes.builtin.Files$FileInputStream_close_Probe
com.yourkit.probes.builtin.Files$FileInputStream_open_Probe
com.yourkit.probes.builtin.Files$FileInputStream_readBytes_Probe
com.yourkit.probes.builtin.Files$FileOutputStream_close_Probe
com.yourkit.probes.builtin.Files$FileOutputStream_open_Probe
com.yourkit.probes.builtin.Files$FileOutputStream_writeBytes_Probe
com.yourkit.probes.builtin.Files$RandomAccessFile_open_Probe
com.yourkit.probes.builtin.Sockets$ServerSocketChannel_accept_Probe
com.yourkit.probes.builtin.Sockets$ServerSocket_accept_Probe
com.yourkit.probes.builtin.Sockets$SocketChannel_connect_Probe
com.yourkit.probes.builtin.Sockets$SocketChannel_read_Probe
com.yourkit.probes.builtin.Sockets$SocketChannel_write_Probe
com.yourkit.probes.builtin.Sockets$SocketInputStream_read_Probe
com.yourkit.probes.builtin.Sockets$SocketOutputStream_write_Probe
com.yourkit.probes.builtin.Sockets$Socket_close_Probe
com.yourkit.probes.builtin.Sockets$Socket_connect_Probe
com.yourkit.probes.builtin.Sockets$Socket_getInputStream_Probe
com.yourkit.probes.builtin.Sockets$Socket_getOutputStream_Probe
17.02-71 108.571: Probe classes retransform completed
17.02-71 108.571: CPU sampling started: walltime=java.io.RandomAccessFile : readBytes(byte[], int, int)
walltime=java.io.RandomAccessFile : read()
walltime=java.io.RandomAccessFile : write(int)
walltime=java.io.RandomAccessFile : writeBytes(byte[], int, int)
walltime=java.net.SocketInputStream : socketRead0(java.io.FileDescriptor, byte[], int, int, int)
walltime=java.net.SocketOutputStream : socketWrite0(java.io.FileDescriptor, byte[], int, int)
walltime=java.lang.Thread : sleep(*)

sampling_period_ms=20

17.02-71 192.381: F_B_S_W: 10082963
17.02-71 222.410: error: exception in dispatchRequest(): java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.$$YJP$$socketRead0(Native Method)
at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at java.io.DataInputStream.readLong(DataInputStream.java:416)
at com.yourkit.runtime.Packet.readHeader(Packet.java:50)
at com.yourkit.runtime.RequestProcessing.dispatchRequest(RequestProcessing.java:28)
at com.yourkit.runtime.Core$4.run(Core.java:769)
at java.lang.Thread.run(Thread.java:748)

17.02-71 315.087: F_B_S_W: 10642406
17.02-71 345.101: error: exception in dispatchRequest(): java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.$$YJP$$socketRead0(Native Method)
at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at java.io.DataInputStream.readLong(DataInputStream.java:416)
at com.yourkit.runtime.Packet.readHeader(Packet.java:50)
at com.yourkit.runtime.RequestProcessing.dispatchRequest(RequestProcessing.java:28)
at com.yourkit.runtime.Core$4.run(Core.java:769)
at java.lang.Thread.run(Thread.java:748)
yosefarr
 
Posts: 2
Joined: Mon Feb 12, 2018 7:54 am

Re: SocketTimeoutException Read timed out

Postby MrSwadge » Mon Feb 12, 2018 2:54 pm

Did you try the solution here?
viewtopic.php?f=3&t=5209&start=15#p56529
MrSwadge
 
Posts: 9
Joined: Wed Jan 17, 2018 5:57 pm

Re: SocketTimeoutException Read timed out

Postby yosefarr » Tue Feb 13, 2018 9:39 am

That work for me,
thanks a lot for your help
yosefarr
 
Posts: 2
Joined: Mon Feb 12, 2018 7:54 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 16 guests

cron