-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
you muse change the code
from
// InetSocketAddress dstAddress = new InetSocketAddress(msg.dstAddr(), msg.dstPort());
// AttributeKey dstAddressKey = AttributeKey.valueOf(DST_ADDRESS);
// clientChannelContext.channel().attr(dstAddressKey).setIfAbsent(dstAddress);
to
AttributeKey dstHostKey = AttributeKey.valueOf(DST_HOST);
clientChannelContext.channel().attr(dstHostKey).setIfAbsent(dstHost);
AttributeKey dstPortKey = AttributeKey.valueOf(DST_PORT);
clientChannelContext.channel().attr(dstPortKey).setIfAbsent(dstPort);
because the java.net.InetSocketAddress . use 100% cpu .
yout can use jprofile to view the cpu load on which method.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
