Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: CHUD Shark usable w/ Java? (Yes, even on Panther!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CHUD Shark usable w/ Java? (Yes, even on Panther!)



To all who may be interested (Kaelin, I'm looking at you:) ...

The issue seems to be the version of Shark. Update the CHUD tools and you get Shark 4.0.0, which seems to work with Java.

(I was having the same problem with libShark.jnilib and getting this when I tried it:


myprecious:~ DWS$ java -XrunShark -version
Error occurred during initialization of VM
Could not find -Xrun library: libShark.jnilib (searched /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries:.)
Trace/BPT trap


but I just updated my CHUD tools and I now get this:


myprecious:~ DWS$ java -XrunShark -version
2004-07-01 12:12:58.522 java[9792] Shark for Java is enabled...
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)


So the key is to update CHUD!

(Wasn't there a movie about Canabalistic Humanoid Underground Dwellers (C.H.U.D) way back in the 80's?;-)


On Jul 1, 2004, at 11:20 AM, Philip Holland wrote:

I'm not sure your test proves Shark is available in older versions; as
-Xrun attempts to load the library named after the 'run' part. So,
-Xrunhprof loads libhprof.jnilib on OS X (on Win32: it appends .dll and
on Solaris: libhprof.so, etc).

Bogus example:
$ java -XrunaLibraryThatDoesntExist
Error occurred during initialization of VM
Could not find -Xrun library: libaLibraryThatDoesntExist.jnilib
(searched
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries:.)
Trace/BPT trap

I think to check if Shark profiling is available we should look for the
existence of:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/
libShark.jnilib

Depending on the version of Java installed the numbers will differ.
Incidentally, it does seem to be there on my (non-DP) version:

$ java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
$ java -Xinternalversion
Built on Jan 9 2004 23:07:30 by root with gcc 3.3 20030304 (build 1495)

Phil.

On Jul 1, 2004, at 9:29 AM, email@hidden wrote:

Godfrey Raftesath wrote:
| Shark appears to _not_ require any DP version:
|
| java -Xrunshark -version
| 2004-07-01 16:07:25.632 java[4341] Shark for Java is enabled...
| java version "1.4.2_03"
| Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_03-117.1)
| Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)

It doesn't even seem to require 1.4.2 or Panther:

% java -XrunShark -version
Error occurred during initialization of VM
Could not find -Xrun library: libShark.jnilib (searched

/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/
Libraries:.)
Trace/BPT trap
% java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.1_01-69.1)
Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)

(I don't have Shark installed, but clearly the option is recognized.)


Glen Fisher


Dave Stewart
Aqua~Flo Supply (Goleta CA)
dstewart at aquaflo dot com

Murphy's Law:
Anything that can go wrong, will.
Murphy's Corollary:
Left to themselves, things tend to go from bad to worse.
Murphy's Constant:
Matter will be damaged in direct proportion to its value.
Quantized review of Murphy's Law:
Everything goes wrong all at once.
O'Tooles Commentary:
Murphy was an optimist.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.