Very slow code execution when app start by JNI
0 posts in topic
Flat View  Flat View

Posted By:   Lukasz_Zwierko
Posted On:   Monday, June 2, 2008 01:16 PM

I've written a piece of jni code, basically to enable my app to handle linux signals. At the moment the jni code does nothing but lunches JVM and calls static function from my class (inside some JAR file). I have noticed that the program executes about 3-4 times slower than as if I started it without the jni part... ("java -jar myjar.jar" ...). Any ideas exlaining such behaviour? I suppose that the program might start a bit slower as all the edynamic libraries need to be loaded, but thats not the thing. Even after all the stuff is loaded it doesnt speed up. I'm using 1.6u6.

Thanks for any feedback

About | Sitemap | Contact