Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10317

Configure Metaspace size by default

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.3, 1.6.0, 1.7.0
    • Fix Version/s: 1.6.5, 1.7.3
    • Component/s: Deployment / Scripts
    • Labels:
      None

      Description

      We should set the size of the JVM Metaspace to a sane default, like -XX:MaxMetaspaceSize=256m.

      If not set, the JVM offheap memory will grow indefinitely with repeated classloading and Jitting, eventually exceeding allowed memory on docker/yarn or similar setups.

      It is hard to come up with a good default, however, I believe the error messages one gets when metaspace is too small are easy to understand (and easy to take action), while it is very hard to figure out why the memory footprint keeps growing steadily and infinitely.

        Attachments

        1. Screenshot 2018-12-18 at 12.14.11.png
          176 kB
          Nawaid Shamim
        2. Screen Shot 2019-01-07 at 10.08.39.png
          62 kB
          Daniel Harper
        3. Screen Shot 2019-01-07 at 10.08.47.png
          66 kB
          Daniel Harper

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sewen Stephan Ewen
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated: