How to Configure Extended OSGI Debugging/Tracing
From RifidiWiki
If you would like to configure extended OSGI Debugging/Tracing options here are the steps.
Note: This is helpful if you are looking to troubleshoot OSGI bundle startup and runtime issues (in the event you are adding/modifying bundles)
- Create .option file - used for setting debug/tracing options
- in rifidiserver.ini (in linux its rifidi-server) add - points to path of where .options file is located
-Dosgi.debug=C:\tracing\.options
Note:Added after -Dosgi.clean=true
Example .options file
#### Debugging options for org.eclipse.osgi # Turn on general debugging for org.eclipse.osgi org.eclipse.osgi/debug=true # Prints out class loading debug information org.eclipse.osgi/debug/loader=false # Prints out event (FrameworkEvent/BundleEvent/ServiceEvent) and listener debug information org.eclipse.osgi/debug/events=false # Prints out OSGi service debug information (registration/getting/ungetting etc.) org.eclipse.osgi/debug/services=false # Prints out bundle manifest parsing debug information org.eclipse.osgi/debug/manifest=false # Prints out LDAP filter debug information org.eclipse.osgi/debug/filter=false # Prints out security (PermissionAdmin service) debug information org.eclipse.osgi/debug/security=false # Prints out start level service debug information org.eclipse.osgi/debug/startlevel=false # Prints out package admin service debug information org.eclipse.osgi/debug/packageadmin=false # Prints out timing information for bundle activation org.eclipse.osgi/debug/bundleTime=false # Debug the loading of message bundles org.eclipse.osgi/debug/messageBundles=false # Eclipse adaptor options org.eclipse.osgi/eclipseadaptor/debug = false org.eclipse.osgi/eclipseadaptor/debug/location = false org.eclipse.osgi/eclipseadaptor/debug/platformadmin=false org.eclipse.osgi/eclipseadaptor/debug/platformadmin/resolver=false org.eclipse.osgi/eclipseadaptor/converter/debug = false ### OSGi resolver options # Turns on debugging for the resolver org.eclipse.osgi/resolver/debug = false # Prints out wiring information after the resolver has completed the resolve process org.eclipse.osgi/resolver/wiring = false # Prints out Import-Package information org.eclipse.osgi/resolver/imports = false # Prints out Require-Bundle information org.eclipse.osgi/resolver/requires = false # Prints out debug information form the "uses" clause org.eclipse.osgi/resolver/uses = false # Prints out cycle information org.eclipse.osgi/resolver/cycles = false # Prints out Eclipse-GenericRequire information org.eclipse.osgi/resolver/generics = false #### Profile settings org.eclipse.osgi/profile/startup = false org.eclipse.osgi/profile/benchmark = false org.eclipse.osgi/profile/debug = false # Override the default implemenation org.eclipse.osgi/profile/impl = org.eclipse.osgi.internal.profile.DefaultProfileLogger # Append all profile messages to the filename specified org.eclipse.osgi/defaultprofile/logfilename = # Output all profile log messages synchronously to the jvm console. # By default, all log messages are cached until the log buffer is # requested. org.eclipse.osgi/defaultprofile/logsynchronously = false # Specify the size of the default profile implementation log buffer. org.eclipse.osgi/defaultprofile/buffersize = 256 #### Monitoring settings # monitor class loading org.eclipse.osgi/monitor/classes=false # monitor bundle activation org.eclipse.osgi/monitor/activation=false # monitor resource bundle (*.properties) loading org.eclipse.osgi/monitor/resources=false #### Trace settings # trace class loading - snapshot the execution stack when a class is loaded org.eclipse.osgi/trace/classLoading=false # trace location - file in which execution traces are written org.eclipse.osgi/trace/filename=runtime.traces # trace filters - Java properties file defining which classes should # be traced (if trace/classLoading is true) # File format: # plugins=<comma separated list of plugins whose classes to trace> # packages=<comma separated list of package prefixes of classes to trace> # Note that there may be many 'plugins' and 'packages' lines in one file. org.eclipse.osgi/trace/filters=trace.properties # trace bundle activation - snapshot the execution stack when a bundle is activated org.eclipse.osgi/trace/activation=false