@Test
public void test2() throws InterruptedException {

	service = (IpService2) lookup(IpService2.class);
	int count = 1000;
	for (int j = 0; j < count; j++) {
		Threads.forGroup().start(new Runnable() {
			@Override
			public void run() {
				long start = System.currentTimeMillis();
				for (int i = 0; i < 10000; i++) {
					String ip =
											(int) (Math.random() * 255) + "." + (int) (Math.random() * 255) + "."	+ (int) (Math.random() * 255) + "."
																	+ (int) (Math.random() * 255);
					IpInfo info = service.findIpInfoByString(ip);
					if (info == null) {
						System.out.println("error");
					}
				}
				long end = System.currentTimeMillis();
				System.out.println("TIME: " + (end - start));
				result.add(end - start);
			}
		});
	}
	while (result.size() < count) {
		Thread.sleep(1000);
	}
	long sum = 0;
	for (int i = 0; i < count; i++) {
		sum += result.get(i);
	}
	System.out.println(sum / count);
}