Petals Distribution

Integrate optimized archives and archives of debugging

Details

  • Type: New Feature New Feature
  • Status: New New
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 4.1.0
  • Fix Version/s: None
  • Component/s: Packaging
  • Security Level: Public
  • Description:
    Hide

    For performance reasons, all artifacts must be built and delivered using Java optimizations and with no debugging information
    But for debug reasons, all artifacts should be also built and delivered with debugging information.

    So the distribution pack should include each artifact in two versions, examples:
    One distribution with all artifacts:

    • petals-esb-distrib-4.2.0.zip:
      • petals-bc-soap-4.3.0.zip
      • petals-bc-soap-4.3.0*-debug*.zip
      • petals-esb-4.2.0.zip:
        • petals-kernel-3.4.0.zip
      • petals-esb-4.2.0*-debug*.zip:
        • petals-kernel-3.4.0-debug.zip

    or two distributions:

    • petals-esb-distrib-4.2.0.zip:
      • petals-bc-soap-4.3.0.zip
      • petals-esb-4.2.0.zip:
        • petals-kernel-3.4.0.zip
    • petals-esb-distrib-4.2.0-debug.zip:
      • petals-bc-soap-4.3.0*-debug*.zip
      • petals-esb-4.2.0*-debug*.zip:
        • petals-kernel-3.4.0-debug.zip
    Show
    For performance reasons, all artifacts must be built and delivered using Java optimizations and with no debugging information But for debug reasons, all artifacts should be also built and delivered with debugging information. So the distribution pack should include each artifact in two versions, examples: One distribution with all artifacts:
    • petals-esb-distrib-4.2.0.zip:
      • petals-bc-soap-4.3.0.zip
      • petals-bc-soap-4.3.0*-debug*.zip
      • petals-esb-4.2.0.zip:
        • petals-kernel-3.4.0.zip
      • petals-esb-4.2.0*-debug*.zip:
        • petals-kernel-3.4.0-debug.zip
    or two distributions:
    • petals-esb-distrib-4.2.0.zip:
      • petals-bc-soap-4.3.0.zip
      • petals-esb-4.2.0.zip:
        • petals-kernel-3.4.0.zip
    • petals-esb-distrib-4.2.0-debug.zip:
      • petals-bc-soap-4.3.0*-debug*.zip
      • petals-esb-4.2.0*-debug*.zip:
        • petals-kernel-3.4.0-debug.zip
  • Environment:
    -

Issue Links

Activity

Hide
Vincent Zurczak added a comment - Wed, 10 Oct 2012 - 15:53:34 +0200

What is the difference between a build with debugging options and without?
And why would we need a debugging distribution? Who would use it?

Show
Vincent Zurczak added a comment - Wed, 10 Oct 2012 - 15:53:34 +0200 What is the difference between a build with debugging options and without? And why would we need a debugging distribution? Who would use it?
Hide
Christophe DENEUX added a comment - Thu, 18 Oct 2012 - 12:43:44 +0200 - edited

For example, to have the line number where an exception is initially thrown you should have the debug version of the artifact. This artifact is bigger than the optimized one.
In debug mode, no optimization has to be done by the compiler or tools as ProGuardas: inlining, offuscation, shrinking, ...
So an optimized artifact takes up less space (memory of permgen space is saved) and runs faster.

For performance reason, the optimized distribution should by used in production. But for a debugging purpose of a not reproducible problem occurring in production we can need to run Petals with debugging artifacts

Show
Christophe DENEUX added a comment - Thu, 18 Oct 2012 - 12:43:44 +0200 - edited For example, to have the line number where an exception is initially thrown you should have the debug version of the artifact. This artifact is bigger than the optimized one. In debug mode, no optimization has to be done by the compiler or tools as ProGuardas: inlining, offuscation, shrinking, ... So an optimized artifact takes up less space (memory of permgen space is saved) and runs faster. For performance reason, the optimized distribution should by used in production. But for a debugging purpose of a not reproducible problem occurring in production we can need to run Petals with debugging artifacts

People

Dates

  • Created:
    Wed, 10 Oct 2012 - 15:28:24 +0200
    Updated:
    Wed, 2 Oct 2013 - 17:30:30 +0200