spark

spark

95M Downloads

can not open profiler

fjybiocs opened this issue ยท 4 comments

commented

Description

/spark profiler open trigger an error, and can't get spark profiler report.

Reproduction Steps

execute command: /spark profiler open

Expected Behaviour

get profiler report.

Platform Information

  • Minecraft Version: 1.20.1
  • Platform Type: windows server 2019
  • Platform Brand: Purpur
  • Platform Version: git-Purpur-2035

Spark Version

v1.10.34

Logs and Configs

[14:13:03] [Server thread/INFO]: TPam issued server command: /spark profiler open
[14:13:09] [Craft Scheduler Thread - 29215 - spark/WARN]: [spark] A command execution has not completed after 5 seconds, it might be stuck. Trace: 
  java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
  java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Unknown Source)
  java.base/java.net.InetAddress$PlatformResolver.lookupByName(Unknown Source)
  java.base/java.net.InetAddress.getAddressesFromNameService(Unknown Source)
  java.base/java.net.InetAddress$NameServiceAddresses.get(Unknown Source)
  java.base/java.net.InetAddress.getAllByName0(Unknown Source)
  java.base/java.net.InetAddress.getAllByName(Unknown Source)
  java.base/java.net.InetAddress.getByName(Unknown Source)
  java.base/java.net.InetSocketAddress.<init>(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpRequestImpl.lambda$getAddress$5(Unknown Source)
  java.base/java.security.AccessController.doPrivileged(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpRequestImpl.getAddress(Unknown Source)
  java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Unknown Source)
  java.net.http/jdk.internal.net.http.ExchangeImpl.get(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.establishExchange(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.completeAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source)
  spark-1.10.34-bukkit.jar//me.lucko.spark.lib.bytesocks.BytesocksClientImpl.createAndConnect(BytesocksClientImpl.java:65)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocketConnection.<init>(ViewerSocketConnection.java:61)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocket.<init>(ViewerSocket.java:71)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.handleOpen(SamplerModule.java:467)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profilerOpen(SamplerModule.java:355)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:126)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:425)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:334)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.base/java.lang.Thread.run(Unknown Source)
[14:13:10] [Craft Scheduler Thread - 29194 - spark/WARN]: [spark] A command execution has not completed after 5 seconds, it might be stuck. Trace: 
  java.base/jdk.internal.misc.Unsafe.park(Native Method)
  java.base/java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
  java.base/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source)
  java.base/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:332)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.base/java.lang.Thread.run(Unknown Source)
[14:13:14] [Craft Scheduler Thread - 29215 - spark/WARN]: [spark] A command execution has not completed after 10 seconds, it might be stuck. Trace: 
  java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
  java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Unknown Source)
  java.base/java.net.InetAddress$PlatformResolver.lookupByName(Unknown Source)
  java.base/java.net.InetAddress.getAddressesFromNameService(Unknown Source)
  java.base/java.net.InetAddress$NameServiceAddresses.get(Unknown Source)
  java.base/java.net.InetAddress.getAllByName0(Unknown Source)
  java.base/java.net.InetAddress.getAllByName(Unknown Source)
  java.base/java.net.InetAddress.getByName(Unknown Source)
  java.base/java.net.InetSocketAddress.<init>(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpRequestImpl.lambda$getAddress$5(Unknown Source)
  java.base/java.security.AccessController.doPrivileged(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpRequestImpl.getAddress(Unknown Source)
  java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Unknown Source)
  java.net.http/jdk.internal.net.http.ExchangeImpl.get(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.establishExchange(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Unknown Source)
  java.net.http/jdk.internal.net.http.Exchange.responseAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.completeAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source)
  java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source)
  spark-1.10.34-bukkit.jar//me.lucko.spark.lib.bytesocks.BytesocksClientImpl.createAndConnect(BytesocksClientImpl.java:65)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocketConnection.<init>(ViewerSocketConnection.java:61)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocket.<init>(ViewerSocket.java:71)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.handleOpen(SamplerModule.java:467)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profilerOpen(SamplerModule.java:355)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:126)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:425)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:334)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.base/java.lang.Thread.run(Unknown Source)
[14:13:15] [Craft Scheduler Thread - 29194 - spark/WARN]: [spark] A command execution has not completed after 10 seconds, it might be stuck. Trace: 
  java.base/jdk.internal.misc.Unsafe.park(Native Method)
  java.base/java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
  java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
  java.base/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source)
  java.base/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:332)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.base/java.lang.Thread.run(Unknown Source)
[14:13:19] [Craft Scheduler Thread - 29215 - spark/WARN]: [spark] A command execution has not completed after 15 seconds, it might be stuck. Trace: 
  java.base/jdk.internal.misc.Unsafe.park(Native Method)
  java.base/java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture$Signaller.block(Unknown Source)
  java.base/java.util.concurrent.ForkJoinPool.unmanagedBlock(Unknown Source)
  java.base/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.waitingGet(Unknown Source)
  java.base/java.util.concurrent.CompletableFuture.join(Unknown Source)
  spark-1.10.34-bukkit.jar//me.lucko.spark.lib.bytesocks.BytesocksClientImpl.connect(BytesocksClientImpl.java:84)
  spark-1.10.34-bukkit.jar//me.lucko.spark.lib.bytesocks.BytesocksClientImpl.createAndConnect(BytesocksClientImpl.java:75)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocketConnection.<init>(ViewerSocketConnection.java:61)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.ws.ViewerSocket.<init>(ViewerSocket.java:71)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.handleOpen(SamplerModule.java:467)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profilerOpen(SamplerModule.java:355)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:126)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:425)
  spark-1.10.34-bukkit.jar//me.lucko.spark.common.SparkPlatform.lambda$executeCommand$2(SparkPlatform.java:334)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
  org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.base/java.lang.Thread.run(Unknown Source)

Extra Details

PurPur completely disabled original timings report, so spark is the only way to get server's performance report.

Now my server run into some performance issues, I really need this spark profiler report.

commented

It seems you're still using v1.10.34 while the latest available version is v1.10.53.
Please always use the latest versions before reporting any errors will save the dev a lot of work

commented

I encountered this problem as well, and just feel I should note that the latest version available from the Spigot resource page (https://www.spigotmc.org/resources/spark.57242/) is v1.10.34. If you expect users to use v1.10.53, have you forgotten to update the SpigotMC entry?

commented

@EpicKnarvik97 Do not be lazy and go to his site and download the freshest dev build. He can't update all places after every single change in plugin.
https://spark.lucko.me/download

commented

I will update on Spigot