1 Reply Latest reply on Nov 22, 2007 1:20 PM by pmclsousa

    Problem starting profiler in linux

    pmclsousa

      Hi to all.

      I am having a strange (or not) problem running the profiler, in a Linux.

      Starting the JBoss without the -server VM option works fine, at least without any visible problem. The command line is this one:

      java -Xms128m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/usr/local/jboss/lib/endorsed -XrunjbossInspector:/home/dev/JBossProfiler/tmp,include=com.mindergy,ignore=* -classpath /usr/local/jboss/bin/run.jar org.jboss.Main -c default -b 111.111.111.111

      Startig JBoss with the -server VM option results on this error:

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x00674a82, pid=15415, tid=3086297792
      #
      # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode, sharing)
      # Problematic frame:
      #
      [error occurred during error reporting, step 60, id 0xb]

      # An error report file with more information is saved as hs_err_pid15415.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #


      The Lib was compiled with success in the system.

      Naturaly, it's better to run with the -server option, so can someone please help me on this? Did i missing something?

      The distribution of Linux is the CentOS, with this version:
      Linux version 2.6.18-8.1.8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Tue Jul 10 06:50:22 EDT 2007

      Thanks in advance for yout help
      Regards

        • 1. Re: Problem starting profiler in linux
          pmclsousa

          Hi to all

          The problem is solved.

          Add the libjbossInspector.so to the [JAVA_HOME]/jre/lib/i386/server was sufficient.

          Apparently in this Linux/JDK pair the LD_LIBRARY_PATH is not shared between startup modes (client ou server)

          Best regards