Page 1 of 1

Desktop app with minimum RAM usage

PostPosted: Tue Mar 12, 2019 4:19 pm
by matanyacohen
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?

Re: Desktop app with minimum RAM usage

PostPosted: Wed Mar 13, 2019 12:23 am
by amaitland
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.

Re: Desktop app with minimum RAM usage

PostPosted: Wed Mar 13, 2019 5:52 pm
by matanyacohen
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.

Re: Desktop app with minimum RAM usage

PostPosted: Thu Mar 14, 2019 12:19 am
by amaitland
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.

Re: Desktop app with minimum RAM usage

PostPosted: Thu Mar 14, 2019 5:18 am
by matanyacohen
After all I nee project example with the minimum. No GPU no Sandbox No extension and so on. To see how is look like.

Re: Desktop app with minimum RAM usage

PostPosted: Sun Oct 06, 2019 4:30 pm
by jonny0632
You may find this interesting: bloomberg/chromium.bb