coze-dev / coze-dev/coze-studio

工作流里面使用代码,会导致CPU疯涨,内存使用也疯涨。另外调用工作流时带宽占用有点离谱?这些问题该怎么解决

Open
#2,426 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

如题:工作流里面使用代码,会导致CPU疯涨,内存使用也疯涨。另外调用工作流时带宽占用有点离谱?这些问题该怎么解决。
我添加了个工作流。里面有个代码执行模块,我就添加了一行代码,不管使用沙盒还是本地,我用postman调用的时候,仅仅只是手动操作,一条消息回来我在点发送下一条消息,CPU能从百分之1飙升到30%以上,内存使用率也是。带宽也很高。
当我把执行代码这个模块给去掉后,在调用,甚至使用压测软件,除了带宽很高,cpu和内存使用就一些正常

这是为什么?该如何解决

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported workflow through Postman with and without the code-execution module, testing both sandbox and local modes. Measure CPU, memory, and bandwidth during sequential requests and determine the affected execution path; done means the resource usage is explained and a verified correction or reproducible diagnosis is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
postman, typescript
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.