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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Profiling Server Memory Leaks

Discussion in 'Game Server Hosting' started by MarcoZVincenzi, Jul 20, 2023.

  1. MarcoZVincenzi

    MarcoZVincenzi

    Joined:
    Mar 3, 2022
    Posts:
    11
    Hi everyone!

    I have a simple Linux test server running on Unity's Game Server Hosting, but I've noticed the Memory usage continues to increase ever so slightly every minute, even when Online/Allocated with no clients connected. It grows by an average of 0.125 MiB (~130 kb) a minute, so I'm worried there may be a memory leak somewhere. CPU usage, on the other hand, remains stable. This happens both on Multiplay-allocated servers and manually-started ones.


    Has anyone else experienced DGSs behaving in this way? I'm wondering if there might be some overhead in Multiplay Services that could be causing this, although it's also likely that the issue lies on my end and on my implementation. I am updating SQP via UpdateServerCheck on every fixed frame, after all.

    I was hoping I could use Unity's Profiler to remotely connect to the server and monitor it, but I'm not sure which IP and Port are needed for this. Do I use the port of the specific server instance (i.e 9000), or the 55000 that is normally used for this?

    Alternatively I could build a Windows-based server to run locally and profile that one instead, assuming the issues persists there.

    Just to give you some context, I'm currently using Unity 2022 LTS with Mirror for networking.

    Thanks in advance!


    P.S Not sure if this is the correct forum category to post this under, let me know If I should move it.
     
    alessandro_iapa likes this.
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,236
    Hi Marco,
    My colleague Alexey answered the part about how to deal with the Multiplay server ports for profiling over in this thread.
    But yes, your alternative with a local build might also work if it persists.