WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
171 stars 192 forks source link

Out of memory error #96

Closed mattadamson closed 5 years ago

mattadamson commented 6 years ago

All,

We're currently getting an out of memory error on the 9.0.0.8 latest image e.g.

WSInstallApplication: Installing Application TESTAPP JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2018/09/06 15:03:17 - please wait. JVMDUMP032I JVM requested System dump using '//core.20180906.150317.2622.0001.dmp' in response to an event JVMDUMP030W Cannot write dump to file //core.20180906.150317.2622.0001.dmp: Permission denied JVMDUMP010I System dump written to /tmp/core.20180906.150317.2622.0001.dmp JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2018/09/06 15:03:20 - please wait. JVMDUMP030W Cannot write dump to file //heapdump.20180906.150317.2622.0002.phd: Permission denied JVMDUMP032I JVM requested Heap dump using '/tmp/heapdump.20180906.150317.2622.0002.phd' in response to an event

Obviously the first thought are the heap size settings which are set to 2048 MB max size and no initial size. However these are the exact same settings which have been applied on another WAS instance which isn't a docker image v 9.0.0.6

Appreciate any thoughts or what else we could try / change to resolve this

Many thanks

mattadamson commented 6 years ago

I managed to resolve this although the option

-m 4g

still only used 2GB I had to change the setting to a maximum of 4GB in the global docker settings i.e preferences limit resources available to docker from 2 to 4GB