Redmine very slow on first page load after some time of inactivity
As a workaround, I ended up with writing a cron task that keep redmine awake with the curl
command launched every hour. Here is a sample of my crontab:
0 */1 * * * /usr/bin/curl "https://my.redmine.com/login?keep-redmine-awake-cron" >/dev/null 2>&1
- The URL parameter
?keep-redmine-awake-cron
is only here to identify these requests in the web server logs. - The output of the command is ignored with
>/dev/null 2>&1
because I don't want cron to send an email containing this useless output.
Though, I was not able to spot the real cause of those long requests after some inactivity.