Minecrell / ServerListPlus

A flexible Minecraft plugin to customize the appearance of your server in the server list
https://git.io/slp
GNU General Public License v3.0
240 stars 58 forks source link

[feature-request] SLP Server: more entries for different ports #322

Closed RedstoneFuture closed 3 years ago

RedstoneFuture commented 3 years ago

I'm not sure about the technical borders behind the idea to realized it, but it would be nice if I can define more than one server to support more server ports with her different MOTD etc.

This feature request / question is (only) for the standalone SLP server. To my knowledge, this feature is not supported, currently.

Config-Example:

serverA:
  port: 25565
  Message:
  - |-
    &cDer Server ist &4zurzeit in Wartung&c!
serverB:
  port: 25565
  Message:
  - |-
    &cDer Server ist &4zurzeit in Wartung&c!
[...]
stephan-gh commented 3 years ago

Isn't it easier to start multiple servers with different configurations in that case?

RedstoneFuture commented 3 years ago

Isn't it easier to start multiple servers with different configurations in that case?

Yes, but it needs more performance, I think. One server need a minimal RAM of -Xmx512m as I've seen.

stephan-gh commented 3 years ago

I would be kind of surprised if the SLP server needs that much RAM, it should be fairly minimal.

RedstoneFuture commented 3 years ago

I would be kind of surprised if the SLP server needs that much RAM, it should be fairly minimal.

I will try it again. Which Xmx parameter do you propose?

stephan-gh commented 3 years ago

I will try it again. Which Xmx parameter do you propose?

I have to admit that I never tested the SLP standalone server in production, it was more like a proof of concept. I don't know how much RAM you need for it (I guess this also depends a bit on how many clients you might potentially have at the same time).

From a quick test it seemed to run okay with several clients at -Xmx64m, -Xmx32m or even -Xmx8m but note that the CPU load increases if you assign very little RAM (since it needs to do garbage collection very frequently). I don't think it can really make use of much more than -Xmx128m.

RedstoneFuture commented 3 years ago

Ok, thx for the info. I will test it with more connections, in the next time. Then I will give a feedback about the RAM usage.

And if you think, this idea is to complex to realize it or haven't any performance improvement, I can close this feature-request and use more servers instead. I would like to set up 10 - 20 pseudo servers for all different server genres with her icon (game-server, rpg server etc.). With this "seperators", the people can organize her own minecraft serverlist as long as minecraft doesn't have an own categorie feature byself.

stephan-gh commented 3 years ago

Yeah, I think it's better to close this :)