Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

performance in java

Thread view: 
jaj_developer@yahoo.co.uk - 26 Jan 2006 17:46 GMT
All,

We have a program that uses JNI to call down to some native components
(native dll [ours] using jdk1.4 and 1.5).

Is there any way that we can find out how much processor load the
JNI-native dll is taking up (windows xp)?

Currently perfmon etc only shows "java" which includes the native, is
there any way that you can see how much the native part is taking up of
the total processor load?

Thank you in advance,

Yours

Jaj
Steve W. Jackson - 26 Jan 2006 19:52 GMT
> All,
>
[quoted text clipped - 13 lines]
>
> Jaj

Applications and their various threads consume CPU resources, not DLLs
or other such resources.  So perfmon reports correctly that "java" is
consuming CPU.

Instead, what you want to look for is profiling of the application, so
that you can find out where it's spending its time.  There are some
profiling facilities with Java, though whether they're useful when you
have JNI code involved I can't say.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Oliver Wong - 26 Jan 2006 20:28 GMT
>> All,
>>
[quoted text clipped - 22 lines]
> profiling facilities with Java, though whether they're useful when you
> have JNI code involved I can't say.

   If you can't find a profiling tool that works well with JNI, and decide
to write your own, Java 1.5 added something called JVMTI that may help out.
See http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/

   - Oliver
javabuddha@gmail.com - 26 Jan 2006 20:51 GMT
I looked at this a while back:

http://java.sun.com/developer/technicalArticles/Programming/HPROF.html

It suppose to give you both heap and CPU usage by class, but didn't
have the time to play with it yet.

Good luck,

Matt
jaj_developer@yahoo.co.uk - 30 Jan 2006 11:08 GMT
Thanks to all.

Jaj


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.