#[Minor Question] Server Java Launch Argument Check

7 messages · Page 1 of 1 (latest)

stark holly
#

Hello! So I own a Bisect Server running the modpack 'Beyond Cosmo'. Being quite a hefty modpack, we aren't surprised to see our decently-long playtime has started to cause lag!

Aside from the usual methods of dealing with lag, the official Discord Server for the 'Beyond ~' modpacks had a message suggesting that making the Java Launch Arguments of:
-XX:+UseG1GC -Xmx12G -Xms12G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
...could potentially improve performance. However, since I'm a complete tech-blind person (and I don't own the device Bisect is hosting our Server on), I wanted to check in with Support if this was 'safe' to input into my server, or if it could have consequences!

stark holly
#

...Bump?

nova tide
#

Heya! @stark holly

These overall seem fine, you can set these via the Startup tab in [Advanced] Custom JVM Arguments - Start~ Keep in mind though you'd set: -XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

i.e remove Xmx / Xms as these are set by us

Keep in mind however that lag isnt always caused by the Garbage Collection (which is what these mess with) ~ Before setting these, I would run a Spark profiler when lag is occuring to see whats actually causing it 🙂

#

!spark

neat matrixBOT
#

Spark
How to provide a Spark sampler.

  1. Stop your server.
  2. Download Spark: https://spark.lucko.me/download
  3. Upload the mod to your server:
    Filemanager > mods (for modded servers)
    or Filemanager > plugins (for plugin based servers)
    (Just drag & drop the file)
  4. Start the server.
  5. Use the command /spark profiler --only-ticks-over 70
  6. Wait 10-15 minutes.
  7. Use the command /spark profiler stop
  8. Copy the link it generates and paste it here.
nova tide
#

To note, if you need fast/quick support always be sure to contact us on our site (bisecthosting.com/support) - Our discord is Peer 2 Peer support (i.e other server owners, not staff) and we have some staff that hop in here; but the site is the guarenteed fast help 🙂

stark holly
#

Ahh! Thank you so much! (Also hello again, Dylan!)