Search Results for

    Show / Hide Table of Contents

    Class StandardMetrics.Memory

    Allocated memory metric

    Inheritance
    object
    StandardMetrics.Memory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Metrics
    Assembly: Akka.Cluster.Metrics.dll
    Syntax
    public sealed class StandardMetrics.Memory

    Constructors

    | Edit this page View Source

    Memory(Address, long, double, double, Option<double>)

    Creates instance of StandardMetrics.Memory

    Declaration
    public Memory(Address address, long timestamp, double used, double available, Option<double> max)
    Parameters
    Type Name Description
    Address address

    Address index of the node the metrics are gathered at

    long timestamp

    The time of sampling, in milliseconds since midnight, January 1, 1970 UTC

    double used

    Total memory allocated to the currently running process (in bytes)

    double available

    Memory available for current process (in bytes)

    Option<double> max

    Max memory recommended for process (in bytes)

    Properties

    | Edit this page View Source

    Address

    Address of the node the metrics are gathered at

    Declaration
    public Address Address { get; }
    Property Value
    Type Description
    Address
    | Edit this page View Source

    Available

    Memory available for current process (in bytes) (VirtualMemorySize64)

    Declaration
    public double Available { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    MaxRecommended

    Max memory recommended for process (in bytes) (MaxWorkingSet)

    Declaration
    public Option<double> MaxRecommended { get; }
    Property Value
    Type Description
    Option<double>
    | Edit this page View Source

    Timestamp

    The time of sampling, in milliseconds since midnight, January 1, 1970 UTC

    Declaration
    public long Timestamp { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    Used

    The current process allocated memory (in bytes) (WorkingSet64)

    Declaration
    public double Used { get; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Decompose(NodeMetrics)

    Given a NodeMetrics it returns the HeapMemory data if the nodeMetrics contains necessary heap metrics.

    Declaration
    public static Option<(Address Address, long Timestamp, double UsedSmoothValue, double AvailableSmoothValue, Option<double> MaxRecommendedSmoothValue)> Decompose(NodeMetrics nodeMetrics)
    Parameters
    Type Name Description
    NodeMetrics nodeMetrics
    Returns
    Type Description
    Option<(Address Address, long Timestamp, double UsedSmoothValue, double AvailableSmoothValue, Option<double> MaxRecommendedSmoothValue)>

    If possible a tuple matching the HeapMemory constructor parameters

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET