serverIncreaseThreshold = Float.parseFloat(args[args.length - 1]);
}
for (int index = 0; index < 2; index++)
{
AtomicTransaction atomicTransaction = new AtomicTransaction();
atomicTransaction.begin();
counter.increase(OTS.current().get_control());
if ((index % 2) == 0)
{
atomicTransaction.commit(true);
}
else
{
atomicTransaction.rollback();
}
}
int clientMemory0 = (int) JVMStats.getMemory();
int serverMemory0 = counter.getMemory();
for (int index = 0; index < numberOfCalls; index++)
{
AtomicTransaction atomicTransaction = new AtomicTransaction();
atomicTransaction.begin();
counter.increase(OTS.current().get_control());
if ((index % 2) == 0)
{
atomicTransaction.commit(true);
}
else
{
atomicTransaction.rollback();
}
}
int clientMemory1 = (int) JVMStats.getMemory();
int serverMemory1 = counter.getMemory();