Hi, 
      I've racked more brains than I've got trying to figure this out.  If 
someone can give me a hint as to how I can proceed with solving this problem, 
I would be obliged. I'm invoking the JVM using dlopen to open the 1.2.2 
libjvm.so and am doing a dlsym of the JNI init args and JNI CreateJavaVM 
functions. The JVM initialises quite OK and proceeds into the Java Code up to a point. 
But it refuses to enter within a method which is a simple method 
where some variables are initialised. We thought the Java and Native stack 
sizes or the heap size might be less and so we increased all that but it 
doesn't help.

 The relevent code is something like this.

                                       Class Conn code segment:
                                       Print.printl("About to create message"); 
Message message = new
                                       Message( msgindex , request , props);

                                       Class Message code segment:
                                       Constructor: Message(int msgindex, Request 
request, Properties props){
                                       Print.printl("Creating message");
                                       m_msgindex=msgindex; m_request =
                                       request; m_properties=props; }

    I'm getting the message " About to create message" in my status file but am 
not getting the "Creating message" when I invoke the JVM from my native code. 
However from the command line "java" I get both messages and the program 
executes as desired. Also this happens only in Linux. In Solaris things work 
fine.  Also I'm using the native_threads version of the java library.

We suspect it to be a  JVM tuning problem.  Could anyone have tips on the parameters 
to be passed for tuning. I'm awar that JVM provides the JDK1_1InitArgs tstructure to 
pass parameters but changing the structure parameters desn't seem to help.

Any ideas would be welcome.

    Thanks

              






----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to