How do I pass javatest.maxOutputSize to jtreg tests?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I pass javatest.maxOutputSize to jtreg tests?

tstuefe
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?

Thanks! Thomas


Reply | Threaded
Open this post in threaded view
|

Re: How do I pass javatest.maxOutputSize to jtreg tests?

David Holmes
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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How do I pass javatest.maxOutputSize to jtreg tests?

tstuefe
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 <[hidden email]> 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



Reply | Threaded
Open this post in threaded view
|

Re: How do I pass javatest.maxOutputSize to jtreg tests?

Jonathan Gibbons
In reply to this post by David Holmes


On 3/13/18 6:21 AM, David Holmes 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
>>
>>

David, Thomas,

To pass the option directly to jtreg, you need
-J-Djavatest.maxOutputSize=2000000

-- Jon
Reply | Threaded
Open this post in threaded view
|

Re: How do I pass javatest.maxOutputSize to jtreg tests?

tstuefe
Thank you Jonathan!

On Tue, Mar 13, 2018 at 4:24 PM, Jonathan Gibbons <[hidden email]> wrote:


On 3/13/18 6:21 AM, David Holmes 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



David, Thomas,

To pass the option directly to jtreg, you need -J-Djavatest.maxOutputSize=2000000

-- Jon