PHP exec Java cmd falló con permiso denegado

Actualmente estoy escribiendo algunos scripts PHP que necesitan invocar jar. Escribí un script de prueba para probar el cmd de Java -version.

echo exec('whoami');
echo '<hr/>';

exec('java -version', $out);
var_dump($out);

La página vuelve de la siguiente manera:

apache
array(6) { [0]=> string(134) "OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007ff705000000, 2555904, 1) failed; error='Permission denied' (errno=13)" [1]=> string(1) "#" [2]=> string(76) "# There is insufficient memory for the Java Runtime Environment to continue." [3]=> string(100) "# Native memory allocation (malloc) failed to allocate 2555904 bytes for committing reserved memory." [4]=> string(57) "# An error report file with more information is saved as:" [5]=> string(29) "# /tmp/jvm-26720/hs_error.log" }

He probado el cmd en la consola y es normal.

[root@localhost ~]# java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

¿Hay alguien que pueda ayudarme con esto?

Actualizar: Aquí está el hs_error.log

Respuestas a la pregunta(1)

Su respuesta a la pregunta