Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Is memory increase when player join and leave is normal?

Discussion in 'Multiplayer' started by unity_03BA514BAC145D0E9AB3, Mar 16, 2023.

  1. unity_03BA514BAC145D0E9AB3

    unity_03BA514BAC145D0E9AB3

    Joined:
    Feb 18, 2023
    Posts:
    4
    I made game multiplayer and it has a hub like City that will contains 100 player. I use client server method with Photon Fusion and Multiplay to deploy my dedicated game server (Linux).
    After tested it with 15 players, I noticed my Memory Usage is always increased for each player joined and also when player leave.
    If 1 player joined the memory usage is 300mb, when 15 players joined it becomes 1gb. If each player leave one by one, it also shows memory increase. When all player leave memory usage becomes 1.5gb.
    I think it will be a problem because at City players will always be joining and leaving then memory usage will always increasing. Is the memory increase when player join and leave is normal?