Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-226

Better set JVM opts in previewer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.1.0
    • Fix Version/s: 10.1.0, nuxeo-11.0.0
    • Component/s: Deployment

      Description

      The JVM heap size is currrently hard-coded in the previewer thru the $TOMCAT_HOME/bin/setenv.sh script.

      export CATALINA_OPTS="$CATALINA_OPTS -Xms512m"
      export CATALINA_OPTS="$CATALINA_OPTS -Xmx2048m"
      

      If the container resource is limited to 2Gi, it will eventually raise an OOM. https://blog.softwaremill.com/docker-support-in-new-java-8-finally-fd595df0ca54

      We should dynamically set the size of the heap to 70% of the container.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m