>
> Hi,
>
> > command-line PHP processes hanging around after they are completed. I'm
> > using PHP4 and php-java-bridge 4.1.8 built from source on a 64bit Linux
> box.
>
> if you start the Java VM as a subcomponent of PHP and the JVM refuses to
> terminate, the PHP main
> process will wait forever.
>
> Can you reproduce this problem? If so, can you please open a ticket and
> attach the result of an
> strace -s 1024 -ff ... at the end of that ticket?
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. I'll make a note to add a ticket when I see that next.
>
> 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). This is the
procedure:
1. I ask sys admin to install php-java-bridge 4.1.8
2. He does it
3. I spend time test driving it, while our current production code continues
to function without USING it. (it's a small shop, and we do development and
production on the same box)
So, the scripts that are hanging around do not actually invoke anything Java
in the PHP code. Is the subcomponent vs. external process a result of a
decision made during the install process? A configuration option?
We're running the bridge as a php module. With PHP4 and no J2EE container
engine servlet thingy (don't know the terminology at all here), it was my
impression this was our only option.
Michael
|