Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[求助/Help] 生成compute的api的时候会占用巨量内存卡死退出 #21965

Closed
DYH-never-giveup opened this issue Jan 14, 2025 · 2 comments
Labels
question Further information is requested

Comments

@DYH-never-giveup
Copy link

我们计划ci流程中自动进行api生成步骤,但是验证过程发现,最后的swagger json执行命令执行总是会执行后内存持续上升后退出。不知道是什么问题,求助。
我没有用你们的make命令,拆解后分步骤执行的。前置的生成步骤已经完成。
生成swagger json的命令是如下命令:
swagger generate spec --scan-models --work-dir /root/go/src/yunion.io/x/onecloud/pkg/generated/swagger/compute -o /root/go/src/yunion.io/x/onecloud/_output/swagger/swagger_compute.yaml
随后发现执行后内存持续上升,大概占了15g内存后退出了。当然生成monitor的swagger json也有类似的问题。

@DYH-never-giveup DYH-never-giveup added the question Further information is requested label Jan 14, 2025
@zexi
Copy link
Member

zexi commented Jan 14, 2025

https://github.com/yunionio/go-swagger
用这个版本的 go-swagger 试试

@DYH-never-giveup
Copy link
Author

https://github.com/yunionio/go-swagger 用这个版本的 go-swagger 试试

万分感谢,更换后不会出现卡死的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants