GoogleChrome / rendertron

A Headless Chrome rendering solution

Home Page:https://render-tron.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the memory of chrome process keeps increasing

baiyonghong1989 opened this issue · comments

hello,I've recently been using rendertron as a solution for our seo.
I found that after I started rendertron, even if there were no crawler requests, there were still some chrome process that were resident. And the number of processes varies in different environments :in dev environment, the number of chrome process is 5 when the server is idle,while in prod environment the number is 98。
and my config of rendertron is below:
{
"cache": "filesystem",
"cacheConfig": {
"cacheDurationMinutes": "10080",
"cacheMaxEntries": "50000",
"snapshotDir":"/renderCache"
},
"timeout": 5000,
"closeBrowser": false
}

In addition, I find that in the production environment, the chrome process ID does not change, and the memory usage of these processes keeps increasing. Even in the server is idle, the memory usage of the resident chrome process does not decrease。
And when the memory usage of all Chrome processes exceed about 70 percent of the server's memory , all chrome processes will be killed at a time ,and i do not know who does it 。Most importantly, I want to know why the memory usage hasn't decreased when there are no crawler requests .
thanks very much . and this is the first time i create issue in github,The description may not be clear, please forgive me

ps: rendertron version:3.1.0 chromium stable version: 85.0.4183.83

@baiyonghong1989 do you mind trying out the branch from my PR#813 to see how things go? I have upgraded in that branch so wondering if it is any better than the master?

Any news on this? We are facing the same issue.

Example (rendering one page each 15 minutes):
grafik

In general, as we're deprecating the project, you should look into alternative approaches to rendering on the web.