Very slow loading of keystore file (javax.net.ssl.keyStore property)How do I create a Java string from the contents of a file?Efficiency of Java “Double Brace Initialization”?Sort ArrayList of custom Objects by propertyHow do I create a file and write to it in Java?How to avoid Java code in JSP files?How to import a .cer certificate into a java keystore?Failed to load the JNI shared Library (JDK)How to check certificate name and alias in keystore files?What does “Could not find or load main class” mean?Load jboss-ejb-client.properties from local file system and set IntialContext for jndi lookup

How to improve the size of cells in this table?

Why did the "Orks" never develop better firearms than Firelances and Handcannons?

Will electrically joined dipoles of different lengths, at right angles, behave as a multiband antenna?

Platform Event Design when Subscribers are Apex Triggers

What/Where usage English vs Japanese

Why did moving the mouse cursor cause Windows 95 to run more quickly?

How to calculate a conditional PDF in mathematica?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

Does Evolution Sage proliferate Blast Zone when played?

Was Wolfgang Unzicker the last Amateur GM?

Show that there are infinitely more problems than we will ever be able to compute

Should you add specific garden-fresh herbs to a stew at the beginning or the end?

Do intermediate subdomains need to exist?

Why does the Batman "crack his knuckles" in "Batman: Arkham Origins"?

What does the ash content of broken wheat really mean?

Park the computer

Two queries on triangles, the sides of which have rational lengths

What's the big deal about the Nazgûl losing their horses?

How can solar sailed ships be protected from space debris?

Term for a character that only exists to be talked to

What is the difference between a historical drama and a period drama?

What can a novel do that film and TV cannot?

Should I increase my 401k contributions, or increase my mortgage payments

Isn't "Dave's protocol" good if only the database, and not the code, is leaked?



Very slow loading of keystore file (javax.net.ssl.keyStore property)


How do I create a Java string from the contents of a file?Efficiency of Java “Double Brace Initialization”?Sort ArrayList of custom Objects by propertyHow do I create a file and write to it in Java?How to avoid Java code in JSP files?How to import a .cer certificate into a java keystore?Failed to load the JNI shared Library (JDK)How to check certificate name and alias in keystore files?What does “Could not find or load main class” mean?Load jboss-ejb-client.properties from local file system and set IntialContext for jndi lookup






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















The loading of keystore file (set by "javax.net.ssl.keyStore" property) is very slow. It takes around 8 seconds to load a custom keystore file.



Considering a client app in Java that has its total load time affected, is there any workaround to speedup this?



EDIT - Environment characteristics:



  • AIX 7.1 (there is not virus scanner)

  • Java 8

  • JFS2 (Filesystem)

  • The keystore has around 160 entries









share|improve this question



















  • 2





    Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

    – Robert
    Mar 25 at 19:11











  • @Robert I've edited the question putting there more info about the environment.

    – Luciano
    Mar 25 at 19:22











  • I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

    – Robert
    Mar 25 at 19:27












  • @Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

    – Luciano
    Mar 25 at 20:00











  • @Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

    – Luciano
    Mar 25 at 20:06

















1















The loading of keystore file (set by "javax.net.ssl.keyStore" property) is very slow. It takes around 8 seconds to load a custom keystore file.



Considering a client app in Java that has its total load time affected, is there any workaround to speedup this?



EDIT - Environment characteristics:



  • AIX 7.1 (there is not virus scanner)

  • Java 8

  • JFS2 (Filesystem)

  • The keystore has around 160 entries









share|improve this question



















  • 2





    Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

    – Robert
    Mar 25 at 19:11











  • @Robert I've edited the question putting there more info about the environment.

    – Luciano
    Mar 25 at 19:22











  • I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

    – Robert
    Mar 25 at 19:27












  • @Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

    – Luciano
    Mar 25 at 20:00











  • @Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

    – Luciano
    Mar 25 at 20:06













1












1








1








The loading of keystore file (set by "javax.net.ssl.keyStore" property) is very slow. It takes around 8 seconds to load a custom keystore file.



Considering a client app in Java that has its total load time affected, is there any workaround to speedup this?



EDIT - Environment characteristics:



  • AIX 7.1 (there is not virus scanner)

  • Java 8

  • JFS2 (Filesystem)

  • The keystore has around 160 entries









share|improve this question
















The loading of keystore file (set by "javax.net.ssl.keyStore" property) is very slow. It takes around 8 seconds to load a custom keystore file.



Considering a client app in Java that has its total load time affected, is there any workaround to speedup this?



EDIT - Environment characteristics:



  • AIX 7.1 (there is not virus scanner)

  • Java 8

  • JFS2 (Filesystem)

  • The keystore has around 160 entries






java






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 13:39







Luciano

















asked Mar 25 at 18:57









LucianoLuciano

1,2671 gold badge22 silver badges38 bronze badges




1,2671 gold badge22 silver badges38 bronze badges







  • 2





    Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

    – Robert
    Mar 25 at 19:11











  • @Robert I've edited the question putting there more info about the environment.

    – Luciano
    Mar 25 at 19:22











  • I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

    – Robert
    Mar 25 at 19:27












  • @Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

    – Luciano
    Mar 25 at 20:00











  • @Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

    – Luciano
    Mar 25 at 20:06












  • 2





    Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

    – Robert
    Mar 25 at 19:11











  • @Robert I've edited the question putting there more info about the environment.

    – Luciano
    Mar 25 at 19:22











  • I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

    – Robert
    Mar 25 at 19:27












  • @Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

    – Luciano
    Mar 25 at 20:00











  • @Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

    – Luciano
    Mar 25 at 20:06







2




2





Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

– Robert
Mar 25 at 19:11





Usually it does not take that long, something is special with the file or your system. How many entries are in your custom keystore file? Is there a virus scanner or something similar that could delay the file access?

– Robert
Mar 25 at 19:11













@Robert I've edited the question putting there more info about the environment.

– Luciano
Mar 25 at 19:22





@Robert I've edited the question putting there more info about the environment.

– Luciano
Mar 25 at 19:22













I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

– Robert
Mar 25 at 19:27






I would try to load the keystore on a regular PC using a common Java version. If this works the problem is most likely located in the Java runtime you use (what Java is used on an AIX system?). If this is the case contact you Java vendor for support.

– Robert
Mar 25 at 19:27














@Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

– Luciano
Mar 25 at 20:00





@Robert: We have already tried to do that in a clean (lightweight) Linux environment running Java 10 and it's still slow.

– Luciano
Mar 25 at 20:00













@Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

– Luciano
Mar 25 at 20:06





@Robert: It seems that Java "keystore engine" is checking every CA certificate, inclusive their signatures. We can see that procedure happening slowly through the debug output of Java VM, it really takes a lot of time. I wonder if there isn't a way to turn off that checking and just trust on them, since it's an already trusted keystore and protected by a password.

– Luciano
Mar 25 at 20:06












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344749%2fvery-slow-loading-of-keystore-file-javax-net-ssl-keystore-property%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344749%2fvery-slow-loading-of-keystore-file-javax-net-ssl-keystore-property%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript