|
From: <php...@li...> - 2007-09-07 10:12:12
|
Hi, > I don't know how to reproduce, but we have a nightly cron job that runs a > cli php script, and after a few weeks there are usually a couple processes > hanging around. do these processes still exist? Can you do a "ps auxwf" please? > I'll make a note to add a ticket when I see that next. I've just looked at the code. The JVM is started in the MINIT procedure and terminated (via kill SIGTERM, kill SIGTETM, kill -9 ...) in the MSHUTDOWN procedure. So if the PHP executable hangs, this means that the PHP MSHUTDOWN procedure hasn't been called (which used to happen with recent PHP binaries, when called with a zero-length PHP script); it means that there is a bug in your PHP CLI binary. Please either do not use this PHP CLI binary or start Java as an external process. > > However, the PHP/Java Bridge shouldn't be used that way. Please start Java > > as an external process. > I'm not sure how to do this (or how I'm not doing it). Please see the README or INSTALL.* documents from the binary download. Or this link http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/ for a detailed description how to install the bridge. > So, the scripts that are hanging around do not actually invoke anything Java > in the PHP code. As I've said. If you ask PHP to start a JVM attached to it and the JVM does not terminate (probably due to a bug in the PHP), PHP will hang. Please see the documentation that comes with the PHP/Java Bridge download to see how to change it. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |