I'm trying to write asynchronous load generator in Java using Jetty's HttpClient as it provides Asynchronous communication.
But i'm facing some problems. The major of which is that for generating load i had used java.util.TimerTask. But the problem with TimerTask class is that it does not guarantees accuracy in time i.e. certain miliseconds from the expected time might be more. Due to this, if i try to generate 1000 tps i will be getting only around 700-800 tps.
Can anyone suggest me how to overcome this issue. Is there any implement that i can use as reference ??
I would use Apache JMeter for this task.