|
From: Jost B. <jos...@ya...> - 2004-11-18 18:27:13
|
> I am getting out of memory errors for java.
You can increase the memory that the JVM uses (32 MB
is standard) with the -Xmx switch.
You must start the JVM as a separate process, though,
because the bridge currently does not pass additional
options to the VM.
Please type
php -i | fgrep java
and paste the java command you see there to the
command line and edit it so that it includes the
-Xmx256M
switch.
For example:
java -Xmx256M -Djava.classpath... \
-Djava.library.path=... \
-Djava.awt.headless=true \
JavaBridge \
/tmp/.my_java_bridge_socket 3 ""
Please look up the correct -D values from the output
of the php -i command. And then edit
/etc/php.d/java.ini and set the java.socketname to
your socket: /tmp/.my_java_bridge_socket
Another option would be to edit the
"/usr/bin/php-java-bridge" shell script which is used
to start the bridge as a system service. But you must
be root to do this.
> I couldn't get it started again
Which error message do you get? Probably the system
/usr/share/java/.php-java-bridge_socket is in use?
Jost
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|