Sunday, February 12, 2012

PHP exec, the java process takes 100% CPU (SOLVED)

Exec is always tricky, on any language :-)

Try to:

use background execution (add & symbol at the end)
use shell_exec instead
specify the full path to java executable (may be the one available to PHP is not the one you need?)

export LD_LIBRARY_PATH="";
in the exec call: