[INTDIST-57] Investigate using JSR-200 packing for populated system directory in distribution Created: 14/Jul/16  Updated: 19/Jun/18  Resolved: 19/Jun/18

Status: Resolved
Project: integration-distribution
Component/s: Karaf
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6192

 Description   

Using a simple script:

#!/bin/sh

input="$1"
base=`echo $1 | sed 's/.jar$//'`
output="$base.pack.gz"

echo -n "Compressing $input ..."
pack200 -q "$output" "$input"
if [ $? -eq 0 ]; then
rm -f "$input"
echo " success"
else
rm -f "$output"
echo " failed"
fi

and running

user@work : ~/distribution-karaf-0.5.0-SNAPSHOT/system$ time find . -name *.jar | sort -u | xargs -n 1 ~/p.sh
real 9m49.336s
user 30m25.764s
sys 1m41.299s

results in ~50% size savings in the resulting distrution. It is non-functional because feature:install fails to install, but that is something that could be fixed by an appropriate plugin into karaf.

Investigate how this could be integrated into our simultaneous release distribution.



 Comments   
Comment by Luis Gomez [ 21/Mar/18 ]

Do we still need this?

Comment by Robert Varga [ 19/Jun/18 ]

As per http://openjdk.java.net/jeps/336, pack200 is going away in Java 11, so there is no point in pursuing this.

Generated at Wed Feb 07 20:02:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.