Server ram issue

hello there, i got a problem - my serv eats so much ram (4+gb wout player)
about serv: paper 1.12.2, 8gb ram, r9-3900x (2 cores)
All world are loaded (all 5k blocks)
Online up to 10 players
There arent lag machines, bad chunks on my serv. And thats not a ddos or smth like this, ports are closed

Will be very glad, if u help me)))

  1. 1.12.2 is unsupported
  2. “eats so much ram”, the JVM allocates ram as needed, and given the nature of a GC’d language means that it’s always going to allocate more memory than technically needed, this is generally a non issue, allocate less if you don’t want it to use so much