damoeb / rss-proxy

RSS-proxy allows you to do create an RSS or ATOM feed of almost any website, just by analyzing just the static HTML structure.
https://rssproxy.migor.org
1.72k stars 109 forks source link

After installing version 1, especially opening js, the memory usage is increasing, how can I release some regularly #48

Open qupb opened 1 year ago

qupb commented 1 year ago

root@debian:~# ps aux | sort -k4,4nr | head -n 10 www 5021 0.5 7.5 1876584 304204 ? Sl Jul08 67:48 /usr/lib/chromium-browser/chromium-browser --no-sandbox --disable-gpu --user-data-dir --window-size=1280,1024 --window-position=0,0 --enable-pinch www 19776 0.0 2.4 598004 98552 ? Ssl Jul11 0:53 /opt/rss-proxy/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --headless --hide-scrollbars --mute-audio about:blank --disable-dev-shm-usage --disable-default-apps --disable-extensions --disable-gpu --disable-sync --disable-translate --mute-audio --no-first-run --no-sandbox --safebrowsing-disable-auto-update --remote-debugging-port=0 --user-data-dir=/tmp/puppeteer_dev_chrome_profile-UiOeRn

qupb commented 1 year ago

root@debian:~# docker stats CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS cdf752d2ae23 vigilant_black 1.59% 2.178GiB / 3.841GiB 56.70% 1.05GB / 564MB 33MB / 11.4MB 1390 0c782be19122 optimistic_mendeleev 0.54% 400.1MiB / 3.841GiB 10.17% 56.4MB / 55.7MB 98.2MB / 14.2GB 124

qupb commented 1 year ago

root@debian:~# for proc in $(find /proc -maxdepth 1 -regex '/proc/[0-9]+'); do

printf "%2d %5d %s\n" \
    "$(cat $proc/oom_score)" \
    "$(basename $proc)" \
    "$(cat $proc/cmdline | tr '\0' ' ' | head -c 50)"

done 2>/dev/null | sort -nr | head -n 40 878 7874 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 878 1676 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 878 11851 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 9144 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 4232 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 3707 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 31889 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 25945 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 23480 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 21791 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 21020 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 20732 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 19859 /opt/rss-proxy/node_modules/puppeteer/.local-chrom 877 19809 /opt/rss-proxy/node_modules/puppeteer/.local-chrom