Closed pflueras closed 3 years ago
@pflueras As previously stated, this doesn't happen when using a maximum of 50 threads or the more common 12 - 16 threads. It might seem that the number of threads shouldn't matter, only the total simultaneous requests. Yet, I think the problem could be related to the amount of threads and memory to deal with the requests processed in a given timeframe. Given that the default the tests run with perhaps 12 to 16 total threads, using 200 is 12x - 16x more, it seems like instead of running with 1 GB heap that instead running with 12 GB - 16 GB heap would be fitting.
In other words, there may not be enough heap to handle both the simultaneous requests and the use of in-memory persistence.
This issue can be easily reproduced with
vlingo-helloworld
example.vlingo-actors.properties
configuration:A test case with 150 concurrent threads has been used. Each thread performs following requests:
OutOfMemoryError
shows up quite quickly. Heap size is 1024m (-Xmx1024m).