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

조회 수: 137 (최근 30일)
Nathanael Jenkins
Nathanael Jenkins 2021년 3월 9일
이동: Walter Roberson 2025년 3월 7일
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
John
John 2024년 1월 3일
이동: Walter Roberson 2025년 3월 7일
I have the same problem
Justin
Justin 2025년 3월 7일
이동: Walter Roberson 2025년 3월 7일
Me too with R2024b

댓글을 달려면 로그인하십시오.

답변 (3개)

Jean-Serge Cardinal
Jean-Serge Cardinal 2022년 6월 23일
I fix this problem by upgrading from Kubuntu from 18 to 21.

Markus Lindblom
Markus Lindblom 2022년 12월 15일
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 2024년 1월 23일
try clearing
C:\Users\<user name>\AppData\Roaming\MathWorks

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by