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.

Browser taking up a lot of RAM on windows server 2012

Post Reply
giovani.erthal
Posts: 12
Joined: Mon Nov 18, 2019 9:23 pm

Browser taking up a lot of RAM on windows server 2012

Post 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?
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

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

Post by dilfich »

Differ from Windows 10 on Windows Server will be with any application, CEF has nothing to do with it.
User avatar
salvadordf
Posts: 4572
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post 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.
Post Reply