Java Reference
In-Depth Information
you query the database and determine that the load on the database is too
great, you can reduce the number of active connections available in a con-
nection pool. You can also reduce the number of threads that are available
to service requests from the outside world. Upon further queries, these
resources can be readjusted as the load decreases on database resources.
Collecting application statistics— In addition to configuring your bicycle shop
applications, you will also want to gather important statistics on transac-
tions, inquiries, and so forth over time. For instance, you would like to see
a comparison of the number of visits to the catalog verses the number of
purchases made from the site. You would also like to collect the number of
attempts to break into the system by hostile attackers. In fact, you properly
instrumented the application to push this information into the manage-
ment system.
Debugging options— Don't overlook the amount of information being stored
for analysis. Fortunately, you had the foresight to realize that you will want
to be able to turn logging verbosity up or down when you debug possible
problems with the bicycle shop application. By exposing management
API s, you allow yourself to turn on debugging and change the logging out-
put to the console so that you can observe the functions of the application
without having to shut it down to make changes.
Monitoring server performance— Your web application needs to be monitored
for health and overall load. If the load is too great on the first server, you
want to be able to shift some load to the backup server. To avoid cases of
failure, you need to be notified about critical events via a pager or email.
Providing this solution
The monitoring and management framework described in this section covers
the major areas of many of today's application management needs. However,
achieving such a framework can be costly and difficult. In the end, application
administrators could be left with many different management consoles and
interfaces to all the different services and hardware.
1.2 Providing a Java solution:
J ava Management Extensions
In the previous section, we described a monitoring and management environ-
ment that covers the needs of enterprise applications. However, we also noted
Search WWH ::




Custom Search