Wednesday, 28 June 2017

java.lang.OutOfMemoryError exception with IBM UrbanCode Deploy 6.2.4

I saw this: -

2017-06-28 14:26:54,909 ERROR https-jsse-nio-0.0.0.0-8443-exec-1 com.urbancode.commons.web.filter.ExceptionHandlingFilter - java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

whilst importing a rather large component into IBM UrbanCode Deploy (UCD) 6.2.4: -

-rw-r--r--  1 hayd hayd  9098139652 Jun 28 11:13 bpmexport_artifacts5020774184330379773.zip

Thankfully, this IBM developerWorks Answers post: -

urbancode deploy server javaheapsize out of memory

has the answer; to increase the max heap: -

@kberg you can increase the java heap memory size by changing the default value of JAVA_OPTS -Xmx value within the $SERVER_HOME/bin/set_env file. The default size is set to 1024m.

I made the change: -

vi /opt/IBM/UCD624/bin/set_env

changing from: -

JAVA_OPTS="-Xmx4096m

to: -

JAVA_OPTS="-Xmx2048m

and restarted UCD: -

~/stopUCD.sh

~/startUCD.sh

We'll see how it goes ...

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...