J
John McClain
I am running a webapp that calls JNI code which loads a powerbuilder .dll
and some powerbuilder code.
The problem I am having is this:
When I run the webapp and call powerbuilder functions through JNI and
PowerBuilder Native Interface code (a c++ .dll), it works for a while, but
then hangs. The pattern I have found to be consistent is that it hangs when
I wait a little while before making my next function call (via a jsp calling
a servlet calling JNI code). And here is the question - Why is my native
codes' state being changed or removed, and what would do that? Yes, I am
cleaning up after myself in the Native code
Does Garbage collection affect the loaded JNI code?
Is there some way to test / profile this ?
A general question - Is the native code loaded into the JVM address space or
does it reside outside of the JVM?
and some powerbuilder code.
The problem I am having is this:
When I run the webapp and call powerbuilder functions through JNI and
PowerBuilder Native Interface code (a c++ .dll), it works for a while, but
then hangs. The pattern I have found to be consistent is that it hangs when
I wait a little while before making my next function call (via a jsp calling
a servlet calling JNI code). And here is the question - Why is my native
codes' state being changed or removed, and what would do that? Yes, I am
cleaning up after myself in the Native code
Does Garbage collection affect the loaded JNI code?
Is there some way to test / profile this ?
A general question - Is the native code loaded into the JVM address space or
does it reside outside of the JVM?