Henry Wong wrote:
Allasso Travesser wrote:
It seems to have enough memory if I am running the command via ssh - but when I run same command, same user (whoami verifies), via PHP script, suddenly it doesn't have enough memory?
Running the PHP interpreter (along with the PHP scripts) takes more memory than running nothing. So, running PHP with JVM needs more memory than just running the JVM.
Regardless, it is your decision. The error is reporting that it doesn't have enough memory. You can choose to examine other possible factors first.
Henry
Henry Wong wrote:Well, how much memory does this hosted machine have? It doesn't matter what you memory setting are -- if you don't actually have enough memory allocated to run the JVM.
Henry
Campbell Ritchie wrote:That doesn't look correct. Look here; I think that is the Windows® version, but I don't think there are significant differences for other versions. I think it is
java -Xmx512M Foo
to run the Foo class' main method with a maximum space of 512MB.
E Armitage wrote:what are your memory settings?
E Armitage wrote:Are you on a 32 bit VM or 64 bit and what are your memory settings?
Does it work if you start the java program with -mx256m or -mx512m?
You can open a terminal and run java -version to find out which java version you are running