aws内存使用率高

发布于 2024-11-18 05:24:32 字数 593 浏览 2 评论 0原文

最近我将我的实例配置到 EC2 中的微环境中,在 Windows 中使用 glassfish 和 mysql。 我部署了我的战争,并且能够通过 http 访问我的网站。

我更改了我的应用程序并重新部署了战争,它也起作用了。

当我准备第四次或第五次重新部署战争时,应用程序已部署,我在日志文件中看到了该消息。但我无法通过 http 访问该网站。

然后我尝试了命令“asadmin list-applications”,并收到以下消息。

Error occurred during initialization of VM 
Could not reserve enough space for object heap

之后我无法通过 RDP 连接到我的实例,我必须重新启动,之后我才能再次访问它。我再次启动服务器(glassfish mysql),但没有运气。

I noticed that the memory usage is around 90% or more. CPU isage is low.

现在我无法通过 http 访问我的网站。我该怎么办?

提前致谢 !

Recently I configured my instance into a micro environment in EC2 with glassfish and mysql in windows..
I deployed my war and i was able to access my site through http.

I changed my application and redeployed the war and it also worked.

When I was about to redeploy the war for 4th or 5th time, the application got deployed, I saw the message in the log file. But I was unable to access the site through http.

Then I tried the command "asadmin list-applications" and I got the following message.

Error occurred during initialization of VM 
Could not reserve enough space for object heap

After that I was not able to connect to my instance through RDP and I had to reboot, I was able to access it again after that. I started the servers again (glassfish mysql), but no luck.

I noticed that the memory usage is around 90% or more. CPU isage is low.

now I can not access my site through http. what shall i do ?

Thanks in advance !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一生独一 2024-11-25 05:24:32

老实说,这里有几个问题对您不利:

1) Windows 需要比 Ubuntu 更多的 RAM 才能以最低的体面水平运行。
2) GlassFish 的占用空间比 Tomcat 或 Jetty 大得多。

您需要 Windows 有什么特殊原因吗?比如您的服务器是否有特定的需要运行一些可执行文件来处理文件或在 JVM 之外进行类似的操作?大多数人都同意 Linux(Ubuntu 或其他)将在性能和稳定性方面为您提供更好的结果,以便在任何环境中运行 GlassFish 等应用程序服务器。

Honestly, there are a couple issues working against you here:

1) Windows requires FAR more RAM than Ubuntu to run at a minimum decent level.
2) GlassFish has a much larger footprint than Tomcat or Jetty.

Is there any particular reason you need Windows? Like is there a specific need that your server run some executables for file processing or something like that outside the JVM? Most would agree that Linux (Ubuntu or other) will give you much better results in performance and stability to run an App Server like GlassFish in any environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文