JAR Optimization : Compression or not ???

I am deploying different achrives (classes only, jsp, jsp and classes) and I was wondering if there was a noticable speed increase if I was not to compress my JARs.

In terms of application start-up, I've noticed a slight performance improvement when the jar libraries in the CLASSPATH are NOT compressed.
When I've created my applications in the past, I do NOT compress the individual jar files, but compress the entire application as a whole. This allow for a higher compression ratio, smaller application package, and for faster start-up times.
SCJP, SCJD, SCEA, SCWCD, SCBCD
CISSP, PMP, PHR
OCPDBA 8i/9i
http://www.certgear.com

Similar Messages

  • Jar file compression - to do or not to do

    2 quick questions for the jar gurus out there...
    I have several jar files:
    1. a jar file for my app itself
    2. a common jar (shared generic libraries for all my apps)
    3. a common db jar (shared db libraries for all my apps + mysql drivers)
    4. a misc jar (stuff like java help and GUI calendar classes)
    The way I see it, I have several choices:
    1. leave the jars seperate and leave uncompressed
    2. leave the jars seperate and compress them
    3. combine them all into one jar and compress the entire archive
    4. combine them all into one jar and leave them uncompressed
    I realize that smaller jar size is good if users are downloading the jar but this application is run from the local drive, not from the web, so fast download times are not important to me.
    My questions are:
    1. Is there any benifit to compressing a jar other than fast download times? (I assume the answer is no).
    2. Is there any benifit to combining the jars?
    I'm thinking that having a combined jar might make installations easier, but future upgrades might be easier with multiple jars (if just the common jar changes for instance...)
    In particular, I am wondering about application startup time and total memory usage, is there a difference in these areas from how the jar is packaged?
    I look forward to any feedback you all can provide.
    Cheers,
    Andy Dingfelder

    When everything is running well is the time to update.
    Updating when your Mac is having problems is a recipe for disaster and then you arrive at this worldwide online hospital for sick Macs
    Back up > Remove iPods, spare HDs and assorted peripherals > Download Combo updater from Apple > Restart > Then install and be patient through two Automatic restarts.
    No problems here.

  • SQL index of facttable disappears after full optimize + compress db

    Hello all,
    I have a customer that is using Outlooksoft 4.2sp3 for more then a year now. Every weekend a full optimize + compress database is running.
    Since 4 weeks, the SQL index of the fact table is disappeared after a full optimize+compress. They use a custom index and have about 95.000.000 records in the facttable.
    Does anyone have a clue why this index is deleted and perhaps a solution?
    Kind Regards,
    Alwin Berkhout
    Edited by: Alwin Berkhout on Apr 20, 2008 9:50 PM

    Joost, Sorin,
    I have created server extensions for the database that has these problems. Now for the first time since 5 weeks, after the optimize, the indexes are still there (or automatically recreated).
    Thanks for the tips.
    Strange thing though: why didn't I had this problem before?
    Alwin

  • Compression does not save space

    Hello All,
    OS: AIX 5.2.
    We are creating seven backup files every day.
    We transfer files to our backup server via ftp.
    No we have request to compress files.
    So I create a backup folder and put all seven files into one pax folder as below:
    pax -wvf backup.pax file1 file2 file3 file4 file5 file6 file7
    ls
    backup.pax Now I am trying to compress file as below but getting error:
    oracle:>compress backup.pax
    This file is not changed; compression does not save space.
    DN

    it's pretty universally accepted.The keyword is "universally". Bzip2 has better compression but it's very slow. This is the reason why bzip2 can't be universally accepted (I mean online content compression via HTTP etc. etc.).
    But it's accepted by most of *nix clones. And if I need really save ma space then I use bzip2 rather than gzip.
    Just little proof:
    standard_bz2.log and standard_gz.log files are the same.
    du -sh *
    1.1G    standard_bz2.log
    1.1G    standard_gz.lognow I'll execute following commands:
    echo "GZIP"; date; gzip standard_gz.log; date
    echo "BZIP2"; date; bzip2 standard_bz2.log dateand here is output:
    GZIP
    Mon Jun 12 12:26:38 CEST 2006
    Mon Jun 12 12:27:38 CEST 2006
    BZIP2
    Mon Jun 12 12:27:45 CEST 2006
    Mon Jun 12 13:12:29 CEST 2006
    du -sh *
    54M     standard_bz2.log.bz2
    108M    standard_gz.log.gzGzip's compresion was fast (took just 60 seconds) and produced archive has 108M Size.
    Bzip2's compression was much better and produced size of archive was just 54M but it took much time for compression.
    So if you need quick compression and less of saved capacity then gzip is the right option.
    If you need save space or you need better compression then bzip2 is the right option.

  • Optimize application does not empty FAC2 and FACTWB tables

    Hello everyone,
    I am currently using OutlookSoft 4.2.338 and recently came across the following problem:
    Optimize application fails to empty FACTWB and FAC2 tables, even though it says "Successfully finished"
    -Whenever I run an optimize process directly (= not scheduled), it takes less than one second and the message "Successfully finished" pops up. However FAC2 and FACTWB are NOT empty
    - When I schedule an optimize proces, the log usually states "Fail"... (But not every time, it 's a bit random here)
    - The problem occurs with one specific application in one specific appset (that contains 3 applications, the other 2 can be optimized just fine)
    - The application contains a fairly large number of records (close to 20 millions) and, yes, some records have a "source" value at 1.
    However, the same application, on a different server, with a bigger number of records (and more "1" source values!) optimizes just fine.
    - The problem is not appset or server related, as other applications can be optimized without problem
    - The application has data imports scheduled every night, and the FAC2 table keeps growing
    - Data sent through an Input schedule stay in FACTWB.
    Did anyone come across this sort of issue before?
    Any suggestion as to how to be able to optimize the application again? (apart from moving the records manually from FAC2 to FACT...)
    Many thanks in advance
    David

    Hello,
    Unfortunately there is no such table. The only table where some mention of optimization is made is tblPackageLog, where the log of optimization tasks is recorded.
    Thanks to both of you anyway.
    David
    PS: Actually your answers gave me the clue I needed, many thanks! On version 4.2, the table tblDefaults stores the optimization status
    The query
    select * from tblDefaults
    where KEYID ='Optimize'
    and APP=  App name
    showed that the value was somehow set to 1, preventing any optimization. I manually set it to 0, and that did the trick!!!
    Many thanks again guys!
    Edited by: David Placci on Mar 2, 2012 1:50 PM
    Edited by: David Placci on Mar 2, 2012 2:44 PM

  • Networker 7.3.2 software compression is not working...

    Hi,
    After reading some docs, I have understood that using the ASM "+compressasm:." will do the trick for you to be able to use the software compression.
    As pre-configured Directives like "Unix using compression" is available where "+compressasm:." ASM is inside, it came to my awareness that all our client are using this pre-configured directives.
    However, if I'm going to check the actual size of the data versus the data being written on volume, they are almost of the same sizes, as if software compression is not taking into effect.
    Can somebody explain to me why?
    Are there any other things that I need to verify to make it work?
    Thanks a lot for the help...

    Are you using HW compression at the same time? If yes, these can produce the reverse effect about the compression.
    Regards

  • Executing class in jar file that is not in classpath

    I need to execute a class that is in a jar file that is not in the classpath. Do I need to write my own ClassLoader or is there another way to do this.
    Thanks,
    Scott

    You could write your own classloader. Or you could use a URLClassLoader (it's in the java.net package). Or you could change the classpath so that it includes the jar file.

  • "Backup optimization on" is not working for "backup database"

    Hi,
    I am using a windows environment and my database info is like this:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Productionnow, I change my configuration for backup optimization on and then make example tablespace offline and also make example datafile offline. After that I run 2 times "Backup Database" command but 2 backup has same size and have example tablespace too... Backup archivelog all is working bur backup database is not!
    according to this link it must not backup example datafile for second: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV113
    is there something that I missed ?
    rman configuration:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 5;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\APP\ABC\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL.ORA'; # default

    If you enable backup optimization, then the BACKUP command skips backing up files when the identical file has already been backed up to the specified device type.
    1. In case of datafile RMAN compares the DBID, checkpoint SCN, creation SCN, and RESETLOGS SCN and time as a datafile already in a backup. If they are identical then skip to take backup again.
    2. In case of archived redo log RMAN compares thread, sequence number, and RESETLOGS SCN and time.
    3. In case of backupset RMAN compares recid and stamp.
    Backup optimization applies to only commands,
    -BACKUP DATABASE
    -BACKUP ARCHIVELOG with ALL or LIKE options
    -BACKUP BACKUPSET ALL
    refer,
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmconc1008.htm
    Thanks

  • System Compression option not showing up in Disk Cleanup tool

    I am trying to give the new "System Compression" option in cleanmgr a spin but for some reason it is not showing up on my system. I have installed Windows 10 TP into a small partition on an eSATA hard disk, leaving my internal HDD for Windows 7,
    if that makes a difference. I'm using a clean install of build 9926. Any ideas?

    Hi andrum99,
    Could you please explain a bit for the system compression in cleanmgr?
    I only seeing the option under the drive properties for Compress this drive to save disk space, and I never heard of the new '' system compression".
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Jar file in applet not saved in internet files when using jdk plugin

    Hello,
    I recently upgarded to jdk1.3.1 and converted our applet and classes to jdk1.3.1 using swing classes. From there, we converted the html file with htmlconverter and diployed this on the web. When a user goes to the web, the system automatically downloads the java plugins and installs them on the clients maching. From there our jar file loads and executes. Our applet runs fine. However, every time our website is accessed, our jar file cookie must be downloaded which is just over 1meg and I know this is not going to fly with our clients.
    What needs to be done so the jar file is not downloaded every time, to work like java version 1.x ?
    Thanks for your help in advance with this one.
    Jay Ford

    Hi Jay Ford,
    Enable the "Recycle Classloader" in Control Panel-->Java Plug-in1.3.1-->Basic.
    The main purpose of this Recycle classloader is it will enable the "javaplugin.classloader.cache.enabled" property to true and it caches the jar files for performance enchancement.
    Hope this will help you.
    Anil.
    Developer Technical Support,
    Sun Microsystems Inc,
    http://www.sun.com/developers/support

  • After creating  a jar, input parameter names not good

    Hi,
    jdeveloper 11.1.1.3
    project a->create a util_a.jar
    project b->properties/libraries->import util_a.jar
    When I'm in project b and try to use a method of a class , jdeveloper doesn't show me the name of the parameters I wrote when creating that library
    for instance Example.hello(String name)
    In project b, the help popup just show me hello(String)
    It is a problem when generating the jar from jdeveloper, since other external jars (from the Internet) display the parameter names (and in those external jars there is neither javadoc files, nor source code, just classes)
    Where can I configure the creation of a jar file containing the original names of the parameters and not p1, p2, etc)?
    Thanks

    Imagine in the jar:
    public class Message{
    public static void send(String text,String from, String to){...}
    and now, in the other project you have
    Message.send(String p1, String p2,String p3); (in help popup)

  • Compressed videos not playing in IPAD

    Hi,
    I am using flash professional cs6 .my project is depends upon Multimedia.mainly my Application for iPad.
      I am using some videos which are in .flv . Those flv files are too large so that i compressed all videos and loaded into my application.After building application those compressed videos are playing fine in my application.
      But after published my application into .ipa file. and installed in IPad.but videos are not playing.
    Please if any faced this problem suggest me.
    I have done In My application with Videos
    1.Compressed all videos into .MP4
    2.Runed my application and tested ,Status: All videos are playing good
    3.Published my App into .ipa
    4..ipa file installed in IPAD, Status: Videos are not visible
    Advance Thanks
    Narsi
    Message was edited by: Ak Narsi

    Please post the codec details of your videos. MP4 is a container that supports a variety of audio and video codecs. Chances are you may have used a codec iPad doesn't support.
    All my MP4s for iPad are using good old MainConcept H.264 for video and AAC stereo for audio. All playback is fine. Are you using something like x264 or something non-H.264?

  • Image compression does not seems to work

    Hi all,
    We are using a Remote Desktop Server (2012 R2) with Word 2010 to make some image-documents. For some reason the Image Size and Quality settings have no effect on the saved document. With the option "Do not compress images in file" checked or not
    checked, or changing the default output setting to 220, 150 or 96 ppi, the document is always the same (uncompressed) size.
    After each change the pictures are removed and re-added.
    I tried this on two other RDS Servers (2012 R2 64bit) and on my Client machine (Windows 8.1 64bit), same result.
    Removed Word 2010 and installed Office Professional Plus 2010, same result.
    Updated Word / Office 2010 with the latest updateds, same result.
    The strange thing is... on my home-pc (Windows 7 32bit) and Office Professional Plus 2010, it does work.
    On every system the same document and same pictures are used. Images are JPEG an about 4MB each. 
    On the 64bit systems the file with 2 pictures is about 7MB and on the 32bit system 1MB.
    Can anyone confirm this issue?
    Can this have something to do with the 32/64bit machines and the 32bits office?
    (I did not try 64 bit office and do not have another 32bit system)

    We did some more testing with the following results:
    Word 32bit on Server 2012 R2 64bit: Compression not working
    Word 32bit on Windows 8 64bit: Compression not working
    Word 32bit on Windows 7 32bit: Compession is working !!
    Word 64bit on Windows 8 64bit: Compression not working
    Word 32bit on Server 2008 64bit: Compression is working !!
    All tests are done with Word 2010, inserted the same two pictures in the same document and with the same settings :
    On systems where it does work, with 220ppi compression, the filesize is 1.100KB. With compression OFF, the filesize is 7.152KB.
    On systems where is does not word, the filesize is always 7.152KB for this document. No mather what PPI setting and "Do not compress image file" deselected. 
    As mentioned earlier, after each change in settings we removed and re-added the pictures. 
    Could this be a Windows 8 / Server 2012 problem? 

  • Noncumulative Cube Copy for Inventory IC where compression is not possible

    Dear All
    We have got Month (0RT_C37) and Week (0RT_C36) Inventory Infocubes. Compression has never been done on any of this cube. The data is fine and result is coming correct but output is very slow. We have done the initialization on this cube on mid of 2008. We have to copy the entire cube to a ZCube and do the compression performed on that Zcube. Our system is BW7.3 SP Level11 and we are going to upgrade to 7.4 .  We tried to move the marker values(RECORDTP=1) to the Zcube with DTP setting (Initial Non-cumulative for Non-cumulative values) which is not happening. But other values with movements we are able to move. The only OSS note found to address this issue is1426533 which is not relevant for us. Is there any workaround for the situation where no compression is ever happened on the cube and the compression is impossible due to some issues, hence we want to copy the entire data to another Zcube and perform the compression there.
    Regards
    Reshoi

    Hi Reshoi,
    There is no DSO for 2LIS_03_BF in Business Content as far as I know. It is possible to create a DSO yourself. Please review SAP Note 581778 - ODS capability of extractors from inventory management and the related SAP Notes carefully if you want to go into this direction.
    Please have a look at the document Re-initialization of the Material Stocks/Movements cube (0IC_C03) with 2LIS_03_BF, 2LIS_03_BX and 2LIS_03_UM in BW 7.x for contains a step-by-step instruction and lots of valuable information.
    Re. the downtime, there are ways to minimize it. Please see SAP Note 753654 - How can downtime be reduced for setup table update. You can dramatically reduce the downtime to distinguish between closed and open periods. The closed periods can be updated retrospectively.
    Please refer to document How to Handle Inventory Management Scenarios in BW (NW2004) for an evaluation of different Inventory Management scenarios.
    I also would like to recommend you to review SAP Note 419490 - Non-cumulatives: poor query performance for 5 performance tips.
    Last but not least, you might want to have a look at the following SAP Notes:
    SAP Note 436393 - Performance improvement for filling the setup tables;
    SAP Note 602260 - Procedure for reconstructing data for BW.
    Best regards,
    Sander

  • Oracle automatic statistics optimizer job is not running after full import

    Hi All,
    I did a full import in our QA database, import was successful, however GATHER_STATS_JOB is not running after sep 18 2010 though its enable and scheduled, i did query last_analyzed table to check and its confirmed that it didnt ran after sep18,2010.
    Please refer below for the output
    OWNER JOB_NAME ENABL STATE START_DATE END_DATE LAST_START_DATE NEXT_RUN_D
    SYS GATHER_STATS_JOB TRUE SCHEDULED 18-09-2010 06:00:02
    Oracle defined automatic optimizer statistics collection job
    =======
    SQL> select OWNER,JOB_NAME,STATUS,REQ_START_DATE,
    to_char(ACTUAL_START_DATE, 'dd-mm-yyyy HH24:MI:SS') ACTUAL_START_DATE,RUN_DURATION
    from dba_scheduler_job_run_details where
    job_name='GATHER_STATS_JOB' order by ACTUAL_START_DATE asc; 2 3 4
    OWNER JOB_NAME STATUS REQ_START_DATE ACTUAL_START_DATE
    RUN_DURATION
    SYS GATHER_STATS_JOB SUCCEEDED 16-09-2010 22:00:00
    +000 00:00:22
    SYS GATHER_STATS_JOB SUCCEEDED 17-09-2010 22:00:02
    +000 00:00:18
    SYS GATHER_STATS_JOB SUCCEEDED 18-09-2010 06:00:02
    +000 00:00:26
    What could be the reason for GATHER_STATS_JOB job not running although its set to auto
    SQL> select dbms_stats.get_param('AUTOSTATS_TARGET') from dual;
    DBMS_STATS.GET_PARAM('AUTOSTATS_TARGET')
    AUTO
    Does anybody has this kind of experience, please share
    Apprecitate your responses
    Regards
    srh

    ?So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run, but i see tables are updated still the job is not running. I did >query dba_scheduler_jobs and the state of the job is true and scheduled. Please see my previous post on the output
    Am i missing anything here, do i look for some parameters settings
    So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run,GATHER_STATS_JOB will run and if there are any table in which there's a 10 percent change in data, it will gather statistics on that table. If no table data have changes less than 10 percent, it will not gather statistics.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/stats.htm#i41282
    Hope this helps.
    -Anantha

Maybe you are looking for

  • How do I tell if my i7 MBP is using the Intel HD or Nvidia 330?

    Can someone please tell me where can I identify if my MBP i7 is using the Intel and or the Nvidia? I know that the system is supposedly delegating these actions from one to another, but I am trying to monitor my battery life as it appears to be runni

  • OBIEE 11g Ago Function

    Hi All, I am using ago function in Answers it works fine But when observing the data, data is mismatched at particular Product category, why because two category s (A,B)   has same subcategory name (Basic) CAT       Sub Cat A  ------        Basic A 

  • Importing MS Word docs with embedded images

    When displaying imported documents with images directly embedded in the header as a watermark, SO8 displays only the frame but no image. Saving the document (.doc) without changes & re-opening with word, the same effect is seen in word. I understand

  • Lock screen closing apps - iOS8/iPad Mini

    Since the iOS8 upgrade my iPad mini closes the open app when it auto locks or when I close the cover. How do I fix this undesirable behaviors?

  • Modeler is not starting in tcode RSPLAN

    Dears, Recently we have installed SAP BI 7.0,In configuration I have only performed wizard based configuration. But in configuration wizard In step Import ABAP certificate to Engine,I am getting below error Element 'SAPConfigLib.BI1.Unclassified.uplo