'CEF Helper' ate all my RAM and abused my GPU - what is it doing?

137 visualizaciones (últimos 30 días)
Nathanael Jenkins
Nathanael Jenkins el 9 de Mzo. de 2021
Movida: Walter Roberson el 7 de Mzo. de 2025
I was running a simple plotting program on my mac (see below), when suddenly my GPU went from working at 2% to 70%, and my RAM filled up to 90%. I checked my system and saw that 'CEF helper' was causing this, so I force quit it in activity manager to try to fix the issue. It's a 2020 iMac with an intel processor and AMD GPU.
Once it was quit, I found that this was caused by something in MATLAB (see system log), but I can't work out what it's there for or why it used so much of my RAM. I didn't get a chance to screenshot the RAM before it went back down, but CEF helper was using about 4GB (whereas MATLAB, a separate task, was only using 1GB). I've attached copies of the system log and diagnostic reports, but I don't really know what they mean. I've also included a screenshot of 'info.plist' which is in the 'cefhelper' folder in MATLAB. Now that MATLAB is running again, the cefhelper task is back, but using much less RAM.
I've reopened MATLAB and tried running the program again, in exactly the same way, but cannot repeat the issue. My computer is running fine now, but I don't understand what happened, or if it will happen again. A search of the internet and MATLAB forums didn't reveal anything about what CEFhelper does, or any issues with it, except that cefhelper.exe can be a virus on windows comptuers.
So my question is - what is cefhelper doing, and how can I prevent this from happening again?
I can't share all the code because its a coursework project, but the issue occurred at the section below. I had finished running the code, and was trying to zoom in on a graph in the live script editor when the issue occurred.
% f and g are symbolic functions defined elsewhere in the script
% x_0 = 0 with negative g(x)
A = fpm(f, -g, 0.0, 1*10^(-6));
disp(['x ~ ', num2str(A)])
% ------
% Fixed point method
function x2 = fpm(f, g, x1, tol)
figure
hold on
fplot(g)
fplot(@(x) x)
a = animatedline(x1, 0);
% Let x2 = f(x1)
x2 = double(g(x1));
% Update plot
addpoints(a, x1, x2);
addpoints(a, x2, x2);
% Repeat until tolerance is reached
while abs(x2-x1) > tol
x1 = x2;
x2 = double(g(x1));
addpoints(a, x1, x2);
addpoints(a, x2, x2);
end
set(gca, 'XAxisLocation', 'origin')
hold off
end
  12 comentarios
John
John el 3 de En. de 2024
Movida: Walter Roberson el 7 de Mzo. de 2025
I have the same problem
Justin
Justin el 7 de Mzo. de 2025
Movida: Walter Roberson el 7 de Mzo. de 2025
Me too with R2024b

Iniciar sesión para comentar.

Respuestas (3)

Jean-Serge Cardinal
Jean-Serge Cardinal el 23 de Jun. de 2022
I fix this problem by upgrading from Kubuntu from 18 to 21.

Markus Lindblom
Markus Lindblom el 15 de Dic. de 2022
Hi, I had the same problem in 2021b. I would have 6 or more instances of JCEF running and consuming both RAM and CPU.
Here is how I solved it (NOT RECOMMENDED!): I went to "C:\Program Files\MATLAB\R2020b\bin\win64" and deleted the "cef_helper.exe" file (after creating a backup ofc!). The problem has now dissapeared, however I have lost some functionallity such as the "overhead menu" in Simulink. I can still find blocks etc by simply left-clicking and typing though. This is not how I would have liked to solve it, and as stated is not a recommended solution.... but it works. I can now actually use Matlab and Simulink without the program lagging and/or crashing all the time.
If you find a better solution please let me know!
Regards, Markus

james
james el 23 de En. de 2024
try clearing
C:\Users\<user name>\AppData\Roaming\MathWorks

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by