Bug 236760

Summary: /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitNetworkProcess allocates 85 GB
Product: WebKit Reporter: Joris <joris.geer>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Mac (Intel)   
OS: Linux   

Description Joris 2022-02-16 23:58:34 PST
The WebKitNetworkProcess process allocates 85 GB.

/proc/<pid>status shows :

VmPeak:	117607928 kB
VmSize:	85772212 kB

The parent process is xreader (a PDF document viewer) which indeed links to WebKit.
Comment 1 Michael Catanzaro 2022-02-17 07:38:10 PST
Hi, that's just virtual memory required by JavaScriptCore's Gigacage. Note that is *virtual* memory, i.e. address space. This is needed to maintain segregated heaps for different object types. It doesn't actually consume resident memory.

I'm impressed the xapp developers made the app work on macOS. They weren't kidding about their apps being cross-desktop. Honestly, I didn't know that it was still possible to build WebKitGTK on macOS at all!