I'm measuring the throughput of various parallel data structures. I essentially have various amounts of clients (1-16) performing read or write operations. When I have them perform only 10,000 operations, everything goes peachy; when they do more than that (100,000 or 1,000,000), I get the following error:
java.lang.OutOfMemoryError: Java heap space
Any ideas how to fix this?