Skip to content

[WPE 2.38] Possible memory leak or GC not working #1569

@gnulux

Description

@gnulux

Hi [Recipient Name],

I am currently running cog 0.12.3 with Webkit 2.38.6 on an IMX8plus ​ARM64 Yocto embedded system, displaying a JavaScript page generated from ReactJS.

A few months ago, I updated my Yocto meta-webkit to use WebPlatformForEmbedded/WPEWebKit wpe-2.38. I configured the following memory limitation variables:

WPE_POLL_MAX_MEMORY="databaseprocess:10m,networkprocess:5m,webprocess:140m,rpcprocess:10m"
WPE_RAM_SIZE="182m"

After restarting cog, the WPEWebProcess initially operates as expected, keeping memory usage below 180MB, and I can observe garbage collection (GC) reclaiming memory in the logs. However, if I leave my application open on COG for approximately seven days without any screen operations, I notice a continuous increase in WPEWebProcess memory consumption, as shown in the graph below. It appears that the GC stops functioning during this period.

Image

Could you please advise on how I can effectively monitor what is causing this progressive memory growth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions