Skip to content

Instantly share code, notes, and snippets.

@enesakar
Created March 9, 2012 06:16
Show Gist options
  • Select an option

  • Save enesakar/2005313 to your computer and use it in GitHub Desktop.

Select an option

Save enesakar/2005313 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
Map mymap = Hazelcast.getMap("mymap");
try {
while (true) {
for (int i = 0; i < 1000; i++) {
mymap.put(System.currentTimeMillis(), new Byte[100000]);
Thread.sleep(1);
}
System.out.println("Current Map Size:" + mymap.size());
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment