Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:03:10+00:00 2026-05-11T09:03:10+00:00

We would like to monitor HTTP error codes (e.g. per minute) for later graphing.

  • 0

We would like to monitor HTTP error codes (e.g. per minute) for later graphing.

How can we expose HTTP return (error) codes with JMX?

Are there code samples or have you done something like that? Is this contained in Tomcat per default?

About the implementation: Should the code increase a JMX counter and set it to 0 every minute? Thanks for ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:03:10+00:00Added an answer on May 11, 2026 at 9:03 am

    If you’re looking to derive rates of errors and graph those, you’re better off having the server return a total count of errors. That way the client can then derive a rate independent of the server (e.g. per minute/per hour/per day).

    More importantly, you won’t miss any temporary surges in the data. If the server is deriving a rate and your client process doesn’t pick it up (if it’s not monitoring at that particular time, say), then it’s lost forever. Whereas maintaining a count will record the total number of errors.

    SNMP agents (and similar) take this approach, allowing clients to monitor and derive values as they see fit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What would be the best way to monitor services like HTTP/FTP/IMAP/POP3/SMTP for a few
I have a few JAVA application that I monitor using JMX. I would like
I would like to monitor web applications running under tomcat using JMX. I don't
I would like to monitor remote glassfish server. I have enabled JMX Connection in
I would like to be able to see and monitor my internet data (http/emule/email)
I would like to monitor a log file that is being written to by
I would like to monitor the following system information in Java: Current CPU usage**
I would like to monitor my program which is running on the web server.
I would like to be able to monitor my major system health indicators from
I would like to ask couple of Questions regarding the use of Monitor Class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.