Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Window build memory keep growing up

Discussion in 'Multiplayer' started by keomanla, Jan 2, 2013.

  1. keomanla

    keomanla

    Joined:
    Jan 30, 2012
    Posts:
    26
    I have done a turn-based game which uses Unity built-in networking, only use RPCs call, no state synchronization. The thing is when I run the server application on dedicated server, after 1 day, 2 days, the memory just keep growing up until there is no more memory and the application turn out "NOT RESPONDING" and crash.

    I did a simple test like this: an empty scene with nothing inside, no model, no texture, no networking RPC calls, just a camera which is also turned off and is attached a script:



    Code (csharp):
    1. public string text1 = "Release";
    2.  
    3. void OnGUI () {
    4.                if(GUILayout.Button(text1)) {
    5.             System.GC.Collect();
    6.             Resources.UnloadUnusedAssets();
    7.         }
    8. }

    Very simple script, I run it on dedicated server, after a while, I remote to the server and see that the memory of this simple application also grows up.

    Do you guy have experience about this ?? Or may be something wrong with memory management of unity of window build ??