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

可能与Netty存在冲突 #122

Closed
crazythinking opened this issue Aug 18, 2020 · 3 comments
Closed

可能与Netty存在冲突 #122

crazythinking opened this issue Aug 18, 2020 · 3 comments

Comments

@crazythinking
Copy link

Description
A clear and concise description of what the bug is.

Steps to Reproduce
Steps to reproduce the behavior:
开启wisp2参数后,发现凡是依赖netty的服务存在问题,具体现象为:可以正常启动,但是凡是涉及通过netty走nio进行远程访问时,访问不通,长时间handle无响应;

Expected behavior
未抛出异常;

JDK version
使用8.4.4版本

Execution environment

  • OS and version: CentOS 7
  • CPU model: x86
  • Number of CPU cores: 4c
  • Size of physical memory: 8g
  • Inside Linux container? 虚机,非容器
@joeyleeeeeee97
Copy link
Contributor

wisp通过在线程进入阻塞的逻辑处添加进入协程调度的逻辑来进行透明切换,netty 框架中 的JNI中的无法切换。

请尝试下使用 -Dio.netty.noUnsafe=true 来强制netty 使用 Nio而非netty transport里面的epoll.

@yuleil
Copy link
Collaborator

yuleil commented Aug 19, 2020

请参考文档的这部分 https://github.com/alibaba/dragonwell8/wiki/Wisp-Documentation#limitations
如果依旧无法解决,请提供完整的jstack,或者jstack PID | grep Wisp-Root -A 20

Please refer to this part of the document https://github.com/alibaba/dragonwell8/wiki/Wisp-Documentation#limitations
If it still not work, please provide the complete jstack or jstack PID | grep Wisp-Root -A 20 to us

@crazythinking
Copy link
Author

多谢两位,-Dio.netty.noUnsafe=true不行,但通过-Dio.netty.transport.noNative=true可以解决。

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

3 participants