OutOfMemory?
My server is wiped every month,recently it has 2,000,000 entities, my server has 128GB ram,  but rust server just used 50GB,and then the server always report errors (outof memory),what can I do?

OutOfMemoryException: Out of Memory

JokerLudac

OutOfMemoryException: Out of Memory

Do you do daily restarts?

UHvV0nbodhQcdq6.png Razor

Do you do daily restarts?

yes, but now it can't start up

Windows or linix?

too many weapon entity, what's thisentity count

Merged post

I have a self written weapon enhancement plugin,and some of the code is like images, does it have any impact?code

I can not see your images also you using Winows or linux server?

JokerLudac

too many weapon entity, what's thisentity count

Merged post

I have a self written weapon enhancement plugin,and some of the code is like images, does it have any impact?code

I can not see your images also you using Winows or linux server?
Images no should not effect world loading.
EvwLPa3sSG7TiO7.png Razor
I can not see your images also you using Winows or linux server?
Images no should not effect world loading.

Windows Server, I mean I used PerformanceMonitor plugin, and it reports too many unowned weapon entity, and I have a self written weapon enhancement plugin,and some of the code is object

OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
{
if (info == null) return null;
var victim = entity;
var player = info.InitiatorPlayer;
if (player == null) return null;
var item = info?.Weapon?.GetItem();

JokerLudac

Windows Server, I mean I used PerformanceMonitor plugin, and it reports too many unowned weapon entity, and I have a self written weapon enhancement plugin,and some of the code is object

OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
{
if (info == null) return null;
var victim = entity;
var player = info.InitiatorPlayer;
if (player == null) return null;
var item = info?.Weapon?.GetItem();

When rust loads it uses more mem then when its running maybe ya hiting the cap. try to increse pagefile.
https://www.tomshardware.com/news/how-to-manage-virtual-memory-pagefile-windows-10,36929.html

JokerLudac

What's pagefile?

Its like vertial Memory

WF5w3T7KWMAU4Ar.png Razor

Its like vertial Memory


virtual memory?

Virtual memory is also known as swap, it's temporary disk cache when you exceed your max RAM. With 128gb RAM you really should not need any of that.

You are aware that 2 million entities and 50gb RAM is insane, right? Maybe you should look at fixing the root cause of that.

htmlSh3wbejUsbb.png JimDeadlock

Virtual memory is also known as swap, it's temporary disk cache when you exceed your max RAM. With 128gb RAM you really should not need any of that.

You are aware that 2 million entities and 50gb RAM is insane, right? Maybe you should look at fixing the root cause of that.

How large a map is he using?