Welcome Guest Search | Active Topics | Sign In | Register

Avoid Multiples child process Options
Desenvolvimento
Posted: Tuesday, November 27, 2018 11:18:30 AM
Rank: Member
Groups: Member

Joined: 11/27/2018
Posts: 10
Hi

It's possible to share child process between WebViews?

I have an application where i open multiples webcontrols. Each webcontrol creates one child process and consumes lots of memory and sometimes a new webcontrol only loads the url if a destroy another webcontrol. Its like an internal limit of opnened webviews.

Thanks.
eo_support
Posted: Tuesday, November 27, 2018 11:49:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

Having multiple child process does not mean they would consume a lot of memory. See here for more details:

https://www.essentialobjects.com/forum/postst8270p2_RunDLL32-and-Memory-Footprint-of-EOWebBrowser.aspx#43275

In short, what you wanted to share is already shared between the multiple child process.

Thanks!
Desenvolvimento
Posted: Tuesday, November 27, 2018 12:48:45 PM
Rank: Member
Groups: Member

Joined: 11/27/2018
Posts: 10
Thanks for the answer.

And what about a "internal limit of opened webviews"? Is there a limit? If yes, haw can i change it?

tks
eo_support
Posted: Tuesday, November 27, 2018 1:27:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

We are not aware of any limits about number of WebViews but this does not mean there isn't any or there won't be any. This limit if exists, would be imposed by the Chromium browser engine, not us. And it may also depend on other factors such as amount of resource available on your system. You can think of a WebView as a tab in Google Chrome browser ---- while its generally safe to assume that you can open maybe a dozen tabs, it would not be surprising that the browser will crash/fail if you try to open hundreds of tabs.

The limit that you run into mostly appear to be a pending resource loading limit. The browser engine restricts how many resource can load simultaneously. This limit is designed to be "reasonable" and this can change from version to version. You can observe this limit by using Google Chrome browser to simultaneously download multiple large files, and eventually you will not be able to start new download until some old download completes.

We do not provide direct control to either limit. You maybe able to find some command line argument that can control the concurrent resource loading limit online and you can try to pass such argument to our library through this property:

https://www.essentialobjects.com/doc/eo.webengine.engineoptions.extracommandlineargs.aspx

You can set the above option through this property:

https://www.essentialobjects.com/doc/eo.webbrowser.runtime.defaultengineoptions.aspx

Hope this helps.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.