WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 230067
Implement a WebProcess cap
https://bugs.webkit.org/show_bug.cgi?id=230067
Summary
Implement a WebProcess cap
Chris Dumez
Reported
2021-09-08 15:06:59 PDT
Implement a WebProcess cap to avoid getting into a state where we run out of resources and crash in various ways.
Attachments
Patch
(19.77 KB, patch)
2021-09-08 15:24 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(20.12 KB, patch)
2021-09-09 07:47 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-09-08 15:07:11 PDT
<
rdar://79479244
>
Chris Dumez
Comment 2
2021-09-08 15:24:42 PDT
Created
attachment 437668
[details]
Patch
Geoffrey Garen
Comment 3
2021-09-08 19:55:16 PDT
Comment on
attachment 437668
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=437668&action=review
Does moving to foreground mark a process as recently used? (Would be nice to add that, if not.)
> Source/WebKit/Shared/ProcessTerminationReason.h:33 > + ExceededProcessLimit,
Let's call this ExceededProcessCountLimit, since we call it a process count limit elsewhere.
> Source/WebKit/UIProcess/WebProcessProxy.cpp:111 > +static unsigned maxProcessCount { 400 };
s_maxProcessCount
Chris Dumez
Comment 4
2021-09-09 07:22:06 PDT
Comment on
attachment 437668
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=437668&action=review
>> Source/WebKit/Shared/ProcessTerminationReason.h:33 >> + ExceededProcessLimit, > > Let's call this ExceededProcessCountLimit, since we call it a process count limit elsewhere.
OK.
>> Source/WebKit/UIProcess/WebProcessProxy.cpp:111 >> +static unsigned maxProcessCount { 400 }; > > s_maxProcessCount
I thought the s_ prefix was only used for static data members but OK.
Chris Dumez
Comment 5
2021-09-09 07:22:31 PDT
(In reply to Geoffrey Garen from
comment #3
)
> Comment on
attachment 437668
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=437668&action=review
> > Does moving to foreground mark a process as recently used? (Would be nice to > add that, if not.)
It currently doesn't but this is a good point and I'll fix it.
Chris Dumez
Comment 6
2021-09-09 07:47:30 PDT
Created
attachment 437742
[details]
Patch
EWS
Comment 7
2021-09-09 09:40:54 PDT
Committed
r282218
(
241505@main
): <
https://commits.webkit.org/241505@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 437742
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug