Page 1 of 1

Please Fix Memory Leaks

PostPosted: Tue Dec 14, 2010 10:24 pm
by shileiyu
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

Re: Please Fix Memory Leaks

PostPosted: Wed Dec 15, 2010 9:44 am
by magreenblatt
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

Re: Please Fix Memory Leaks

PostPosted: Tue Apr 30, 2013 2:46 am
by Czarek
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.