Desktop app with minimum RAM usage

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Desktop app with minimum RAM usage

Postby matanyacohen » Tue Mar 12, 2019 4:19 pm

I interest start develop Desktop app with HTML. The CEF look excellent option for me.

I run the Sample Application from http://opensource.spotify.com/cefbuilds/index.html (Windows 64). The RAM and Process look like:

Private | Working set
-cefclient.exe 20,612K 50,616K
|-cefclient.exe 51,548K 58,328K
|-cefclient.exe 39,556K 120,284K


It's look steep for simple application. Actually, my app not need browse or sandbox, it's just use with chromium as UI.

I wondering if have a way to reduce the RAM usage.
In particularly, I refer to CEF1 that his RAM is very low, but I understand that is no longer support or update his chromium version. CEF1 RAM image look like:

-CEFSimpleSample.exe 29,920K 40,088K


So, why CFE3 need 2 sub process, and consume lot of RAM? There have a way to reduce it?
matanyacohen
Newbie
 
Posts: 3
Joined: Tue Mar 12, 2019 12:59 pm

Re: Desktop app with minimum RAM usage

Postby amaitland » Wed Mar 13, 2019 12:23 am

Assuming you are the OP of https://stackoverflow.com/questions/550 ... s-chromely

Read the link I provided regarding the process model.

You can disable GPU acceleration to reduce the number of processes.

Memory usage is dictated by the version of Chromium.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Desktop app with minimum RAM usage

Postby matanyacohen » Wed Mar 13, 2019 5:52 pm

Yes it's mine. I try read the link https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage.md#markdown-header-processes, but it's very short document without background. I may ask for more clue what going on there:

>>>Memory usage is dictated by the version of Chromium.
Which process dictated by the version of Chromium? each process or one of them?

>>>You can disable GPU acceleration to reduce the number of processes.
What minimum of process I can achieve?

Actually I not understand why CEF3 move to multiple process, why it's not be one process? why need separate browser from host windows?

After all my application requirement is simple:
+No Sandbox needed
+No extension use
+User never get ability to browse within my app
+No graphic draw needed. just HTML and JS
+But there a needs for C++ function that have ability access network, like connection to server or DB.

In order to choose if CEF is the right choice for me. I need minimum project that give a minimum process and minimum RAM usage.
Last edited by matanyacohen on Thu Mar 14, 2019 5:11 am, edited 1 time in total.
matanyacohen
Newbie
 
Posts: 3
Joined: Tue Mar 12, 2019 12:59 pm

Re: Desktop app with minimum RAM usage

Postby amaitland » Thu Mar 14, 2019 12:19 am

The process model is dictated by Chromium, if you wish to know more then have a read of the chromium design docs.

If you are this fixated on memory usage then CEF probably isn't for you.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Desktop app with minimum RAM usage

Postby matanyacohen » Thu Mar 14, 2019 5:18 am

After all I nee project example with the minimum. No GPU no Sandbox No extension and so on. To see how is look like.
matanyacohen
Newbie
 
Posts: 3
Joined: Tue Mar 12, 2019 12:59 pm

Re: Desktop app with minimum RAM usage

Postby jonny0632 » Sun Oct 06, 2019 4:30 pm

You may find this interesting: bloomberg/chromium.bb
jonny0632
Newbie
 
Posts: 3
Joined: Thu Oct 03, 2019 7:07 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 24 guests