如何检查Glassfish4服务器是否超载?(How to check Glassfish4 server is overloaded?)

我的java Web应用程序在Glassfish4上运行。 我想显示一个网页有字符串 - 服务器太忙了。 请稍后再试。

哪种解决方案最适合这种情况?

My java web application runs on Glassfish4. I want to show a webpage have the string - Server too busy. Please try again later.

Which solution is the best for this case?

最满意答案

我写了一个Filter类。 在Filter类中,我检查JVM内存状态以重定向服务器忙页面。

I write a Filter class. In Filter class, I check JVM memory status to redirect server busy page.

如何检查Glassfish4服务器是否超载?(How to check Glassfish4 server is overloaded?)

我的java Web应用程序在Glassfish4上运行。 我想显示一个网页有字符串 - 服务器太忙了。 请稍后再试。

哪种解决方案最适合这种情况?

My java web application runs on Glassfish4. I want to show a webpage have the string - Server too busy. Please try again later.

Which solution is the best for this case?

最满意答案

我写了一个Filter类。 在Filter类中,我检查JVM内存状态以重定向服务器忙页面。

I write a Filter class. In Filter class, I check JVM memory status to redirect server busy page.