0

i read a lot about that, but my problem still remain:

what i'm trying to do is:

echo shell_exec("/usr/bin/nohup /usr/bin/java -Xmx1g -jar /var/www/html/myDir/ff.jar &");

it gives me that error:

Error occurred during initialization of VM Could not reserve enough space for code cache

i use nohup because jar must run even if php terminate.

What could be the problem?

Jayyrus
  • 12,961
  • 41
  • 132
  • 214

1 Answers1

1

Do you have SELinux enabled on the machine it's running on? See http://archimedeseureka.blogspot.com/2011/01/executing-java-from-php-in-rhelcentos.html - I had this trouble on a Fedora 18 system and setting httpd_execmem seems to have fixed it.

Neek
  • 7,181
  • 3
  • 37
  • 47