public void runit() throws Exception {

        Random random = new Random();
        // Wait a delay to ensure that all threads are ready
        sleep(4 * DEFAULT_DELAY + random.nextInt(NB_CLIENTS));
        long time = 0;
        String response = null;
        int counter = 0;
        int min_count = 10 * 1000 / delay;
        int max_count = 50 * 1000 / delay;
        if (min_count > this.max) {
            min_count = 0;
            max_count = max;
        }
        while ((this.max--) > 0) {
            Thread.sleep(this.delay);
            try {
                time = System.currentTimeMillis();
                sendRequest();
                response = readResponse();
                time = System.currentTimeMillis() - time;
                // System.out.println("Response: " + response + " in " + time);
                // This is one of the mod_cluster perf tests.
                if (Integer.parseInt(response) != counter) {
                    System.out.println("[" + getId() + "] Error: " + Integer.parseInt(response) + " != " + counter);
                    System.out.flush();
                    break;
                }
            } catch (IOException exp) {
                System.out.println("[" + getId() + "] Exception:" + exp.getMessage());
                System.out.flush();
                break;
            }

            if (counter >= min_count && counter <= max_count) {
                // update the average response time
                avg_time += time;
                // update the maximum response time
                if (time > max_time) {
                    max_time = time;
                }
                // update the minimum response time
                if (time < min_time) {
                    min_time = time;
                }
            }
            counter++;
        }
        avg_time /= (max_count - min_count + 1);
        // For each thread print out the maximum, minimum and average response
        // times
        System.out.println(max_time + " \t " + min_time + " \t " + avg_time);
    }