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

如何配置客户端的多线程使用 not enough thread resource to execute sekiro request,please setup your custom thread pool #43

Open
NewMai opened this issue Jan 29, 2024 · 9 comments

Comments

@NewMai
Copy link

NewMai commented Jan 29, 2024

not enough thread resource to execute sekiro request,please setup your custom thread pool!!
too many pending task submit,please setup your custom thread pool!! pending task size:166

看到一个参数是 HandlerThreadPool.setMaxWorkSize(n);
但是不知道在何时何地使用,

@liguobao
Copy link
Collaborator

liguobao commented Jan 29, 2024 via email

@liguobao
Copy link
Collaborator

没记错,这个错误应该是服务端抛出的?你确定一下?

@NewMai
Copy link
Author

NewMai commented Jan 30, 2024

没记错,这个错误应该是服务端抛出的?你确定一下?

是在 客户端中抛出的,
https://github.com/yint-tech/sekiro-samples/tree/main/demo-java
我在这个代码里面添加了处理逻辑,运行之后看到的输出。

@NewMai
Copy link
Author

NewMai commented Jan 30, 2024

这个参数需要自己调整源码重新编译哈~ 发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: TEARS @.> 发送时间: 2024年1月29日 17:32 收件人: yint-tech/sekiro-open @.> 抄送: Subscribed @.> 主题: Re: [yint-tech/sekiro-open] 如何配置客户端的多线程使用 not enough thread resource to execute sekiro request,please setup your custom thread pool (Issue #43) not enough thread resource to execute sekiro request,please setup your custom thread pool!! too many pending task submit,please setup your custom thread pool!! pending task size:166 看到一个参数是 HandlerThreadPool.setMaxWorkSize(n); 但是不知道在何时何地使用, — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

我看 sekiro-open 里面没有找到这个参数,我可以本地编译这个项目的。

@NewMai
Copy link
Author

NewMai commented Jan 30, 2024

https://sekiro.iinti.cn/sekiro-doc/03_sdks/02_java.html#%E5%AE%9A%E5%88%B6%E7%BA%BF%E7%A8%8B%E6%B1%A0

这个参数我是从这个文档这里看到的,但是不知道怎么使用。

image

@liguobao
Copy link
Collaborator

liguobao commented Jan 30, 2024 via email

@NewMai
Copy link
Author

NewMai commented Jan 30, 2024

我是不是应该把这个参数放在 new SekiroClient 的前面调用?
image

@liguobao
Copy link
Collaborator

是的,你可以先调整这个参数试试看。
如果还不行,建议自己维护一个线程池来处理了。

@NewMai
Copy link
Author

NewMai commented Jan 30, 2024

好的,谢谢了,

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

No branches or pull requests

2 participants