Server using too much ram

I have allocated 7GB ram for the server and when i start it, it uses 95% of the ram right away and cant handle 3 people playing at the same time. I read about memory leaks and that seems like the right problem. Im running the server with truenas core and mineos plugin installed.