Table of Contents

Class MemoryInputs

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

Everything the memory decision depends on, gathered before a server starts.

public sealed record MemoryInputs : IEquatable<MemoryInputs>
Inheritance
MemoryInputs
Implements
Inherited Members

Constructors

MemoryInputs(ServerConfig, JavaRuntime, int, long, long, bool, long, LearnedCeiling?)

Everything the memory decision depends on, gathered before a server starts.

public MemoryInputs(ServerConfig Config, JavaService.JavaRuntime Java, int ModCount, long TotalRamMb, long ReservedByOthersMb, bool Dedicated, long BoostMb = 0, LearnedCeiling? Learned = null)

Parameters

Config ServerConfig

The server.

Java JavaService.JavaRuntime

The Java it starts on.

ModCount int

Jars in its mods folder; 0 for servers without mods.

TotalRamMb long

The machine's memory. 0 when unknown, which disables the budget.

ReservedByOthersMb long

Ceilings of the other servers running right now.

Dedicated bool

The machine is only for servers ("Este PC es solo para servidores").

BoostMb long

A one-off raise for this start, asked for from the Performance page. Never saved as the server's ceiling.

Learned LearnedCeiling

What the server's history says it needs, or null while it says nothing.

Properties

BoostMb

A one-off raise for this start, asked for from the Performance page. Never saved as the server's ceiling.

public long BoostMb { get; init; }

Property Value

long

Config

The server.

public ServerConfig Config { get; init; }

Property Value

ServerConfig

Dedicated

The machine is only for servers ("Este PC es solo para servidores").

public bool Dedicated { get; init; }

Property Value

bool

Java

The Java it starts on.

public JavaService.JavaRuntime Java { get; init; }

Property Value

JavaService.JavaRuntime

Learned

What the server's history says it needs, or null while it says nothing.

public LearnedCeiling? Learned { get; init; }

Property Value

LearnedCeiling

ModCount

Jars in its mods folder; 0 for servers without mods.

public int ModCount { get; init; }

Property Value

int

ReservedByOthersMb

Ceilings of the other servers running right now.

public long ReservedByOthersMb { get; init; }

Property Value

long

TotalRamMb

The machine's memory. 0 when unknown, which disables the budget.

public long TotalRamMb { get; init; }

Property Value

long