Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeMidnight
languagebash
titleConsole
linenumberstrue
user@ubuntu:~$ java -jar nsys-daemon.jar --nsys-boot-help
Nsys-Boot uses the following command-line arguments
    --nsys-boot-help       Shows this message, then exits.
    --nsys-boot-version    Shows the version of Nsys-Boot, then exits.

Nsys-Boot uses the following VM properties (-D<property>=<true|false|string>)
    nsys-boot.class.path    Extra classpaths to be added to the execution environment.
                            Use platform independent path separator '|'
    nsys-boot.debug         true: Print debug classloading information

user@ubuntu:~$ java -jar nsys-daemon.jar --nsys-boot-version
Nsys-Boot version 1.0.0.1041
user@ubuntu:~$ 

To see what the BootClassLoader is doing behind the scenes, enable debug output using the nsys-boot.debug system property:

Code Block
themeMidnight
languagebash
titleConsole
linenumberstrue
user@ubuntu:~$ java -Dnsys-boot.debug=true -jar nsys-daemon.jar
[org.nsys.boot.classloader.BootClassLoader] INFO :    Nsys-Boot version: 1.0.0.1041
[org.nsys.boot.classloader.BootClassLoader] INFO :    Parent classloader: sun.misc.Launcher$AppClassLoader
[org.nsys.boot.classloader.BootClassLoader] INFO :    System Loader: boot/nsys-daemon-main.jar
[org.nsys.boot.classloader.BootClassLoader] INFO :    Main Class: org.nsys.daemon.server.embedded.ServerLauncher
[org.nsys.boot.classloader.BootClassLoader] INFO :    Loading...
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/nsys/boot/BootManifest.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    Nsys-Boot class: /opt/nsys/bin/nsys-daemon.jar!/org/nsys/boot/BootManifest.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/nsys/boot/NsysBootConfig.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    Nsys-Boot class: /opt/nsys/bin/nsys-daemon.jar!/org/nsys/boot/NsysBootConfig.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/nsys/boot/classloader/BootClassLoader.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    Nsys-Boot class: /opt/nsys/bin/nsys-daemon.jar!/org/nsys/boot/classloader/BootClassLoader.class

...

[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/AbstractBaseBindingFactory.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/AbstractBindingFactory.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/Binding.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/BindingConfiguration.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/BindingFactory.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/BindingFactoryManager.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/binding/WSDLBindingFactory.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/buslifecycle/BusCreationListener.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/buslifecycle/BusLifeCycleListener.class
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for class org/apache/cxf/buslifecycle/BusLifeCycleManager.class

...

[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for entry name com/fasterxml/jackson/core/util/
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    cached bytes for location lib/jackson-core-2.4.1.jar!/META-INF/MANIFEST.MF
[org.nsys.boot.classloader.boot.BootFile] DEBUG:    META-INF/MANIFEST.MF in lib/jackson-core-2.4.1.jar is hidden by boot/nsys-daemon-main.jar (with same bytecode)
[org.nsys.boot.classloader.BootClassLoader] INFO :    Main class loaded with classloader: org.nsys.boot.classloader.BootClassLoader
[org.nsys.boot.classloader.BootClassLoader] INFO :    Booting...
[main] INFO : Initializing Server Launcher for Jetty Embedded Server - ServerLauncherThread
[main] INFO : Logging initialized @2523ms - log
[main] INFO : jetty-9.2.1.v20140609 - Server
[main] INFO : Launching Nsys Daemon - BootstrapLauncher
[main] INFO : Starting system services... - ManagementAgentHost
[main] INFO : Starting system service - SystemUptime... - SystemUptime
[main] INFO : Starting system service - Java Message Service (JMS) Manager... - JmsManager
[main] INFO : JMS support is disabled. - JmsManager
[main] INFO : Starting system service - Quartz Scheduler... - QuartzScheduler

...