JDK-8234909 : [TESTBUG] Reduce resource usage of tools/jlink/plugins/VendorInfoPluginsTest.java on AIX
  • Type: Bug
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: aix
  • Submitted: 2019-11-27
  • Updated: 2019-12-04
  • Resolved: 2019-12-04
Related Reports
Duplicate :  
Description
The new test VendorInfoPluginsTest.java starts and crashes a VM without setting a value for the java heap. The VM will then determine the java heap to use using a heuristic approach. This could lead to very big heaps (I have seen more than 30 GB on our bigger AIX test machines). 
The second test crashes the VM to parse the output for the vendor info. On windows no minidump file is created by default and on linux the core file is much smaller because on linux only the already used memory is included in the core dump. On AIX the whole reserved memory block seem to be dumped to the core file. This could result in very big core files written to disk and a big spike in used memory. 

The problem can be easily reproduced by executing:
make test TEST="tools/jlink/plugins/VendorInfoPluginsTest.java" on an AIX 

An easy solution would be to disable core file writing with -XX:-CreateCoredumpOnCrash (because the test does not need a core fiel) and setting a small heap with -Xmx64m.

Comments
I improved the description. The crash is enforced by the test and will always occur. The issue seems to be related to the way AIX writes core files. I can see that the core file on linux is much smaller and no core is generated on windows. I changed the OS to AIX.
27-11-2019

Would it be possible to expand the description to explain how to duplicate this crash? Update: Arno has updated the description with more info and to explain that it is observed on AIX.
27-11-2019