O'Reilly logo

OSGi in Action: Creating Modular Applications in Java by David Savage, Stuart McCulloch, Karl Pauls, Richard Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Debugging applications

 

This chapter covers
  • Debugging bundles using jdb
  • Debugging bundles using Eclipse
  • Understanding and solving class-loading issues
  • Tracking down memory leaks and dangling service references

 

You just learned how to test individual bundles and application deployments in OSGi, but what should you do when an integration test unexpectedly fails with a class-loading exception or a load test runs out of memory? If you were working on a classic Java application, you’d break out the debugger, start adding or enabling instrumentation, and capture various diagnostic dumps. Well, an OSGi application is still a Java application, so you can continue to use many of your well-honed debugging techniques. The key area to watch ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required