[Possible Fix] java.net.SocketException: Socket closed

Discussion in 'Bukkit Help' started by mrciku, Oct 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    mrciku

    Try using this command (I'm using this):
    Code:
     netsh int tcp set global autotuninglevel=restricted
    in Command Prompt.

    You can also try:
    Code:
     netsh int tcp set global autotuninglevel=highlyrestricted
    but I have not tested it.

    Try not to use (Unless you want to see if it works on your server):
    Code:
    netsh int tcp set global autotuninglevel=experimental
    It disallowed connections to my server.

    It seems to help in the DC, no one DCed so far except for 1 guy. Well I'm yet to get statistics for the rest of tomorrow. Tell me if this fixes it.

    Note: I'm not 100% sure if it is this, it may be because I set my MaxHalfOpenTCP value and TcpNumConnections value to 9999999 and creating a DWORD called EnableConnectionRateLimiting to 0 in my registry also.
     
  2. Offline

    mrciku

    bump, has it worked for anyone?
     
  3. Offline

    xdistrict

    the first one fixed it for me, thx alot! :D
     
  4. Offline

    Tyler0

    Where do we put the command?
     
  5. Offline

    jerry98765


    mrciku
    Hello there, im currently having a huge issue with my server. Im running a minecraft server with java enviroment 7, 1.5 GB, max 10 players, download speed of 24 and upload of 4.2. Im running it wired to ethernet on windows operating system. My plugins are listed below(Im aware that more plugins equals more lag). The error is also below. Whats weird about this error is that it happens at completley random times to random people. Some of my players can no longer play bceasue it almost dc's them immedtiatly. Some dc every couple of minutes or hours and some have never had it happen to them. We have good times and bad times too. This error can occur with as little as one person on. Im aware of what this basically says. That the java network has recieved something from the minecraft server the closes a previouly open port abruptly. However it is so vague and i'm not great at figuring these things. If you have any ideas on what this could be, i would really apreciate it. Also, let me know if there is anything else that you need to know, or any thing i can do. I posted this here to you because you seemed like you know how to fix java errors relating to mine. Also, tell me if it would be a good idea to try ths command you have mentioned above in my command prompt because i dont want to screw anything up. Thanks again, hope to hear from you soon.​
    The error:​
    07:37 PM [SEVERE] java.net.SocketException: Socket closed
    07:37 PM [SEVERE] at java.net.SocketOutputStream.socketWrite(Unknown Source)
    07:37 PM [SEVERE] at java.net.SocketOutputStream.write(Unknown Source)
    07:37 PM [SEVERE] at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    07:37 PM [SEVERE] at java.io.BufferedOutputStream.flush(Unknown Source)
    07:37 PM [SEVERE] at java.io.DataOutputStream.flush(Unknown Source)
    07:37 PM [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFile:103)​
    Plugins:​
    - World Guard

    - World Borders

    - LagMeter

    - AntiPub

    - RegionClaim

    - No lagg

    - MineQuery

    - Pail Plus

    - ColoredSigns

    - War

    - Stargate

    - PEX

    - Multiverse-Core

    - Essentails Core (except Protect)

    - McGroovy

    - NoLagg

    - MobArena

    - Found Diamonds

    - Simple Spleef

    - NoCheat

    - VanishNoPacket

    - Chestshop

    - Iconomy

    - Lwc


    - Stargates DHD

    - BKcommonLib

    - InfinitePlots

    - InfiniteClaims

    - CraftBukkitUpToDate

    - CoreProtect

    - NoSpawnEggs

    -PvPantilogger

    -multivesre inventories​
     
  6. Offline

    mrciku

    I suggest you try the "restricted" value one first, it's not a 100% fix as sometimes it is your internet bandwidth reaching it's capacity and cutting you of from the net for 1 second to clear it, thus causing it to kick the players.
     
  7. Offline

    jerry98765

    So every time i enter the command into the command prompt, it gives me unkown command. What am I doing wrong?
     
  8. Offline

    pleasecraftme

    What is the command for Debian 6 ?
     
  9. Lets test it.....
     
  10. Offline

    TnT

    By the way, with the latest RB, you won't see those errors anymore. If you want to test this, it has to be on R1.0 or R2.0, or it will always look fixed.
     
  11. Offline

    FlawlessSin

    it doesn't work, however it does make the problem happen a lot less frequently, where as the disconnects would happen every 5-10 minutes, they now happen every 20-30 minutes
     
Thread Status:
Not open for further replies.

Share This Page