tags:

views:

70

answers:

1

I found the bottleneck of my program is Class InetSocketAddress. It used almost 90% of the CPU time.

A: 

You are probably doing either a DNS lookup or a reverse DNS lookup. As comments say, knowing which method is involved is important.

Darron
Except, DNS lookups are network latency-bound, not CPU-bound.
Chris Jester-Young
Yes, i did the DNS lookup
bruce dou