java - Ant signjar task takes too long to timestamp -


I am creating a project using Hudson. I have some jar files that I want to sign with Timestamp using the Ant Signer function. It works like a magic when there is no timestamp - it takes about 2-3 seconds for a file. The problem occurs when I add the 'tsaurl' attribute for SignJar function. Then the timestamp takes a few minutes for a file. I tried to use different timestamp servers and did not help. Does anyone know why this is taking so much time? First and foremost, is there any way to fix this problem?

Taking too long (at least Linux) was drying the kernel entropy pool. At this point, the process blocks until more entropy arrives. This allows you to see the symptoms which are sitting on the Jersey process, which is not sitting there, the CPU does not take time but much more.

Click at some point (1.5 to 1.6AAAIIK), Java / dev / urandom to / dev / random . Actually entropy is actually a rare resource on modern computers - many RAM disk activity decreases, smart programs that cache, reduce network activity, I am told that on virtual machines (as many build servers are running ) That rates of entropy collection may also be lower.

You can either reconfigure Java using / dev / urandom (if you are not mad)

/ li>

  • Deploy a means of extra entropy injection in / dev / random

    I went to the option: I selected my distro ( Ubuntu installed the randomsound package for this uses Mike's spec for your Voronev and runs it on drying in AntCOf to / dev / random Is. Its main downside is that it blocks the mic for other uses. There are other ways to get additional entropy, such as copying discs to / dev / null , or updating packages (lots of disk and network traffic). You want to kit one or more of your servers with hardware RNG and can install something that can provide entropy-of-one service for others or even a USB soundcard and Randomond will work (lots of white tones in the server room ...)

    For option A, you can set the property

      -Djava.security .egd = file: / dev /./ urandom   

    (Keep extra point in mind - to do this You have to solve the "smart" bit of D, which assumes that you want / dev / random even if you do not say: see :)

  • Comments

    Popular posts from this blog

    Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

    multithreading - PhantomJS-Node in a for Loop -

    c++ - MATLAB .m file to .mex file using Matlab Compiler -