2

我正在使用一个大型应用程序实例来运行一个基本的 Java Web 应用程序(GWT + Spring)。我的应用程序(报告)中有一个昂贵的操作,需要很长时间才能执行。

我已经尝试在我的本地机器上使用 cloudbees SDK 运行它,它的设置与在云上的设置相似,而且它似乎运行得很好。它运行大约 3-4 分钟。

在云上,它似乎需要更长的时间。问题不在于它需要很长时间。cloudbees 会在 5 分钟后终止会话,并在我的浏览器中显示“无法连接到服务器”错误。请联系您的管理员。一份不需要花很长时间的报告就可以了。我的应用程序有 30 分钟的会话超时,所以这也不是问题。

可能出了什么问题?跟云朵有关系吗?

4

1 回答 1

0

This may be due to proxy buffering of your request through the routing layer (revproxy) - so it most likely isn't a session timeout - but the http connection getting cut.

You can either set proxyBuffering=false via the bees CLI command (eg when you deploy the app) - this will ensure longer running connections can work.

Ideally, however, you could change the app slightly to return to the browser with some token which you can poll with to get completion status, as even with a connection that lasts that long, over the internet it may provide a bad experience vs locally.

于 2012-08-24T17:59:26.923 回答