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
2010-03-04 01:36:52
Except, DNS lookups are network latency-bound, not CPU-bound.
Chris Jester-Young
2010-03-04 01:47:05
Yes, i did the DNS lookup
bruce dou
2010-03-04 02:42:13