Details
-
Bug
-
Resolution: Fixed
-
Minor
-
4.2-milestone-3
-
None
-
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.