You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "pengxingjia (via GitHub)" <gi...@apache.org> on 2023/10/16 10:04:52 UTC
Re: [I] Exception with thrift plugin [skywalking]
pengxingjia commented on issue #6064:
URL: https://github.com/apache/skywalking/issues/6064#issuecomment-1764140331
Which version of SkyWalking, OS, and JRE?
skywalking 9.0.0 thrift 0.14.1
Which company or project?
cisdi-info
What happened?
A large number of NoopExitSpans are being generated in the application stack and not being released, resulting in a memory overflow within the application.
Object dynamicField = ((EnhancedInstance) protocol.getTransport()).getSkyWalkingDynamicField();
The exception message is
java.lang.ClassCastException: org.apache.thrift.transport.TFramedTransport cannot be cast to org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance
Catching this here would eliminate the error, but I'm not sure if it would cause other issues
try {
Object dynamicField = ((EnhancedInstance) protocol.getTransport()).getSkyWalkingDynamicField();
objInst.setSkyWalkingDynamicField(Objects.isNull(dynamicField) ? "UNKNOWN" : dynamicField);
}catch (Exception ex){
objInst.setSkyWalkingDynamicField("UNKNOWN");
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org