Please Fix Memory Leaks

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Please Fix Memory Leaks

Postby shileiyu » Tue Dec 14, 2010 10:24 pm

1.debug launch cefclient and go to google, then input anything then repeat click search.
2.you will find the memory usage is keeping increase.
3.close program, some message like LEAK:xxxxx is appear in output window
shileiyu
Newbie
 
Posts: 9
Joined: Thu Dec 09, 2010 10:52 am

Re: Please Fix Memory Leaks

Postby magreenblatt » Wed Dec 15, 2010 9:44 am

The V8 JavaScript engine uses a garbage collector optimized for performance. As a result, memory allocated by V8 is not immediately freed. You should see memory usage reach a stable level over extended periods of time. Issue 86 describes a good technique for measuring memory usage in CEF.

To facilitate fast shutdown WebKit does not free all memory on exit but instead leaves that task to the operating system. See issue 15 for additional information.

Regards,
Marshall
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Please Fix Memory Leaks

Postby Czarek » Tue Apr 30, 2013 2:46 am

magreenblatt wrote:The V8 JavaScript engine uses a garbage collector optimized for performance. As a result, memory allocated by V8 is not immediately freed. You should see memory usage reach a stable level over extended periods of time. Issue 86 describes a good technique for measuring memory usage in CEF.

To facilitate fast shutdown WebKit does not free all memory on exit but instead leaves that task to the operating system. See issue 15 for additional information.

Regards,
Marshall


If I wanted to free all memory on shutdown, is there a way to do it? The application will still
live after CefShutdown() is called, so freeing the memory that CEF used would be nice.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 15 guests