Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mgeorgoulopoulos · Jan 06, 2014 at 02:25 PM · performancememoryprofilermemory-leakgarbage-collection

ManagedHeap.ReservedUnusedSize

Hi guys, can someone explain to me what the "ManagedHeap.ReservedUnusedSize" is in the profiler? That entry starts at around 200kb when I start my game, but it goes up to even 20mb at times. It may be worth saying that I am loading a pretty big text file, however I am destroying it after I am done with it. That alone is about 6mb worth of data. Should I be calling GC.Collect after that?

Also the "ManagedHeap.UsedSize" increases and doesn't go down either.

Any ideas?

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Graham-Dunnett ♦♦ · Jan 06, 2014 at 02:34 PM 0
Share

The memory used by $$anonymous$$ono only increases, it will never decrease, since this memory is not returned to the OS.

avatar image mgeorgoulopoulos · Jan 06, 2014 at 03:14 PM 0
Share

Hm.. so I cannot free this memory? Is this intended behaviour?

avatar image Tak · Jan 06, 2014 at 03:54 PM 0
Share

"The memory used by $$anonymous$$ono only increases, it will never decrease, since this memory is not returned to the OS." ^^ This is not correct. $$anonymous$$ono(/Unity) does return blocks of unused memory to the operating system.

avatar image mgeorgoulopoulos · Jan 06, 2014 at 04:59 PM 0
Share

That makes more sense. But how can I free this memory? I do clear all the references I find, however it's still reporting as "ReservedUnusedSize". Surely if it's unused I can claim it back.

avatar image Tak · Jan 07, 2014 at 09:00 AM 0
Share

The GC deter$$anonymous$$es whether a block can be freed - the best you can do is to be careful what/when you allocate, and then make sure you don't keep references to things you don't care about any more.

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Performance going down over time 2 Answers

Online, Possible Memory Leaks with RPC 0 Answers

CPU being choked by GC.MarkDependencies 1 Answer

Profiler spikes 1 Answer

Reasonable heap alloc. per second and total ? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges