jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question How do i diagnose hotspot problems? Can i prevent some of my code from being JIT'ted?
Derived from A question posed by Davanum Srinivas PREMIUM
Topics Java:Language
Author Davanum Srinivas PREMIUM
Created Jan 6, 2002


Answer
If you see HotSpot errors you can work around other situations using the following procedure:
1. Add -XX:+PrintCompilation to your Java args.

2. You'll get a bunch of output lines like

337      java.util.StringTokenizer::scanToken (92 bytes)

3. When you get the HotSpot error, look at the previous line printed (if 
there's a lot of threading it's possible it could be  a few back)

4. Add a file .hotspot_compiler in the directory you run Java in 
containing the name of the method:

exclude java/util/StringTokenizer scanTemplate

(The delimiters *must* be tabs.)
You should now be able to run again without getting the HotSpot error.


Is this item helpful?  yes  no     Previous votes   Yes: 1  No: 0



Comments and alternative answers

Comment on this FAQ entry

There are currently no comments

Ask A Question



 
Related Links

JavaLanguage FAQ

JavaLanguage Forum

Sun's Java Tutorial

What is the Java Platform

JavaWorld Magazine

IBM developerWorks

Java 2 SDK Tools and Utilities

The official Sun JavaDoc 1.1 documentation

The official Sun JavaDoc 1.2 documentation

The official Sun JavaDoc 1.3 documentation

The official Sun JavaDoc J2EE documentation

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers