Skip to content

RAM usage issue. #4

Open
Open

Description

@thebitbrine

Whenever a client gets connected to server, server allocates ~100KB more space. Upon disconnection of client server doesn't dispose objects to free space, but instead whenever client tries to reconnect, server allocates another ~100KB of space. And as methods of the whole server is defined static, Garbage Collector does not try to free space allocated to objects that are not in use anymore.

In my tests i could get the server to allocate as much as ~122MB of space from 1.7MB starting point just by connecting and disconnecting to GetConnectedServer.

Also i understand that this is just a PoC but i see a great potential for it to be used in production applications.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions