Page 1 of 1

Browser taking up a lot of RAM on windows server 2012

Posted: Mon Dec 16, 2019 1:44 am
by giovani.erthal
I have an application that stays open (it should) for days on the Windows Server machine.

But the RAM consumption goes up to exceed the limit of my server (in less than 24 hours).

The same goes for the SimpleBrowser2 demo.

At my workstation this does not occur.

Attached, I left an application running for 1 hour on my workstation and also for 1 hour in the Windows Server.

Start at my workstation:
Image

After approximately 1 hour of work:
Image

Start on Windows server:
Image

After approximately 1 hour of work:
Image

I am using Delphi 10.3.1 with CEF 78.3.9 in a 64-bit application.

Does anyone have any idea why this occurs?

Re: Browser taking up a lot of RAM on windows server 2012

Posted: Mon Dec 16, 2019 3:59 am
by dilfich
Differ from Windows 10 on Windows Server will be with any application, CEF has nothing to do with it.

Re: Browser taking up a lot of RAM on windows server 2012

Posted: Mon Dec 16, 2019 8:22 am
by salvadordf
Hi,

The SimpleBrowser2 demo uses "in-memory" cache and that's the main cause of the memory usage issue you experience. Use a directory in your hard drive for the cache instead.

Read this post :
https://www.briskbard.com/forum/viewtop ... 2649#p2649

It's a little old but most of those suggestions are still effective.

Also try using this property to reduce the number of processes and the memory usage :

Code: Select all

GlobalCEFApp.DisableSiteIsolationTrials := True;
Add that code line before the GlobalCEFApp.StartMainProcess call in the DPR file.