spark

spark

118M Downloads

Stoping/uploading sparks not working when using jemalloc as memory allocator

voodootje0 opened this issue · 3 comments

commented

Description

When we use jemalloc as memory allocator, the upload will get stuck.

Reproduction Steps

Run a server with jemalloc as memory allocator, and simply try to upload a spark.

We tried running on Java 8, Java 17 and 21, doesn't make a difference, looks like related to using jemalloc as allocator. Also the same issue occurs on 1.21 paper servers.

We also updated Byte Buddy from 1.14.17 to 1.17.2, no success either.

Expected Behaviour

Uploading sparks without getting stuck.

Platform Information

  • Minecraft Version: 1.8.9
  • Platform Type: server
  • Platform Brand: Paper
  • Platform Version: 1.8.9

Spark Version

1.10.127

Logs and Configs

Server logs when uploading spark: https://gist.github.com/voodootje0/a911ac90698ba769e46964d2d79f446c

Extra Details

No response

commented

Can you check if the process has a running child process in this situation? If so, could you try getting a thread dump of that child process?

commented

try using the spark integration bundled in Paper, it doesn't require bytebuddy.

commented

Turns out the issue wasn’t with jemalloc, it was our custom Java agent. -Djdk.attach.allowAttachSelf=true fixed it.