What problems can arise during the life cycle of a Java application server?

In fact, I am developing software on top of a Java application server, which should be very accessible. Therefore, I also plan to include a monitoring system that will detect errors on the application server. I will probably use JMX for this. So what can happen during the life cycle of a Java application server? What can I control?

  • If an OutOfMemoryError event occurred?
  • If there is enough memory on the application server?

what else???

thanks for answers

+4
source share
1 answer

I assume that you are most interested in errors related to the application server, not the application.

AppServer related errors may be under the following cat

  • Memory. These errors, as you indicated, are OutOFMemory, PermGen, etc. You can easily control them using the JMX console or use the JMX API.
  • Network. These errors occur due to firewalls or unreliable network or network congestion. Depending on which you may need a different set of tools for diagnosing problems. The results of network problems usually result in unavailability of the service, performance problems, HA failure, cluster breakdown, etc.
  • Security. These are not necessarily errors, but what you need to monitor to make sure that there is no violation.
  • Performance - Performance is a huge topic, but in general, you need to control resources that are critical to performance, whether it is connection pools or thread pools or memory pools, as they will determine how your application will work.
  • Resource limits. Here you need to better understand your application in order to configure enough resources to process the request. Otherwise, you will see erros. For example: if you expect 100 concurrent users, you need to have at least 100 threads to handle all these requests, otherwise you will start dropping the requests.

I was very general in identifying potential errors on your application server. Depending on your application server, there may be more. In addition, depending on your choice, your monitoring tools may vary.

I hope for this help.

Good luck

+4
source

Source: https://habr.com/ru/post/1402343/


All Articles