Describe the bug
The bug happens when too many requests are fired at the same time, causing the server to restart.
I tried using asynchronous requests but there comes a time when it stops and also restarts the server.
Error log
The server has not responded for 10 seconds! Creating thread dump
[17:42:46 ERROR]: ------------------------------
[17:42:46 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[17:42:46 ERROR]: ------------------------------
[17:42:46 ERROR]: Current Thread: Server thread
[17:42:46 ERROR]: PID: 36 | Suspended: false | Native: false | State: WAITING
[17:42:46 ERROR]: Stack:
[17:42:46 ERROR]: java.base@21.0.3/jdk.internal.misc.Unsafe.park(Native Method)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool.getPoolEntryBlocking(AbstractConnPool.java:391)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool.access$300(AbstractConnPool.java:70)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool$2.get(AbstractConnPool.java:253)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool$2.get(AbstractConnPool.java:198)
[17:42:46 ERROR]: org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:306)
[17:42:46 ERROR]: org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:282)
[17:42:46 ERROR]: org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:190)
[17:42:46 ERROR]: org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
[17:42:46 ERROR]: org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//com.google.api.client.http.apache.v2.ApacheHttpRequest.execute(ApacheHttpRequest.java:73)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//dev.f2a.addon.skriptwebapi.elements.request.expressions.ExprWebRequest.get(ExprWebRequest.java:78)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//dev.f2a.addon.skriptwebapi.elements.request.expressions.ExprWebRequest.get(ExprWebRequest.java:23)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:78)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:262)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.Effect.run(Effect.java:32)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:40)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:33)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:333)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:292)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand$$Lambda/0x00007f013290ca88.run(Unknown Source)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:303)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:238)
[17:42:46 ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[17:42:46 ERROR]: io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91)
[17:42:46 ERROR]: com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[17:42:46 ERROR]: net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31)
[17:42:46 ERROR]: net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
[17:42:46 ERROR]: net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[17:42:46 ERROR]: net.minecraft.commands.execution.UnboundEntryAction$$Lambda/0x00007f0132a44668.execute(Unknown Source)
[17:42:46 ERROR]: net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[17:42:46 ERROR]: net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103)
[17:42:46 ERROR]: net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:350)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:337)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:332)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2147)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2121)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl$$Lambda/0x00007f0132a411a0.run(Unknown Source)
[17:42:46 ERROR]: net.minecraft.server.TickTask.run(TickTask.java:18)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[17:42:46 ERROR]: net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1537)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1514)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1507)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1629)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer$$Lambda/0x00007f0130c72088.run(Unknown Source)
[17:42:46 ERROR]: java.base@21.0.3/java.lang.Thread.runWith(Thread.java:1596)
[17:42:46 ERROR]: java.base@21.0.3/java.lang.Thread.run(Thread.java:1583)
To Reproduce
Steps to reproduce the behavior:
- Send multiple requests at the same time
- Server is gone.
Expected behavior
I expect requests to receive a response, even if there is a delay in response time. And also that the server does not crash.
Screenshots
N.A.
Additional context
The problem also occurs on my local machine, which is a Ryzen 9 7900 with 24 Threads and 64Gb Ram, so I don't think the problem is memory or processor.
Describe the bug
The bug happens when too many requests are fired at the same time, causing the server to restart.
I tried using asynchronous requests but there comes a time when it stops and also restarts the server.
Error log
The server has not responded for 10 seconds! Creating thread dump
[17:42:46 ERROR]: ------------------------------
[17:42:46 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[17:42:46 ERROR]: ------------------------------
[17:42:46 ERROR]: Current Thread: Server thread
[17:42:46 ERROR]: PID: 36 | Suspended: false | Native: false | State: WAITING
[17:42:46 ERROR]: Stack:
[17:42:46 ERROR]: java.base@21.0.3/jdk.internal.misc.Unsafe.park(Native Method)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:519)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725)
[17:42:46 ERROR]: java.base@21.0.3/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1707)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool.getPoolEntryBlocking(AbstractConnPool.java:391)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool.access$300(AbstractConnPool.java:70)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool$2.get(AbstractConnPool.java:253)
[17:42:46 ERROR]: org.apache.http.pool.AbstractConnPool$2.get(AbstractConnPool.java:198)
[17:42:46 ERROR]: org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:306)
[17:42:46 ERROR]: org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:282)
[17:42:46 ERROR]: org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:190)
[17:42:46 ERROR]: org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
[17:42:46 ERROR]: org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
[17:42:46 ERROR]: org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//com.google.api.client.http.apache.v2.ApacheHttpRequest.execute(ApacheHttpRequest.java:73)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//dev.f2a.addon.skriptwebapi.elements.request.expressions.ExprWebRequest.get(ExprWebRequest.java:78)
[17:42:46 ERROR]: SkriptWebAPI-0.1.2.jar//dev.f2a.addon.skriptwebapi.elements.request.expressions.ExprWebRequest.get(ExprWebRequest.java:23)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:78)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:262)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.Effect.run(Effect.java:32)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:40)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:33)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:333)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:292)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand$$Lambda/0x00007f013290ca88.run(Unknown Source)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:303)
[17:42:46 ERROR]: Skript-2.10.0.jar//ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:238)
[17:42:46 ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[17:42:46 ERROR]: io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91)
[17:42:46 ERROR]: com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[17:42:46 ERROR]: net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31)
[17:42:46 ERROR]: net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
[17:42:46 ERROR]: net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[17:42:46 ERROR]: net.minecraft.commands.execution.UnboundEntryAction$$Lambda/0x00007f0132a44668.execute(Unknown Source)
[17:42:46 ERROR]: net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[17:42:46 ERROR]: net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103)
[17:42:46 ERROR]: net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:350)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:337)
[17:42:46 ERROR]: net.minecraft.commands.Commands.performCommand(Commands.java:332)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2147)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2121)
[17:42:46 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl$$Lambda/0x00007f0132a411a0.run(Unknown Source)
[17:42:46 ERROR]: net.minecraft.server.TickTask.run(TickTask.java:18)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[17:42:46 ERROR]: net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1537)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1514)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1507)
[17:42:46 ERROR]: net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1629)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[17:42:46 ERROR]: net.minecraft.server.MinecraftServer$$Lambda/0x00007f0130c72088.run(Unknown Source)
[17:42:46 ERROR]: java.base@21.0.3/java.lang.Thread.runWith(Thread.java:1596)
[17:42:46 ERROR]: java.base@21.0.3/java.lang.Thread.run(Thread.java:1583)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect requests to receive a response, even if there is a delay in response time. And also that the server does not crash.
Screenshots
N.A.
Additional context
The problem also occurs on my local machine, which is a Ryzen 9 7900 with 24 Threads and 64Gb Ram, so I don't think the problem is memory or processor.