Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8740

[fiware-stackoverflow] cygnus in Docker: How to fixe the OutOfMemoryError?

    Details

      Description

      Created question in FIWARE Q/A platform on 16-03-2017 at 16:03
      Please, ANSWER this question AT https://stackoverflow.com/questions/42838720/cygnus-in-docker-how-to-fixe-the-outofmemoryerror

      Question:
      cygnus in Docker: How to fixe the OutOfMemoryError?

      Description:
      I got this error on cygnus instance in Docker:

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      How can I fix it?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        andres.munoza Andres Muñoz added a comment -

        Hi,

        By default, Cygnus configure the JAVA_OPTS with a limited value, you can modify this value updating the JAVA_OPTS variable, so in order that you docker container set this variable when it is building the container you can add inside of the dockerfile of Cygnus the following env variable: ENV JAVA_OPTS='-Xmx1g'

        That line allows you a heap of memory of 1Gb.

        Another option is that you create the container and after that enter inside of it and check what is the value of JAVA_OPTS and set to -Xmx1g.

        Best Regards,

        Show
        andres.munoza Andres Muñoz added a comment - Hi, By default, Cygnus configure the JAVA_OPTS with a limited value, you can modify this value updating the JAVA_OPTS variable, so in order that you docker container set this variable when it is building the container you can add inside of the dockerfile of Cygnus the following env variable: ENV JAVA_OPTS='-Xmx1g' That line allows you a heap of memory of 1Gb. Another option is that you create the container and after that enter inside of it and check what is the value of JAVA_OPTS and set to -Xmx1g. Best Regards,

          People

          • Assignee:
            andres.munoza Andres Muñoz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: