chromiumembedded / java-cef

Java Chromium Embedded Framework (JCEF). A simple framework for embedding Chromium-based browsers in other applications using the Java programming language.
https://bitbucket.org/chromiumembedded/java-cef
Other
648 stars 142 forks source link

Why are so many processes of JCEF Helper created on the system to load only one URL? #420

Open magreenblatt opened 2 years ago

magreenblatt commented 2 years ago

Original report by Krishnakant Kadam (Bitbucket: Krishnakant Kadam).


Steps to reproduce:
The issue is reproducing with the JCEF simple app.
Open the JCEF sample app and Load the URL in it. (for example 'https://edition.cnn.com/')

Expected result:
There should be only one helper process for one browser instance.
In the sample app, if there is only one browser instance created then why multiple JCEF helper processes are created?

I am using the below version of the product :
JCEF Version: 95.7.18.291+g56fb723
Chromium Verison: 95.0.4638.69
OS: Windows 10 - 64 bits.
Java Version: OpenJDK version "11.0.13"

magreenblatt commented 2 years ago

There should be only one helper process for one browser instance.

This is incorrect. There should be a GPU process, a network process and 2+ renderer processes. The quantity in your screenshot does seem excessive. Were they all created on a single execution of the sample app, or are they left over from multiple executions?

You can use a tool like process explorer to see the command-line for each process.

magreenblatt commented 2 years ago

Original comment by Krishnakant Kadam (Bitbucket: Krishnakant Kadam).


Thanks for your prompt response.

In the sample app, www.google.com first opens by default and then I load www.cnn.com
I observed that when loaded google.com URL in the sample app then it creates around 4 processes(as expected) but cnn.com opens more helper processes.

Also I will install 'Process Explorer' on my windows machine and check each processes.

magreenblatt commented 2 years ago

Original changes by Krishnakant Kadam (Bitbucket: Krishnakant Kadam).


magreenblatt commented 2 years ago

Original changes by Krishnakant Kadam (Bitbucket: Krishnakant Kadam).


magreenblatt commented 2 years ago

Original changes by Krishnakant Kadam (Bitbucket: Krishnakant Kadam).