OutOfMemoryException spamming my console

My server is spamming the following error multiple times per second, even though it is using less than a third of the RAM it has available to it:

(Filename: <14e3453b740b4bd690e8d4e5a013a715> Line: 0)

OutOfMemoryException: Out of memory

  at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int)

  at System.Collections.Generic.Queue`1[T].SetCapacity (System.Int32 capacity) [0x00000] in <14e3453b740b4bd690e8d4e5a013a715>:0 

  at System.Collections.Generic.Queue`1[T].Enqueue (T item) [0x0003e] in <14e3453b740b4bd690e8d4e5a013a715>:0 

  at Oxide.Core.Libraries.Timer+TimeSlot.GetExpired (System.Double now, System.Collections.Generic.Queue`1[T] queue) [0x00013] in <46ff2b534abb4b35952608167523b7ec>:0 

  at Oxide.Core.Libraries.Timer.Update (System.Single delta) [0x0003e] in <46ff2b534abb4b35952608167523b7ec>:0 

  at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x0007c] in <46ff2b534abb4b35952608167523b7ec>:0 

  at Oxide.Core.Unity.UnityScript.Update () [0x00015] in <b500f68a63164414b7205c30fcfeced1>:0 

This started happening yesterday when I tried restarting my server after not restarting it for a few days.

The server's entities ballooned to over 1 million even though we have a small popualation, and it seems to be taking over 20 minutes to load those entities. Once it completes, the OutOfMemoryException errors start to spam the console. We have already tried looking around the map for lag bases/etc but didnt find any. I tried installing the Object Remover plugin to get counts, but it doesnt seem to be compiling

I tried unloading a few plugins I recently updated/installed, and I reinstalled the extensions, but the spam still happens.

Having over 1 million is definitely wrong. Try wiping the server and see if you can prevent it before that happens again.

@Taracmeden add me on discor @Gay Sparkly T-Rex#7265 I would love to get a copy of your .sav file and load it onto my test server and see what it causes to pop up there... but definitly add me and then toss me a message there

Did you figure it out, am I having the same problem now?

Merged post

OutOfMemoryException: Out of memory
at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int)
at System.Collections.Generic.Queue`1[T].SetCapacity (System.Int32 capacity) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0
at System.Collections.Generic.Queue`1[T].Enqueue (T item) [0x0003e] in <47fc8c70fa834cbf8141d7c1a7589125>:0
at Oxide.Core.Libraries.Timer+TimeSlot.GetExpired (System.Double now, System.Collections.Generic.Queue`1[T] queue) [0x00013] in <b76ec77c47d1449e92b2baab8603843d>:0
at Oxide.Core.Libraries.Timer.Update (System.Single delta) [0x0003e] in <b76ec77c47d1449e92b2baab8603843d>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x0007c] in <b76ec77c47d1449e92b2baab8603843d>:0
at Oxide.Core.Unity.UnityScript.Update () [0x00015] in <7c80e4af35e346a1bc843b5e98e25d87>:0

Merged post

Good people please help me. I haven't been able to solve this problem for more than 2 months.

Merged post

When there is a small online presence, it does not occur, as soon as there is a decent number of players, it can come out and spam the console, the server FPS becomes equal to 1-2 and the players begin to lag a lot. You have to restart the server.