您如何解决应用程序初始加载时间过长的问题 [英] How do you work around the issue of long load time for initial load of an application
问题描述
当没有用户打开应用程序中的任何页面时,它会在一段时间后从服务器卸载应用程序.
When no users have the any pages in an application open, it will unload the application from the server after a while.
当用户在应用卸载后加载页面时,加载可能需要很长时间.
When a user loads a page in the app after it's been unloaded, it can take quite a while to load.
解决此问题的最简单方法是让代理每天早上在任何用户在线之前轮询应用程序中的页面.有没有更好的方法来做到这一点?
The simplest way to work around the issue is to have an agent that polls a page in the application each morning before any users are online. Is there a better way to do this?
推荐答案
从 Notes 和 Domino 8.5.3 开始,您可以使用以下 ini 参数:
Starting with Notes and Domino 8.5.3, you can use the following ini parameters:
XPagesPreload=1
在服务器启动时预加载 XPage Java 代码,以便当用户第一次访问 xpages 应用程序时它们已经在内存中.
Preloads XPages java code at server startup so that they are already in memory when a user access an xpages app for the first time.
XPagesPreloadDB=servername!!path/mydb.nsf/myxpage.xsp,servername!!path/anotherdb.nsf
为特定数据库中的特定 XPage 或数据库中的所有 XPage 预加载 XPage 引擎.
Preloads XPages engine for a specific XPage in a specific database or for all XPages in a database.
这两个参数都可以在 Domino 服务器和 Notes 客户端上使用.
Both parameters can be used on the Domino Server and on the Notes client.
据我所知,即使没有用户访问该应用程序,它也会保留在内存中.
As far as I know, the application will be kept in memory even if no user doe access it.
这篇关于您如何解决应用程序初始加载时间过长的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!