2 Replies Latest reply on Nov 13, 2001 9:18 AM by 807555

    A profiler question ( hprof )

    807555
      I tried to use hprof with my java program. The program works with out the profiler, but with the -Xrunhprof option, the error message like below appeared:

      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4D555445583F4C494E55580E4350500104
      #
      # Problematic Thread: prio=1 tid=0x804e428 nid=0x62dc runnable
      #
      Aborted


      The machine I used is intel i686, Linux Mandrake. Does it have anything to do with the OS?

      Thank you very much!

      jessie
        • 1. Re: A profiler question ( hprof )
          807555
          Are we the only persons trying to use the profiler?
          I have got the same problem (RedHat 7.1, SDK 1.3.0). The profiler
          does not work, jdb keeps reporting NativeMethodExceptions.

          Folks, how do you debug your programs?
          • 2. Re: A profiler question ( hprof )
            807555
            On my linux box, the profiler and the debugger do not work with hotspot. I can only have them work with the following command line
                 java -classic -Djava.compiler=NONE -Xrun****
            More over, if I profile, I need to add the -Xnoclassgc option, else I get many error messages while running.

            There is an exception,; when I try to use hotspot's profiler: java -Xprof works well (though the output is not the same than -Xrunhprof).

            To my mind it seems that there is a bug in Hotspot.
            For debugging, I eventually convinced my self that jdb is unusable. (far less than gdb : no tabulation for completing variable/method/class names, etc.)
            So I use a nice front end : the one integrated in netbeans (http://www.netbeans.org).