应用程序预热不起作用
我们有一个应用程序,在启动时,它会从 csv 填充它的缓存。这大约需要 1 分钟。我们认为对它进行预热可以解决问题,但似乎指定的请求没有被执行。在本地点击应用程序需要一分钟,然后就可以立即完成。我尝试了几个请求,相对的(相对于本地主机和应用程序根目录)和绝对的请求,但都无济于事。停止/启动相应的应用程序池后,它不起作用,也不会回收(如果应用程序预热有差异),也不会重建应用程序。
有人有我可以尝试的建议吗?
编辑:事件查看器没有任何与应用程序预热相关的内容(据我所知)并且不会调用 Application_start()
We have an application which, on startup, populates it's cache from an csv. This takes about 1 minute. We thought putting an application warm up on it would eliviate the problem, but it seems like the requests specified are not being executed. Hitting the application locally will take a minute and then be instant thereafter. I tried several requests, relative (to localhost and application root) and absolute ones, to no avail. It does not work after stop/starting the corresponding app pool, nor recyclying (if there is a difference to application warm up), nor rebuilding the application.
Anyone have suggestions I could try?
Edit: The event viewer does not have anything related to the application warm up (as far as I can tell) and Application_start() is not called
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在日志中没有看到预热请求,也许您没有在应用程序设置中启用它们?您使用什么语言? (默认情况下,所有 Java 应用程序都会启用预热请求。)
我在日志中看到 /_ah/warmup 的条目。
if you're not seeing warmup requests in your logs perhaps you don't have them enabled in your application settings? What language are you using? (Warmup requests are enabled by default for all Java applications.)
I see entries for /_ah/warmup in my logs.