Solved Server freezing on portal entry

Discussion in 'Bukkit Help' started by teathiev, Jul 23, 2019.

  1. Offline

    teathiev

    I own a home-run server, so I don't have crazy amounts of resources allocated to my server. At times, when there are more users (5-10 range), going through nether portals will freeze up the server -- the type of lag that stops you from accessing chests and such. I assume this has to do with chunk loading/unloading between the two portals.

    Is there any way to remedy this? I was thinking of possible solutions of temporarily dropping max view distance on the users going between worlds so the chunks load slower, or somehow preloading the chunks around the portal, but I can't really find plugins that do something like this. I could make my own plugin if needed but a quicker solution would be a lot nicer.

    If anyone can help that'd be awesome. Thanks!
     
  2. Offline

    Machine Maker

    How much RAM are you giving the server?
     
  3. Offline

    teathiev

    Starts with 2G, max allocation of 4G. I might be wrong in my remembering but I think the issue was with CPU Usage, not RAM

    EDIT: Currently with 4 users on, CPU usage spikes from 15% to 30-35% when I enter a portal. Ram stays around the same at like 2G used. (For reference, I have an intel core i7 processor btw)
     
    Last edited: Jul 23, 2019
  4. Offline

    Machine Maker

    Can you confirm through Task Manager that it is your CPU that goes way up when people use Nether Portals?
     
  5. Offline

    teathiev

    I edited my last post to include those details
     
  6. Offline

    Machine Maker

  7. Offline

    teathiev

    According to the server: 1.14.3-R0.1-SNAPSHOT
     
  8. Offline

    Machine Maker

    teathiev likes this.
  9. Offline

    teathiev

    I duplicated the set up from the GIF that you linked and yeah, it's the same exact thing.

    So this is a problem with Minecraft itself then, not Bukkit/Spigot?
     
  10. Offline

    Machine Maker

    Yes it looks like it. Sorry about that.
     
  11. Offline

    teathiev

    It's all good! Your link to the issue led me to a somewhat of a temporary solution actually!

    The issue noted that it was due to the portal searching algorithm being subpar. So, since my server is small and the number of highly-used portals is few, I've set up warp signs (via Essentials) between the linked portals. Today, people have been using those instead and there is a noticeable server-wide improvement on performance. While stress-testing going between warp points repetitively, CPU usage never went above 25%-30% and the other users noticed less lag. I know this isn't a permanent solution, but perhaps for small, private servers like mine, this may work in the mean-time, I guess?
     
  12. Offline

    Machine Maker

    Yeah that sounds like a great solution. Hopefully Mojang fixes it in the near future. It looks like its been around a while though.
     
  13. Offline

    teathiev

    Wow. You're right, I just looked at the creation date -- May 25, 2019 -- which is insane. Maybe the solution will be a little more than temporary... Anyways, thanks for the help!
     
  14. Offline

    Machine Maker

    If you think your question has been answered, can you mark this thread as Solved?
     

Share This Page