I want to run my client program 25,000 times. I need to create a batch file for this purpose. I just want to test my server how many connections it will accept without any delays. I am using java. nio
. Can anybody help me?
I need to know how to create batch file for running a program.
How to call Batch file using java program.
How to create a batch file which run a java program 25,000 times.
Thanks in advance.
Run 25k times in sequence:
for /l %%x in (1,1,25000) do (java -cp ... MyClass)
Run 25000 times in parallel:
for /l %%x in (1,1,25000) do (start "" java -cp ... MyClass)
If you want to limit the parallelism (which you should for such high numbers) then you need a bit more logic. One example is given in this answer.