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 function
java_call_function_handler():
if (!JG(jenv)) jvm_create(TSRMLS_C);
It seems that JG(jenv) gets to be 0 every once in a while. One problem
is that on none such occasion is jvm_destroy() called, which could lead
to resource leaks.
What I'm looking for is that the JVM would not be discarded on a regular
basis, but it would remain persistent. Unfortunately I can't find the
mechanism that removes it (so as to disable it).
I was looking at the documentation for extending PHP, especially at
http://www.php.net/manual/en/phpdevel.php#phpdevel-addfunc-reslist
Maybe this is the way to go? If so, can someone elaborate on the use of
this functionality? I can't really grasp how to use this based on the
description there (i.e. what does 'type of resource' mean, etc.)
Akos
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP-DEV] Re: persistent java virtual machine under P... Maróy Ákos
- [PHP-DEV] Re: persistent java virtual machine un... Ivan Ristic
- [PHP-DEV] Re: persistent java virtual machin... Akos Maroy
- Re: [PHP-DEV] Re: persistent java virtua... Brad LaFountain
- Re: [PHP-DEV] Re: persistent java vi... Maróy Ákos
- [PHP-DEV] Re: persistent java virtual ma... Ivan Ristic
- [PHP-DEV] Re: persistent java virtua... Akos Maroy
- [PHP-DEV] Re: persistent java v... Ivan Ristic
- [PHP-DEV] Re: persistent ja... Maróy Ákos
- [PHP-DEV] Re: persisten... Ivan Ristic
- [PHP-DEV] Re: persisten... Maróy Ákos