spark

spark

95M Downloads

Spark Profiler freezes server and then crashes.

TheNetherPug opened this issue ยท 2 comments

commented

Server software: git-Purpur-1985
Spark version: 1.10.41
RAM: 1gb
CPU: Amd Ryzen 5

After around 20 minutes of uptime, running the command "/spark profiler open" or "/spark profiler stop" will freeze the server for a short period of time, and then crash it.

Logs:
`

[23:07:16] [Craft Scheduler Thread - 254 - spark/WARN]: [spark] A command execution has not completed after 10 seconds, it might be stuck. Trace:

[email protected]/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.getTimeAccumulator(AbstractNode.java:60)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.lambda$merge$0(AbstractNode.java:111)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode$$Lambda$11488/0x0000000802cac3a8.accept(Unknown Source)

[email protected]/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:111)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.exportChildren(AbstractNode.java:129)

spark.jar//me.lucko.spark.common.sampler.node.ThreadNode.toProto(ThreadNode.java:188)

spark.jar//me.lucko.spark.common.sampler.AbstractSampler.writeDataToProto(AbstractSampler.java:248)

spark.jar//me.lucko.spark.common.sampler.java.JavaSampler.toProto(JavaSampler.java:197)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.handleUpload(SamplerModule.java:422)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.profilerStop(SamplerModule.java:408)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:141)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule$$Lambda$7936/0x00000008023f0ab8.execute(Unknown Source)

spark.jar//me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:430)

spark.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:339)

spark.jar//me.lucko.spark.common.SparkPlatform$$Lambda$11422/0x0000000802c6b6a0.run(Unknown Source)

org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101)

org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)

com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)

[email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

[email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

[email protected]/java.lang.Thread.run(Thread.java:833)

[23:07:27] [Craft Scheduler Thread - 254 - spark/WARN]: [spark] A command execution has not completed after 15 seconds, it might be stuck. Trace:

[email protected]/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1012)

[email protected]/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.getTimeAccumulator(AbstractNode.java:60)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.lambda$merge$0(AbstractNode.java:111)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode$$Lambda$11488/0x0000000802cac3a8.accept(Unknown Source)

[email protected]/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:111)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.merge(AbstractNode.java:113)

spark.jar//me.lucko.spark.common.sampler.node.AbstractNode.exportChildren(AbstractNode.java:129)

spark.jar//me.lucko.spark.common.sampler.node.ThreadNode.toProto(ThreadNode.java:188)

spark.jar//me.lucko.spark.common.sampler.AbstractSampler.writeDataToProto(AbstractSampler.java:248)

spark.jar//me.lucko.spark.common.sampler.java.JavaSampler.toProto(JavaSampler.java:197)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.handleUpload(SamplerModule.java:422)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.profilerStop(SamplerModule.java:408)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:141)

spark.jar//me.lucko.spark.common.command.modules.SamplerModule$$Lambda$7936/0x00000008023f0ab8.execute(Unknown Source)

spark.jar//me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:430)

spark.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:339)

spark.jar//me.lucko.spark.common.SparkPlatform$$Lambda$11422/0x0000000802c6b6a0.run(Unknown Source)

org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101)

org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)

com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)

[email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

[email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

[email protected]/java.lang.Thread.run(Thread.java:833)

Please fix as soon as possible as this makes it very difficult to debug server lag causes. Thank you

commented

bump

commented

Please re-open a new issue if this is still a problem