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
[Bug] 使用协程,系统稳定运行8个小时后,kafka发生 invalid generation:[commit=265,broker=266(error=0)]异常,不再消费消息,同时Redis不时发生连接超时 #226
Comments
您好, 能否提供下出现问题的jstack文件? |
Coroutine [0x7fd61021b2e0] "batch-consume-thread#zcm_settle_voucher_to_clear_stage#com.nt.server.fundCheck" #833 active=816000 steal=19416 steal_fail=319 preempt=0 park=0/-1 cg=0/0 ttr=0
|
无Blocked线程 |
可以提供完整的jstack文件吗 |
jstack.txt |
@lykxqhh 您好,由于使用了com.nent.rasp.rasp.net.UnixDomainSocket 导致协程无法切换,请尝试使用
|
更加完美的解决方案是类似go的hand off机制,可以参考这篇文章的 Synchronous System Calls 小节。 |
我会在今天验证一下-Dcom.alibaba.wisp.threadAsWisp.black=class:com.nent.rasp.thread.CommandTask |
-Dcom.alibaba.wisp.threadAsWisp.black=class:com.nent.rasp.thread 我可以这样配置吗,这样即是排除 class 以“com.nent.rasp.thread” 开头的所有类吗 |
-Dcom.alibaba.wisp.threadAsWisp.black=class:com.nent.rasp.thread.CommandTask 意思是CommandTask这个类型的Runnable作为线程执行时不要转换成协程 |
文档里的意思是假如配置字符串以class:开头,则根据:后面的名字来匹配类型。 这块功能目前触及的用户比较少,因此文档不够完善。后续我们将继续完善文档。 |
怎么判定线程和协程未正常切换? |
Description
使用8.6.6版本,线上灰度使用协程,系统稳定运行8个小时后,kafka发生 invalid generation:[commit=265,broker=266(error=0)]异常,不再消费消息,同时Redis发生连接超时,现象仅发生在dragonwell灰度实例。
JVM参数:
JVM_GC=" -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:InitiatingHeapOccupancyPercent=40 -XX:MaxGCPauseMillis=100 -XX:+TieredCompilation -XX:CICompilerCount=4 -XX:-UseBiasedLocking -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintStringTableStatistics -XX:+PrintAdaptiveSizePolicy -XX:+PrintGCApplicationStoppedTime -XX:+PrintFlagsFinal -XX:-UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dio.netty.transport.noNative=true -Dio.netty.noUnsafe=true"
The text was updated successfully, but these errors were encountered: