Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8227041

runtime/memory/RunUnitTestsConcurrently.java has a memory leak

    XMLWordPrintable

Details

    • b04

    Backports

      Description

        runtime/memory/RunUnitTestsConcurrently.java attempts to stress-test the metaspace allocator by allocating a metachunk of ~512K:

        metaspace.cpp:

        static void test_virtual_space_list_large_chunk() {
           ....
            vs_list->get_new_chunk(large_size, 0);
        }

        That chunk then is leaked.

        Within RunUnitTestsConcurrently.java, this function is called in a tight loop by 30 threads concurrently for 15 seconds. Depending on how fast the machine is, this will usually eat up 10-20GB, often causing the process being OOM killed.

        This is probably also the cause for JDK-8225200.


        Attachments

          Issue Links

            Activity

              People

                stuefe Thomas Stuefe
                stuefe Thomas Stuefe
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: