JAVA Application is not Terminating when Getting out of Memory Error
search cancel

JAVA Application is not Terminating when Getting out of Memory Error

book

Article ID: 297702

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Symptoms:

Application logs report Out of memory but the application does not immediately restart.

cf logs <app-name> reports error "killjava.sh: Permission denied."

Error Message:
 

Environment


Cause

The killjava.sh scripts used by the JREs in the 3.x line do not have the appropriate executable permissions after packaging. They should be in the list of files that are guaranteed to get executable permissions.

See: https://github.com/cloudfoundry/java-buildpack/issues/408

 

Resolution

The workaround is either to ensure that you do not end up with Out of Memory or to upgrade to a newer version of the java buildpack. This issue is fixed in java buildpack 3.15 and higher versions.

Please download and install the latest version of java buildpack at: https://network.pivotal.io/products/buildpacks/

The following command can be ran to update java buildpack version:

cf update-buildpack java_buildpack -p <path to buildpack package>