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] persistent java virtual machine under PHP

2002-12-06 Thread Tony J. White
> This is contrary to my experiences. But we have discussed this earlier > today. 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 ap

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

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

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, [ISO-8859-2] Maróy Ákos wrote: > > Actually, the JVM is unloaded by php. In the latest CVS the code from > > I see. But if you dlclose()-it, what happens to open resources, like > open file descriptors, network sockets, etc? It seems to be a crude way > of unloading the JVM..

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

2002-12-05 Thread Maróy Ákos
Tony J. White wrote: Actually, the JVM is unloaded by php. In the latest CVS the code from destroy_jvm() has been removed that tried to dlclose() the JVM. This was done because it is impossible to dlclose() a JVM because DestroyJavaVM() is broken in all JNI implementations. I see. But if you d

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

2002-12-05 Thread Tony J. White
On Wed, 4 Dec 2002, [ISO-8859-2] Maróy Ákos wrote: > What happens is that the function jvm_create() gets called regularly > when requesting new pages using the Java extension, from the function > java_call_function_handler(): > >if (!JG(jenv)) jvm_create(TSRMLS_C); Actually, the JVM is unload

[PHP-DEV] persistent java virtual machine under PHP

2002-12-04 Thread Maróy Ákos
Hi, I'm trying to use the PHP / Java integration (the module in ext/java). My problem is that the Java Virtual Machine is thrown out regularly by the PHP engine. What happens is that the function jvm_create() gets called regularly when requesting new pages using the Java extension, from the fu