RFR : 8014819 : set max size for jtreg test vms
mike.duigou at oracle.com
Tue May 21 22:42:22 UTC 2013
A lot more people have been playing with using concurrency lately with JTReg and most have found that tests will frequently fail or error out because of OOM errors. The problem is that the jdk/test/Makefile currently doesn't specify a size for the vm instances used for running tests. This results in "VM Ergonomics" sizing being used and the test VMs which get created are generally too large to run very many of them.
This patch sets a specific size to the vm instances created to run tests, 512MB. This value has been successfully used to run tests by our internal SQE team and by Alan Bateman for quite some time. It also seems to work for me. Individual tests which require more memory can specify their requirements using explicit -Xmx options in @run tags.
More information about the core-libs-dev