detect server VM in reg test?

David Holmes david.holmes at
Wed Oct 12 00:34:47 UTC 2011

On 12/10/2011 8:21 AM, Weijun Wang wrote:
> On 10/11/2011 2:51 PM, David Holmes wrote:
>> Searching for contains("Server") would be less error-prone as the above
>> will not work on 64-bit. But there is a better property to use:
>> which will report eg "Hotspot Client Compiler". However, these days both
>> properties might report Tiered rather than Server. Also for -Xint
>> doesn't exist.
> I'll use System.getProperty("").contains("Server") now since
> that looks more intuitive for me.
>> That all said this seems like the wrong solution to the problem. Amount
>> of memory used shouldn't be that dependent on client vs. server VM
> I don't know. But here is my JPRT output
> http://javaweb/~ww155710/jprt/bigcrl/report.html
> The test BigCRL fails on all c1 (without*) and succeeds on all c2
> (with*). It does look like it's easy to get more memory from c2.

Ah! It's different ergomics settings for client vs server. You are 
getting different heap size (larger for server) and possibly different 
GC  - but I think it is the default heap size that is tripping up your test.


> Thanks
> Max
>> David

More information about the core-libs-dev mailing list