By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

passing JVM options when using php Java extension?

P: n/a
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/mod...rticle&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.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Roberts" <me@privacy.net> wrote in message
news:36*************@individual.net...
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/mod...rticle&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.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.