int numCreate = 1000000;
MsgUnitWrapper entryArr[] = new MsgUnitWrapper[numCreate];
log.info("Hit a key for new MsgUnitWrapper RAM size test ...");
try { System.in.read(); } catch(java.io.IOException e) {}
for(int i=0; i<numCreate; i++) {
MsgUnit msgUnit = new MsgUnit(glob, "<key oid='XX'/>", new byte[0], publishQosServer.toXml());
entryArr[i] = new MsgUnitWrapper(glob, msgUnit, storageId);
if (i > 0 && (i % step) == 0) {
log.info("Overall created #" + i + ": Created " + step + " new MsgUnitWrapper instances, msgUnitSize=" + msgUnit.size() + ", hit a key to create more ...");
try { System.in.read(); } catch(java.io.IOException e) {}
}