Performance issue on high populated servers

On my server with 130.000 entities its causing lag every time it creates a report it might be this here but im not a expert myself

 

            foreach (var entity in UnityEngine.Object.FindObjectsOfType<BaseEntity>())
            {
                var shortname = entity.ShortPrefabName;
                info.list.TryAdd(shortname, new EntityInfo());
                
                if (entity.OwnerID == 0)
                {
                    info.list[shortname].countUnowned++;
                    info.countUnowned++;
                }
                else
                {
                    info.list[shortname].countOwned++;
                    info.countOwned++;
                }
                
                info.list[shortname].countGlobal++;
            }
  1. What kind of lag? Does it locks main thread?
  2. Lowering framerates? If yes for what duration?
The server freezes and i get timewarnings in console etc [Performance Monitor] Performance report was completed in 04:54:57, it taken 1160ms
In response to ():
The server freezes and i get timewarnings in console etc [Performance Monitor] Performance report wa...
Its not a warning, its message provided from plugin about time taken
I added for you ability to disable separate functions, will test freezing on my server

Merged post

As you can see here - there are no freeze or smth