java.net.SocketException: Connection reset

JIRA | Michael Stack | 10 years ago
  1. 0

    I got the eclipse profiler -- http://eclipsecolorer.sourceforge.net/index_profiler.html -- to work locally. Its dog slow. Buggy. It keeps OOME'ing though I up my mem allocation. Going against a remote machine, ops03, only, everytime it connects it seems to crap out immediately with the below. java.net.SocketException: Connection reset at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:78) at ru.nlmk.eclipse.plugins.profiler.io.ThinDataOutputStream.writeChar(ThinData OutputStream.java:19) at ru.nlmk.eclipse.plugins.profiler.io.ThinDataOutputStream.writeString(ThinDa taOutputStream.java:41) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:87) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceT reeInfo.java:94) at ru.nlmk.eclipse.plugins.profiler.trace.TraceThreadInfo.write(TraceThreadInf o.java:312) at ru.nlmk.eclipse.plugins.profiler.trace.Trace.writeInstrumentationStatistics (Trace.java:434) at ru.nlmk.eclipse.plugins.profiler.trace.Trace.writeStatistictToFrontEnd(Trac e.java:290) at ru.nlmk.eclipse.plugins.profiler.trace.Trace$SenderThread.run(Trace.java:14 7) Here is launch script I used: stack@ops03:~$ more profiler.sh #!/bin/sh LIB=$HOME/lib/ export LD_LIBRARY_PATH=$LIB:$LD_LIBRARY_PATH export JAVA_OPTS="-Xmx1024m -XrunProfilerDLL:1 -Xbootclasspath/a:$LIB/commons-lang.jar:$LIB/jakarta-regexp.jar:$LIB/profil er_trace.jar -D__PROFILER_PACKAGE_FILTER=__A__org.archive.crawler.Heritrix:__M__sun.:__M __com.sun.:__M__java.:__M__javax. -D__PROFILER_TIMING_METHOD=1" $HOME/heritrix/bin/foreground_heritrix I had to build the native profiling shared llib and put it into the jdk i386 lib dir so it could be found. Here is the script I used to build the shared lib: stack@ops03:~/lib$ more m #!/bin/sh g++ -O0 -DLINUX -shared -Wall -I. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux ProfilerDLL.cpp -o libProfilerDLL.so cp libProfilerDLL.so ${JAVA_HOME}/jre/lib/i386/libProfilerDLL.so

    JIRA | 10 years ago | Michael Stack
    java.net.SocketException: Connection reset
  2. 0

    problem with large batch mutation set

    Google Groups | 6 years ago | Ross Black
    java.net.SocketException: Connection reset
  3. 0

    Problem streaming media to phone

    Google Groups | 6 years ago | bgmote
    java.net.SocketException: Connection reset
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Batch insertion fails if inserting more than cca 15MB

    GitHub | 6 years ago | woky
    me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
  6. 0

    Replication Job | Alfresco Forums

    alfresco.com | 5 months ago
    org.alfresco.service.cmr.replication.ReplicationServiceException: 01250079 Error executing transfer - 01250077 Failed to execute HTTP request sendManifest to target: TransferTarget: test,host:46.252.143.76,port:8080 status: java.net.SocketException: Connection reset

  1. Aria Pahlavan 1312 times, last 2 weeks ago
  2. Bardh 2 times, last 7 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Connection reset

    at java.net.SocketOutputStream.socketWrite()
  2. Java RT
    BufferedOutputStream.write
    1. java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
    2. java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    3. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    4. java.io.BufferedOutputStream.write(BufferedOutputStream.java:78)
    4 frames
  3. ru.nlmk.eclipse
    Trace$SenderThread.run
    1. ru.nlmk.eclipse.plugins.profiler.io.ThinDataOutputStream.writeChar(ThinDataOutputStream.java:19)
    2. ru.nlmk.eclipse.plugins.profiler.io.ThinDataOutputStream.writeString(ThinDataOutputStream.java:41)
    3. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:87)
    4. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    5. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    6. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    7. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    8. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    9. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    10. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    11. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    12. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    13. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    14. ru.nlmk.eclipse.plugins.profiler.trace.TraceTreeInfo.writeStatistics(TraceTreeInfo.java:94)
    15. ru.nlmk.eclipse.plugins.profiler.trace.TraceThreadInfo.write(TraceThreadInfo.java:312)
    16. ru.nlmk.eclipse.plugins.profiler.trace.Trace.writeInstrumentationStatistics(Trace.java:434)
    17. ru.nlmk.eclipse.plugins.profiler.trace.Trace.writeStatistictToFrontEnd(Trace.java:290)
    18. ru.nlmk.eclipse.plugins.profiler.trace.Trace$SenderThread.run(Trace.java:147)
    18 frames