运行Web应用程序运行5天后性能下降,如何发现瓶颈? [英] Performance drop after 5 days running web application, how to spot the bottleneck?

查看:160
本文介绍了运行Web应用程序运行5天后性能下降,如何发现瓶颈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下技术堆栈开发了一个Web应用程序:

I've developed a web application using the following tech stack:


  • Java

  • Mysql

  • Scala

  • Play Framework

  • DavMail集成(用于日历和交换服务器)

  • Javamail

  • Akka演员

  • Java
  • Mysql
  • Scala
  • Play Framework
  • DavMail integration (for calender and exchange server)
  • Javamail
  • Akka actors

在开始的第一天,应用程序运行平稳,没有滞后。但是5天左右后,应用程序变得非常慢!现在我不知道如何描述这个,因为我有很大的依赖性,很难重现这种事情。我已经调查了内存,似乎一切都没问题。

On the first days, the application runs smoothly and without lags. But after 5 days or so, the application gets really slow! And now I have no clue how to profile this, since I have huge dependencies and it's hard to reproduce this kind of thing. I have looked into the memory and it seems that everything its okay.

有关此事的任何指示?

推荐答案

尝试使用 VisualVM - 您可以监控gc行为,内存使用情况,堆,线程,CPU使用等。您可以使用它连接到远程VM。

Try using VisualVM - you can monitor gc behaviour, memory usage, heap, threads, cpu usage etc. You can use it to connect to a remote VM.

这篇关于运行Web应用程序运行5天后性能下降,如何发现瓶颈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆