PCF Java Buildpack less than 3.1.5
Application logs report Out of memory but application does not immediately restart.
cf logs <app-name> reports error "killjava.sh: Permission denied."
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.
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>