Performance drop after 5 days running web application, how to spot the bottleneck?

后端 未结 8 2141
滥情空心
滥情空心 2021-02-14 12:46

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

  • Java
  • Mysql
  • Scala
  • Play Framework
  • DavMail integration (for cale
相关标签:
8条回答
  • 2021-02-14 13:19

    `visualvm˙ is also a great tool for such purposes, you can connect to a remote JVM as well and see what's inside.

    I suggest you doing this:

    • take a snapshot of the application running since few hours and since 5 days
    • compare thread counts
    • compare object counts, search for increasing numbers
    • see if your program spends more time in particular methods on the 5th day than on the 1str one
    • check for disk space, maybe you are running out of it
    0 讨论(0)
  • 2021-02-14 13:24

    To eliminate your database you can monitor slow queries (and/or queries that are not using an index) using the slow query log see: http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html

    I would hazard a guess that you have a missing index, and it has only become apparent as your data volumes have increased.

    0 讨论(0)
提交回复
热议问题