java - AWS 免费套餐使用

标签 java tomcat amazon-web-services jvm

我使用的是付费实例 AWS t2.medium 实例。 现在我在一个实例中拥有所有三个服务器:

SQL
Tomcat
Apache

我正在使用 4 GB Ram 实例。 现在我想使用具有 1 GB Ram 的 AWS 免费套餐实例。 我将为我的每台服务器提供一个单独的免费层实例。 我想检查我的免费层实例是否能够单独处理我的 Tomcat。

tomcat 内存使用数据。 :

VIRT = 3620m
RES = 507m
SHR = 11m
Mem = 12.8%

那么我应该关注哪种利用率。 tomcat 的实际使用是驻留内存,还是由于虚拟利用率超过 1 GB,我将无法在免费层实例中使用 tomcat?

最佳答案

AWS free usage tier对于 EC2 提供:

  • 750 hours of Amazon EC2 Linux t2.micro instance usage (1 GiB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of Amazon EC2 Microsoft Windows Server† t2.micro instance usage (1 GiB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month
  • 750 hours of an Elastic Load Balancer plus 15 GB data processing*
  • 30 GB of Amazon Elastic Block Storage in any combination of General Purpose (SSD) or Magnetic, plus 2 million I/Os (with EBS Magnetic) and 1 GB of snapshot storage*

* These free tier offers are only available to new AWS customers, and are available for 12 months following your AWS sign-up date. When your 12 month free usage term expires or if your application use exceeds the tiers, you simply pay standard, pay-as-you-go service rates (see each service page for full pricing details).

因此,您只能免费连续运行 1 个 Linux 和 1 个 Windows 服务器,并且只能在服务的前 12 个月内运行。

因此,“我的每个服务器都有一个单独的免费层级实例”是不可能的。

至于要运行什么...这是满足您的应用程序和用户的需求与降低成本之间的权衡。

一些节省成本的选项:

  • Auto Scaling 可用于在需要时扩展基础架构,在不需要时缩减基础架构。
  • Spot pricing 可用于获得高达 90% 的实例折扣,但如果现货价格高于您的出价,它们将面临被移除的风险。

关于java - AWS 免费套餐使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31560365/

相关文章:

java - 如何让 JUnit 4.11 识别默认包中的类?

java - 从文件中分割字符串换行符

java - 处理大型 Java 项目中内存泄漏的最佳实践?

ios - 在 Amazon Web Service SS3 存储桶中为 iOS 应用程序 Adhoc 配置 HTTPS 访问

java - 约束验证

javascript - 无法加载 ext-all.js 文件

java - 停止提示密码过期 Apache Tomcat

python - Django S3 Direct 上的 CORS 错误

amazon-web-services - 放大配置不显示任何内容

java - 如何在 Java 中的 session 对象中强制执行每条 5 分钟的发布规则?