Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Local runtime (Java) memory leak with Inspector opened #1400

@No3371

Description

@No3371

Outdated description. See comments below first.

Description

I am working on managed AI worker which spawns 715 entities, modify the position components and let SpatialOS update the data to runtime, every frame.

If I disable the worker (by disabling the worker connector before building it), and run the worker in Unity Editor, the memory usage stay stable at about 4GB memory working fine.

If I enable the worker connector and let it managed by the local runtime, the Java application consumes all my memory.

I've isolated the issue by testing the manged worker with/without the system that assign new value to Position.

Expected behaviour

The worker works normally whether it's managed/external.
(I expected workers running inside Unity should have more overhead)

Environment

i7-9700 / 32GB
Windows 10 1909 / Unity 2019.3.7f1
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions