Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-06 Thread Akos Maroy
Tony J. White wrote: After reviewing the thread, I think the problem you are experiencing is related to the fact that each instance of PHP is running a seperate JVM. It's not that the JVM is being destroyed. Therefore when you have apache running with say 5 httpd children, you will be running 5

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-06 Thread Akos Maroy
Sebastian Bergmann wrote: Ray Hunter wrote: Does anyone have an idea about what i need to do to fix this? I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the segfaults I experienced prior to the Tony's patch are still there: An unexpected exception has been detected in nativ

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Tony J. White wrote: Once loaded the JVM remains loaded by the PHP process. When php scripts finish or variables are unset() DeleteLocalRef() is called on the JVM to allow the JVM to garbage collect unused resources, but the JVM remains running. This is contrary to my experiences. But we have d

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: No, I have been told (by someone, I do not remember) that if you use PHP as a servlet ext/java would use the same JVM. I haven't check to see whether that is correct. My experiences: using php-4.2.3, calling plain php pages from Tomcat seem to be OK. But when calling j

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: No, I have been told (by someone, I do not remember) that if you use PHP as a servlet ext/java would use the same JVM. I haven't check to see whether that is correct. sound good, I'll take a look. Akos -- PHP Development Mailing List To unsubscr

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: You can perhaps try to use it the other way around, have PHP run inside a Java VM. You can also try to get the source code how would this work? can you send me pointers? Akos -- PHP Development Mailing List To unsubscribe, visit: http://www.php.ne

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: How is a persistent database connection handled then? e.g. in the mysql module? Apache 1.x pre-creates a number of server processes. Each process handles a certain number of requests (one at a time), and then dies. It is then replaced with an another server proc

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-04 Thread Akos Maroy
Ivan Ristic wrote: I do not think that is possible, unless PHP engine itself is contained within a single process (and runs multithreaded). Which it isn't (under Apache 1.x & , at least). I'm not familiar in general with the PHP engine, so my questions may be quite stupid. Anyway: How is