Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Optimization

User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Optimization

Post by salvadordf »

CloseBrowser is the first step in the browser destruction sequence. I assume you follow all the steps described in the code comments.

However, even if you follow all those steps you will see that the cache elements are still in memory (assuming you don't use a disk cache).

I guess that Chromium will keep some connections alive just in case you create a new browser to the same server and the memory management will eventually return the unused memory to Windows.

Read the Chromium design documents for more details :
http://www.chromium.org/developers/design-documents
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Optimization

Post by dilfich »

Are there any special requirements for windows? On windows server 2012-2016, it does not work correctly. ((( :?
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Optimization

Post by salvadordf »

Could you describe the problem?

CEF3 based applications should work on Windows 7, 8, 8.1, 10 but also on Windows server 2008 R2 and newer versions.
Make sure your Windows user has enough privileges and the browser is not trying to use read-only directories.

Try the official CEF sample application on that machine :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Optimization

Post by dilfich »

The problem occurs not too often but it's there. Briefly lost Internet connection, it is in the application only. Administrator rights, this is no problem. On windows 10, no such problems.
ps.
windows server 2012-2016 VPS
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Optimization

Post by dilfich »

JS Alert
"No Internet connection. Check your connection and try again."
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Optimization

Post by salvadordf »

That's really weird...

Can you replicate the problem with the official CEF sample application?
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Optimization

Post by dilfich »

salvadordf wrote: Tue Jun 19, 2018 7:15 pm That's really weird...

Can you replicate the problem with the official CEF sample application?
How? Open one page? :shock:
The app opens and closes hundreds of pages one by one. And the problem on windows server, on windows 10 such problem is not present.
dilfich
Posts: 345
Joined: Thu Nov 30, 2017 1:17 am

Re: Optimization

Post by dilfich »

Sorry.
Forgot to say that the program works through a proxy, perhaps this is the problem. But it is still not clear on another windows with these proxies no problems...
Disabled proxy and the problem disappeared..
Why windows server is the problem.. :(
User avatar
salvadordf
Posts: 4374
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Optimization

Post by salvadordf »

I can only suggest you to try a different proxy server.

This seems to be a network problem, windows configuration problem or maybe that VPS service is blocking that traffic after a while.
There are many google results about lost connections in windows when the users have a proxy.
Post Reply