3

I got this error on cygnus instance in Docker:

java.lang.OutOfMemoryError: GC overhead limit exceeded

How can I fix it?

Mad Physicist
  • 107,652
  • 25
  • 181
  • 264
sabrina2020
  • 2,102
  • 3
  • 25
  • 54

1 Answers1

0

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,

anmunoz
  • 131
  • 6