DIYgod / DIYgod/RSSHub

更新华尔街日报的源就内存不足

Open
#13,143 10 comments 0 reactions 0 assignees View on GitHub
bug ping: not found route: v2 RSS bug
Dominant language
TypeScript
Stars
46.2k
Forks
10.2k
Avg merge
8h 48m
Merged PRs (30d)
175

Description

### 路由地址

```routes
/wsj/:lang/:category?
```

### 完整路由地址

```fullroutes
/wsj/zh-cn
```

### 相关文档

https://docs.rsshub.app/zh/routes/traditional-media#the-wall-street-journal-(wsj)-hua-er-jie-ri-bao-news

### 预期是什么?

正常更新

### 实际发生了什么?

info: /wsj/zh-cn, user IP: ::ffff:172.21.0.4

<--- Last few GCs --->

[18:0x6df5fc0] 1093794 ms: Mark-sweep (reduce) 355.5 (364.3) -> 355.3 (363.1) MB, 1465.0 / 0.0 ms (+ 106.3 ms in 11 steps since start of marking, biggest step 26.0 ms, walltime since start of marking 1631 ms) (average mu = 0.242, current mu = 0.177) fin[18:0x6df5fc0] 1094990 ms: Mark-sweep 356.3 (363.1) -> 356.3 (367.1) MB, 1192.2 / 0.0 ms (average mu = 0.142, current mu = 0.005) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb83f50 node::Abort() [node]
2: 0xa94834 [node]
3: 0xd647c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xd64b67 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xf42265 [node]
6: 0xf5474d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
7: 0xf2ee4e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
8: 0xf30217 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
9: 0xf113ea v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
10: 0x12d674f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
11: 0x17035b9 [node]
Aborted (core dumped)

### 部署

自建

### 部署相关信息

_No response_

### 额外信息

```shell
使用了默认镜像和chromium-bundled镜像,都会出现同样的问题。

只有少数情况下,更新会正常。每天都会有几次出现爆内存,然后检查日志都是在执行华尔街日报这条的时候,就爆了。

我是700M内存。没有使用redis。

docker配置如下
rsshub:
# two ways to enable puppeteer:
# * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
# * (consumes more disk space and memory) leave everything unchanged
image: diygod/rsshub:chromium-bundled
container_name: rsshub
restart: always
logging:
options:
max-size: 10m
# ports:
# - '1200:1200'
environment:
NODE_ENV: production
```

### 这不是重复的 issue

- [X] 我已经搜索了 [现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.