Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Memory leak?

Discussion in 'Editor & General Support' started by Labewo, Jan 11, 2020.

  1. Labewo

    Labewo

    Joined:
    Apr 12, 2019
    Posts:
    21
    Hi,

    Is this output normal or is this a memory leak? I have to say that my headless server is using 800 MB. It uses UNET. I think that UNET allocates more memory than it needs but 800 MB its normal?

    Output:

    Unloading 8 Unused Serialized files (Serialized files now loaded: 0)
    DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 67141636.
    DynamicHeapAllocator allocation probe 2 failed - Could not get memory for large allocation 67141636.
    DynamicHeapAllocator allocation probe 3 failed - Could not get memory for large allocation 67141636.
    DynamicHeapAllocator allocation probe 4 failed - Could not get memory for large allocation 67141636.
    DynamicHeapAllocator out of memory - Could not get memory for large allocation 67141636!
    Could not allocate memory: System out of memory!
    Trying to allocate: 67141636B with 16 alignment. MemoryLabel: Physics
    Allocation happened at: Line:165 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 671394241B | peak: 0B | reserved: 773755265B
    [ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GFX ] used: 4245432B | peak: 0B | reserved: 8738136B
    [ ALLOC_CACHEOBJECTS ] used: 18738720B | peak: 0B | reserved: 27262976B
    [ ALLOC_TYPETREE ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_TEMP_THREAD ] used: 32768B | peak: 0B | reserved: 2162688B
    Could not allocate memory: System out of memory!
    Trying to allocate: 67141636B with 16 alignment. MemoryLabel: Physics
    Allocation happened at: Line:165 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 671394241B | peak: 0B | reserved: 773755265B
    [ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 2097152B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GFX ] used: 4245432B | peak: 0B | reserved: 8738136B
    [ ALLOC_CACHEOBJECTS ] used: 18738720B | peak: 0B | reserved: 27262976B
    [ ALLOC_TYPETREE ] used: 0B | peak: 0B | reserved: 0B
    [ ALLOC_TEMP_THREAD ] used: 32768B | peak: 0B | reserved: 2162688B

    [Physics.PhysX] User allocator returned NULL.

    (Filename: PxShared/src/foundation/include/PsBroadcast.h Line: 199)

    [Physics.PhysX] Gu::HeightField::load: PX_ALLOC failed!

    (Filename: ./PhysX/Source/GeomUtils/src/hf/GuHeightField.cpp Line: 312)

    UnloadTime: 46.166000 ms

    Unloading 9716 unused Assets to reduce memory usage. Loaded Objects now: 17383.
    Total: 47.762000 ms (FindLiveObjects: 2.672000 ms CreateObjectMapping: 3.056000 ms MarkObjects: 25.626000 ms DeleteObjects: 16.406000 ms)


    Thank you!