Hello everyone, I'm experiencing a fair bit of lag on my server, which I run on my personal PC, so I decided to add more ram via running the server.jar via a batch file, though I'd prefer the java console. Here's what I have in my batch file:
java -Xmx4072M -Xms4072M -jar ****.jar
PAUSE
The server starts successfully using this batch file, here's what the output looks like:
C:\Users\*\Desktop\minecraft server 2>java -Xmx4072M -Xms4072M -jar ****.jar
2019-11-30 21:14:06,583 main WARN Advanced terminal features are not available in this environment
[32m[21:14:06] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.1.39, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge]
[m[32m[21:14:06] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 4.0.0+61+ca3b447 starting: java version 1.8.0_231 by Oracle Corporation
[m[32m[21:14:06] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[m[32m[21:14:07] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[m[33m[21:14:15] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[m[33m[21:14:15] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[m[33m[21:14:15] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[m[33m[21:14:15] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[m[33m[21:14:15] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[m[32m[21:14:16] [Server thread/INFO] [minecraft/DedicatedServer]: Starting minecraft server version 1.14.4
[m[32m[21:14:17] [modloading-worker-3/INFO] [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 28.1.39, for MC 1.14.4 with MCP 20190829.143755
[m[32m[21:14:17] [modloading-worker-3/INFO] [ne.mi.co.MinecraftForge/FORGE]: MinecraftForge v28.1.39 Initialized
[m[32m[21:14:17] [modloading-worker-3/INFO] [co.bl.se.ServerTabInfo/]: Pre Initialization Complete!
[m[32m[21:14:18] [Server thread/INFO] [ne.mi.fm.DeferredWorkQueue/LOADING]: Dispatching synchronous work after COMMON_SETUP: 1 jobs
[m[32m[21:14:18] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[m[32m[21:14:18] [Server thread/INFO] [ne.mi.fm.DeferredWorkQueue/LOADING]: Synchronous work queue completed in 00:00:00.011
[m[32m[21:14:18] [Server thread/INFO] [minecraft/DedicatedServer]: Loading properties
[m[32m[21:14:18] [Server thread/INFO] [minecraft/DedicatedServer]: Default game type: SURVIVAL
[m[32m[21:14:18] [Server thread/INFO] [minecraft/DedicatedServer]: Generating keypair
[m[32m[21:14:18] [Server thread/INFO] [minecraft/DedicatedServer]: Starting Minecraft server on *:25565
[m[32m[21:14:18] [Server thread/INFO] [minecraft/NetworkSystem]: Using default channel type
[m[32m[21:14:18] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Found status: OUTDATED Current: 28.1.39 Target: 28.1.96
[m[32m[21:14:19] [Server thread/INFO] [minecraft/DedicatedServer]: Preparing level "bikbois"
[m[32m[21:14:19] [Server thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, forge-1.14.4-28.1.39-universal.jar, inventorysorter-1.14.4-16.2.0.jar, TrashSlot_1.14.4-10.4.7.jar, durability ping v1.1.0.zip, item averages v1.2.1.zip, nether portal coords v1.0.0.zip, player head drops v1.0.0.zip, track raw statistics v1.2.0.zip, track statistics v1.0.0.zip, villager death messages v1.0.0.zip, villager workstation highlights v1.0.0.zip, ServerTabInfo-1.14.4-1.2.6.jar
[m[32m[21:14:19] [Server thread/INFO] [minecraft/RecipeManager]: Loaded 6 recipes
[m[33m[21:14:20] [Server thread/WARN] [minecraft/LootTableManager]: Found validation problem in {minecraft:entities/villager}.pools[0].entries[0]: Unknown loot table called minecraft:entities/reference/villager/villager_head
[m[32m[21:14:20] [Server thread/INFO] [minecraft/FunctionManager]: Loaded 42 custom command functions
[m[32m[21:14:20] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 854 advancements
[m[32m[21:14:20] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for dimension minecraft:overworld
[m[32m[21:14:21] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 0%
[m[32m[21:14:21] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 0%
[m[32m[21:14:21] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 0%
[m[32m[21:14:21] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Time elapsed: 1372 ms
[m[32m[21:14:21] [Server thread/INFO] [minecraft/DedicatedServer]: Done (2.564s)! For help, type "help"
[m[32m[21:14:22] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[m[32m[21:14:22] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[m
But the problem is I'm having trouble connecting to my server externally (localhost works) only when I run it using a batch file. If I run it using the server.jar file, everything is fine, my friend and I are able to connect to my server via my public IP. Here's what the output looks like from running the server.jar by clicking it:
[21:17:25] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.1.39, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge]
[21:17:25] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 4.0.0+61+ca3b447 starting: java version 1.8.0_231 by Oracle Corporation
[21:17:26] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[21:17:26] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[21:17:34] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:17:34] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:34] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:34] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:17:34] [main/WARN] [minecraft/Commands]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:35] [Server thread/INFO] [minecraft/DedicatedServer]: Starting minecraft server version 1.14.4
[21:17:35] [Server console handler/ERROR] [minecraft/DedicatedServer]: Exception handling console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_231]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_231]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_231]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_231]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_231]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_231]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_231]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_231]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_231]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_231]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_231]
at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:104) [?:?]
[21:17:35] [modloading-worker-3/INFO] [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 28.1.39, for MC 1.14.4 with MCP 20190829.143755
[21:17:35] [modloading-worker-3/INFO] [ne.mi.co.MinecraftForge/FORGE]: MinecraftForge v28.1.39 Initialized
[21:17:36] [modloading-worker-5/INFO] [co.bl.se.ServerTabInfo/]: Pre Initialization Complete!
[21:17:36] [Server thread/INFO] [ne.mi.fm.DeferredWorkQueue/LOADING]: Dispatching synchronous work after COMMON_SETUP: 1 jobs
[21:17:36] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[21:17:36] [Server thread/INFO] [ne.mi.fm.DeferredWorkQueue/LOADING]: Synchronous work queue completed in 00:00:00.015
[21:17:36] [Server thread/INFO] [minecraft/DedicatedServer]: Loading properties
[21:17:36] [Server thread/INFO] [minecraft/DedicatedServer]: Default game type: SURVIVAL
[21:17:36] [Server thread/INFO] [minecraft/DedicatedServer]: Generating keypair
[21:17:36] [Server thread/INFO] [minecraft/DedicatedServer]: Starting Minecraft server on *:25565
[21:17:36] [Server thread/INFO] [minecraft/NetworkSystem]: Using default channel type
[21:17:36] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Found status: OUTDATED Current: 28.1.39 Target: 28.1.96
[21:17:37] [Thread-1/FATAL] [ne.mi.co.ForgeConfig/CORE]: Forge config just got changed on the file system!
[21:17:37] [Server thread/INFO] [minecraft/DedicatedServer]: Preparing level "bikbois"
[21:17:38] [Server thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, forge-1.14.4-28.1.39-universal.jar, inventorysorter-1.14.4-16.2.0.jar, TrashSlot_1.14.4-10.4.7.jar, durability ping v1.1.0.zip, item averages v1.2.1.zip, nether portal coords v1.0.0.zip, player head drops v1.0.0.zip, track raw statistics v1.2.0.zip, track statistics v1.0.0.zip, villager death messages v1.0.0.zip, villager workstation highlights v1.0.0.zip, ServerTabInfo-1.14.4-1.2.6.jar
[21:17:38] [Server thread/INFO] [minecraft/RecipeManager]: Loaded 6 recipes
[21:17:38] [Server thread/WARN] [minecraft/LootTableManager]: Found validation problem in {minecraft:entities/villager}.pools[0].entries[0]: Unknown loot table called minecraft:entities/reference/villager/villager_head
[21:17:38] [Server thread/INFO] [minecraft/FunctionManager]: Loaded 42 custom command functions
[21:17:38] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 854 advancements
[21:17:38] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for dimension minecraft:overworld
[21:17:39] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 0%
[21:17:39] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 0%
[21:17:39] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Preparing spawn area: 83%
[21:17:40] [Server thread/INFO] [minecraft/LoggingChunkStatusListener]: Time elapsed: 1197 ms
[21:17:40] [Server thread/INFO] [minecraft/DedicatedServer]: Done (2.385s)! For help, type "help"
[21:17:40] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[21:17:40] [Server thread/INFO] [minecraft/ChunkManager]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
The error that the client shows when trying to connect is this:
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:
I've already allowed port 25565 through windows firewall, but just in case I've also allowed java.exe through as well because when I run a ping port test, while running the server via .bat, it prints java.exe under tcp+udp 25565. I'm not sure what else to do, help would be very much appreciated!
Hello, thanks for replying. It seems you don't understand my issue. I've been running my multiplayer server for 2 months now, all people that play on it (including myself) use my external ip to connect to the server. The whole time I've always double clicked the .jar file to start the server.
Now, I need more ram allocated, so I have to run the server using a batch file and a memory adjustment. The problem is no one can connect externally anymore when it's run from the batch file.
I'm well aware that it's normal to be able to log on using localhost when the server is on my own machine.
make sure the java installation you are using is allowed through the firewall/antivirus - it's entirely possible that the Java installation used when running a JAR is different than the one used from command prompt.
Hello everyone, I'm experiencing a fair bit of lag on my server, which I run on my personal PC, so I decided to add more ram via running the server.jar via a batch file, though I'd prefer the java console. Here's what I have in my batch file:
The server starts successfully using this batch file, here's what the output looks like:
But the problem is I'm having trouble connecting to my server externally (localhost works) only when I run it using a batch file. If I run it using the server.jar file, everything is fine, my friend and I are able to connect to my server via my public IP. Here's what the output looks like from running the server.jar by clicking it:
The error that the client shows when trying to connect is this:
I've already allowed port 25565 through windows firewall, but just in case I've also allowed java.exe through as well because when I run a ping port test, while running the server via .bat, it prints java.exe under tcp+udp 25565. I'm not sure what else to do, help would be very much appreciated!
Hello, thanks for replying. It seems you don't understand my issue. I've been running my multiplayer server for 2 months now, all people that play on it (including myself) use my external ip to connect to the server. The whole time I've always double clicked the .jar file to start the server.
Now, I need more ram allocated, so I have to run the server using a batch file and a memory adjustment. The problem is no one can connect externally anymore when it's run from the batch file.
I'm well aware that it's normal to be able to log on using localhost when the server is on my own machine.
make sure the java installation you are using is allowed through the firewall/antivirus - it's entirely possible that the Java installation used when running a JAR is different than the one used from command prompt.
Creator of Metroid Cubed 3, a Metroid-themed mod! Become a donator today!