I was wanting to retrieve some values from a authentication package we use in Java, after hitting the memory ceiling, I tried a minimum case, which capped out as well, until I tried simply retrieving the JVM version:
exec("java -version", $lines, $status);
Error occurred during initialization of VM
Could not reserve enough space for code cache
I guess my question is: Has anyone else successfully integrated PHP and java code given these restrictions, and if not… is anyone using Java on dreamhost with another scripting language?