Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8237

Unable to launch XWiki in profiling mode from linux

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      According to the documentation, XWiki should be launched in debug mode with the profiler parameter set to the location of the profiling tool to be used.

      However, under linux this does not work, giving the following error:

      $ sh start_xwiki_debug.sh 8080 profiler /home/User/yjp-11.0.8/bin/linux-x86-64/
      Starting Jetty on port 8080 ...
      Error occurred during initialization of VM
      Could not find agent library yjpagent on the library path, with error: libyjpagent.so: cannot open shared object file: No such file or directory
      

      The problem is that only the mac version of the LD_LIBRARY_PATH system variable (DYLD_LIBRARY_PATH) is exported in the debug script and not the linux one as well.

      The solutions is obviously to add the line

      export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$3"

      to the start_xwiki_debug.sh script, under the profiler section.

      Attachments

        Activity

          People

            enygma Eduard Moraru
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: