如何调整云实例的大小?
How to right size cloud instance?
我有一个 Spring MVC Web 应用程序,我想在 cloud.It 中部署它可以是 AWS、Azure、Google 云。我必须找出需要多少 RAM 和硬盘。目前我已经在 tomcat 的本地机器上部署了应用程序。现在我转到 localhost:8080 并单击服务器状态按钮。在 OS header 下它告诉我:
Physical memory: 3989.36 MB Available memory: 2188.51 MB Total page
file: 7976.92 MB Free page file: 5233.52 MB Memory load: 45
在 JVM 下 header 它告诉我:
Free memory: 32.96 MB Total memory: 64.00 MB Max memory: 998.00 MB
如何从这些数据推断内存和硬盘大小?必须有一些经验公式,比如 OS + factor*jvm_size 的内存 & 我假设 jvm 大小 = 应用程序的内存大小。在部署到云时,我们不会部署所有这些示例应用程序。
您本地计算机的这些统计信息处于空闲状态并且没有任何流量,因此它肯定会占用和消耗更少的资源。
您不能根据本地计算机内存统计信息来决定云计算机的大小,但这几乎没有帮助,例如可以消耗应用程序的最小资源。
所以更好的方法是进行一些负载测试,如果你期望大量的用户然后在负载测试的基础上进行相应的设计。
最简单的方法是阅读已部署应用程序的要求或推荐系统。
内存
256 MB of RAM minimum, 512 MB or more is recommended. Each user
session requires approximately 5 MB of memory.
硬盘Space
About 100 MB free storage space for the installed product (this does
not include WebLogic Server or Apache Tomcat storage space). Refer to
the database installation instructions for recommendations on database
storage allocation.
因此,如果您想要进行暂存或开发设计,那么您可以选择这两个 AWS 实例之一。
t2.micro
1VCPU 1GB RAM
t2.small
1vCPU 2GB RAM
我有一个 Spring MVC Web 应用程序,我想在 cloud.It 中部署它可以是 AWS、Azure、Google 云。我必须找出需要多少 RAM 和硬盘。目前我已经在 tomcat 的本地机器上部署了应用程序。现在我转到 localhost:8080 并单击服务器状态按钮。在 OS header 下它告诉我:
Physical memory: 3989.36 MB Available memory: 2188.51 MB Total page file: 7976.92 MB Free page file: 5233.52 MB Memory load: 45
在 JVM 下 header 它告诉我:
Free memory: 32.96 MB Total memory: 64.00 MB Max memory: 998.00 MB
如何从这些数据推断内存和硬盘大小?必须有一些经验公式,比如 OS + factor*jvm_size 的内存 & 我假设 jvm 大小 = 应用程序的内存大小。在部署到云时,我们不会部署所有这些示例应用程序。
您本地计算机的这些统计信息处于空闲状态并且没有任何流量,因此它肯定会占用和消耗更少的资源。
您不能根据本地计算机内存统计信息来决定云计算机的大小,但这几乎没有帮助,例如可以消耗应用程序的最小资源。
所以更好的方法是进行一些负载测试,如果你期望大量的用户然后在负载测试的基础上进行相应的设计。
最简单的方法是阅读已部署应用程序的要求或推荐系统。
内存
256 MB of RAM minimum, 512 MB or more is recommended. Each user session requires approximately 5 MB of memory.
硬盘Space
About 100 MB free storage space for the installed product (this does not include WebLogic Server or Apache Tomcat storage space). Refer to the database installation instructions for recommendations on database storage allocation.
因此,如果您想要进行暂存或开发设计,那么您可以选择这两个 AWS 实例之一。
t2.micro
1VCPU 1GB RAM
t2.small
1vCPU 2GB RAM