First time strapi is not loading

System Information
  • Strapi Version: 4.15
  • Operating System: ubuntu
  • Database: msql
  • Node Version: 12.22
  • NPM Version: 8.5.3
  • Yarn Version:

I have deployed the strapi into the remote server. Everything works fine. but if the strapi server is idle for 10 or more mins the strapi is not lot loading at the first time. this causes my APIs to fail. its stuck in http://:1337/admin/init call