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

协程2.0.10版本 dispatch_mode设置为1 或 2则会出现 WARNING swProcessPool_wait: [Manager]unknow worker[pid=-1] #1413

Closed
alberthuang24 opened this issue Dec 12, 2017 · 8 comments
Labels

Comments

@alberthuang24
Copy link

当dispatch_mode 设置为 非 3选项时。
image
如图显示的错误.

image
image
Uploading image.png…

@matyhtf
Copy link
Member

matyhtf commented Dec 13, 2017

请使用2.0.10-rc3版本

@alberthuang24
Copy link
Author

使用的就是2.0.10-rc3 版本

@matyhtf matyhtf reopened this Dec 14, 2017
@matyhtf
Copy link
Member

matyhtf commented Dec 14, 2017

请重新确认一下版本号码,另外如何重现这个错误?

@alberthuang24
Copy link
Author

版本号没问题.已经发现重现方式. 应该是mysql服务器最大连接数超出了server并发数导致的.
把mysql的最大连接数增加就解决了以下是压测代码
image
image
ab -c 100 -n 1000 -k http://127.0.0.1:9999/
image

@alberthuang24
Copy link
Author

只有再dispatch_mode=2 或 1 的时候会发生 为3时正常

@alberthuang24
Copy link
Author

dispatch_mode无论为1 2 还是3 当执行 server reload 时. 也会发生

@alberthuang24
Copy link
Author

alberthuang24 commented Dec 19, 2017

通过dtrace 调试打印出来的信息
image

@matyhtf
Copy link
Member

matyhtf commented Jan 19, 2018

无法重现此问题。可能是由其他扩展引起的,请尝试php -m找出对应的扩展。swoolemanager进程并未开启pthread多线程

@matyhtf matyhtf closed this as completed Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants