Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6831621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:45:32+00:00 2026-05-26T22:45:32+00:00

I made an NSWindow containing a WebView. It loads from a nib file and

  • 0

I made an NSWindow containing a WebView. It loads from a nib file and displays webpages in the WebView. After closing the NSWindow/WebView, they’re released. If it’s re-opened, a new NSWindow/WebView is created and loaded from the nib. Release When Closed is TRUE for the NSWindow.

First column is memory usage.

  1. 30MB – Application loads.
  2. 60MB – NSWindow/WebView created and loads from nib.
  3. 160MB – Browse many webpages.
  4. 158MB – NSWindow/WebView closed and released.
  5. 158MB – …time passes…
  6. 160MB – NSWindow/WebView created and loads from nib.
  7. 200MB – Browse many webpages.
  8. 198MB – NSWindow/WebView closed and released.
  9. 198MB – …time passes…
  10. 200MB – NSWindow/WebView created and loads from nib.
  11. 160MB – Browse many webpages.
  12. 158MB – NSWindow/WebView closed and released.
  13. 158MB – …time passes…
  14. 160MB – NSWindow/WebView created and loads from nib.
  15. 200MB – Browse many webpages.
  16. 198MB – NSWindow/WebView closed and released.

As you can see, Real Memory (reported by System Preferences) does not decrease much after the NSWindow and its WebView are released. Furthermore, memory seems to expand up to around 200MB, and then oscillates between 160MB and 200MB until the app quits (WebKit is doing memory management behind the scenes I presume).

Why doesn’t real memory reduce back to 30MB after I release my NSWindow/WebView? Is there any way to force it to do this? Or is this something I shouldn’t even worry about?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:45:32+00:00Added an answer on May 26, 2026 at 10:45 pm

    You shouldn’t worry about it as there is probably some behind the scenes memory management that is keeping the memory pools around just in case they are needed soon. A lot of memory managers will keep reserve pools of memory to increase application responsiveness when requesting from these pools (avoiding system call for increased heap size). This is likely happening and is probably why you see the application hit it’s working set size and simply oscillate because of allocations/deallocations. This is normal behavior and unless you’re seeing actual memory leaks then you shouldn’t worry about it unless it’s affecting application or system performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a class from Linq to SQL Clasees with VS 2008 SP1 Framework
I made a class that derives from Component: public class MyComponent: System.ComponentModel.Component { }
I made a code that translate strings to match each word from the array
I made an html file called test.html then I navigated to it as http://site.com/test.html?test1=a
I made a simple application in which an MDI parent loads a child form
I made this app that takes time entries from fogbugz and posts them to
We made a 3D carousel with the new native 3D support from flash. Now
Made a program retrieving .txt files from a folder. Each .txt files contains 1
i made check box in wpf ,Got it from Internet.I want to see which
Currently I'm learning Obj-C for Mac developing, with Cocoa. I made a simple file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.