Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-5205

System vm startup scripts calculate jvm memory wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.2.0
    • 4.3.0, 4.4.0
    • SystemVM
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      While attempting to provision beefier system vms, we discovered this bug.

      The `_run.sh` script in the system vm calculates jvm memory based on 80% of the total memory on the system. This is great up until the point 80% of memory goes above ~1.9G. The system vm templates are all 32-bit and so calculating the size too high will cause the agent jvm to fail to start.

      The fix is pretty simple with a final sanity check:

      if [ $maxmem -gt 1900 ]
      then
      maxmem=1900
      fi

      Attachments

        Activity

          People

            koushikd Koushik Das
            lusis John E Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: