I am shutting down both JIRA and Confluence daily for the daily backup.
Once the JIRA/Confluence is restarted, its UI (after the user logs in) responds slowly, most likely because the caches are not yet populated.
Is there a way to warm up JIRA/Confluence so that it is as fast as possible even after a new start?
It is because of the caching. The only way to populate the caches is to hit the UI with a browser, which you could script, I think.
Nic:
thank you.
Pre-populating caches via script is the standard in the Apache Httpd world where you typically load all pages in the sitemap.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is the pages are not static, they're generated. So it can't know what to put in the Tomcat cache until the request arrives, that's why there's no pre-set for it.
But yes, a simple hit will cache a whole load of stuff that will get reused.
There is a minor trick - although I've said "hit the GUI", that is really just a url, and you don't actually care what you get back. So, when I've done this in the past, I cheat:
This means your "provoke Jira into starting to build its internal caches" routine can be as simple as
curl https://yourserver/jira/browse/CACHEBUILD-1
I even added it to the "start Jira" script I was using, albeit with a little more around it to give JIra a while to start. Gave it a 30 second sleep and then start repeating the call until the return result had some text that I knew was on the CACHEBUILD-1 issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.