passing JVM options when using php Java extension?  
Author Message
Roberts





PostPosted: 2005-2-4 1:29:30 Top

php-general, passing JVM options when using php Java extension? Hi,
I managed to get the Java extension working on php 4.3.10 after following
various bits of advice from
http://www.thelinuxpimp.com/main/modules.php?op=modload&name=News&file=article&sid=419
and http://uk.php.net/java

I have some Java code which runs fine from Java at the command line when
specifying certain JVM options -Xmx and -Xms. I am now calling this class
from php but can't see any way of pasing the arguments to the JVM created
from the php process. Is there something in the jre or php.ini that I can
edit to force these options, or is it hidden somewhere in the java extension
source?

Any suggestions appreciated.
TIA,
S.


 
Roberts





PostPosted: 2005-2-4 17:21:00 Top

php-general >> passing JVM options when using php Java extension? Hi,
I managed to get the Java extension working on php 4.3.10 after following
various bits of advice from
http://www.thelinuxpimp.com/main/modules.php?op=modload&name=News&file=article&sid=419
and http://uk.php.net/java

I have some Java code which runs fine from Java at the command line when
specifying certain JVM options -Xmx and -Xms. I am now calling this class
from php but can't see any way of pasing the arguments to the JVM created
from the php process. Is there something in the jre or php.ini that I can
edit to force these options, or is it hidden somewhere in the java extension
source?

Any suggestions appreciated.
TIA,
S.



 
Roberts





PostPosted: 2005-2-5 23:49:00 Top

php-general >> passing JVM options when using php Java extension? "Roberts" <email***@***.com> wrote in message
news:email***@***.com...
> Hi,
> I managed to get the Java extension working on php 4.3.10 after following
> various bits of advice from
> http://www.thelinuxpimp.com/main/modules.php?op=modload&name=News&file=article&sid=419
> and http://uk.php.net/java
>
> I have some Java code which runs fine from Java at the command line when
> specifying certain JVM options -Xmx and -Xms. I am now calling this class
> from php but can't see any way of pasing the arguments to the JVM created
> from the php process. Is there something in the jre or php.ini that I can
> edit to force these options, or is it hidden somewhere in the java
> extension source?

In case anybody else comes across this problem, I solved it using
addJVMOption() in ext/java/java.c and recompiling the extension, not
forgetting to copy across the new java.so file to /usr/local/lib/php.

S.