0

我在 Tomcat 中运行同一个 webapp 的多个实例。我需要限制

  1. 总带宽

  2. 记忆

  3. 贮存

由tomcat中的每个实例(webapp)使用。有没有办法在tomcat中做到这一点?如果是,如何?

感谢您的答复。

4

1 回答 1

1
  1. Bandwidth - see this SO post. It only allows throttling based on request count (and not bandwidth) but still better than nothing.

  2. I'm afraid this is not possible as you are running multiple webapps under the same JVM. There are some papers elaborating this should be possible if you use OSGi but I don't believe it is anywhere close to production-ready.

  3. You are much better off achieving this using OS disk quotas rather than programmatically.

于 2012-12-06T10:24:42.680 回答