How do I pass javatest.maxOutputSize to jtreg tests?

Thomas Stüfe thomas.stuefe at gmail.com
Tue Mar 13 13:26:06 UTC 2018


Thanks David.

I think I tried that but it did not work. I will retry.

..Thomas

On Tue, Mar 13, 2018 at 2:21 PM, David Holmes <david.holmes at oracle.com>
wrote:

> Hi Thomas,
>
>
> On 13/03/2018 9:35 PM, Thomas Stüfe wrote:
>
>> Hi,
>>
>> I attempt to analyse a jtreg test which unfortunately does not work as a
>> stand alone test class. I activate logging with
>>
>> -javaoptions:-Xlog:gc+metaspace+freelist=trace
>>
>> and I see my logging, but it it truncated:
>>
>> 418 [0.743s][trace][gc,metaspace,freelist] Free chunk total 0  count 0
>> 419 [0.743s][trace][gc,metaspace,freelist
>> 420
>> 421 ...
>> 422 Output overflow:
>> 423 JT Harness has limited the test output to the text to that
>> 424 at the beginning and the end, so that you can see how the
>> 425 test began, and how it completed.
>> 426
>> 427 If you need to see more of the output from the test,
>> 428 set the system property javatest.maxOutputSize to a higher
>> 429 value. The current value is 100000
>> 430 ...
>> 431
>> 432 00007c2aea400 top 0x00000007c2aea430 end 0x00000007c2aeac00 size 256
>> 433 [203.798s][trace][gc,metaspace,freelist] Free chunk total 16247552
>> count 41237
>> 4
>>
>> So, I attempt to set -Djavatest.maxOutputSize to a higher value but
>> whatever form I do it in it does not change the output. Variants I tested
>> are:
>>
>> jtreg ... -javaoptions:-Xlog:gc+metaspace+freelist=trace
>> -javaoptions:-Djavatest.maxOutputSize=2000000 ...
>>
>> jtreg ...  "-javaoptions:-Xlog:gc+metaspace+freelist=trace
>> -Djavatest.maxOutputSize=2000000" ...
>>
>> jtreg ... -javaoptions:-Xlog:gc+metaspace+freelist=trace
>> -Djavatest.maxOutputSize=2000000 ...
>>
>> What am I doing wrong?
>>
>
> Try passing directly to jtreg:
>
> jtreg -Djavatest.maxOutputSize=2000000 ...
>
> David
>
> Thanks! Thomas
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20180313/089d19ad/attachment.html>


More information about the jtreg-use mailing list