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 7756205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:45:45+00:00 2026-06-01T12:45:45+00:00

I have a Java application that needs to collect and report a large number

  • 0

I have a Java application that needs to collect and report a large number of metrics/operational measurements/statistics (different words for different people – I’ll just use metrics) about various entities. Metrics can be one of:

  1. Some measured numerical value at a particular point in time (number of users currently logged onto the system, % utilization of some resource)
  2. Some measured numerical value over a given time interval (number of messages transmitted in the last 5mins)
  3. Some enumeration value at a particular point in time (Health status of some entity is ONLINE/WARNING/FAILED/OFFLINE)

‘Entities’ can be physical devices (a computer, a switch, a modem) but are most often logical entities (Communication channel 4567, User 123456, interface to service A). Additionally, some of these logical entities are static in that they are known ahead of time and don’t change during the life of the application, and others may be transient (communcation channel 4567 may only exist for some time, and then is deleted).

I’m looking for libraries to help solve 2 problems:

  1. Make it easier to collect and store these bits of information on the server.
  2. Present the data to a user in a useful fashion.

Note/Requirements:

  1. The server application producing the data is basically a Java process running as a daemon (ie not a webapp)
  2. There will be 2 different types of clients.
    1. One is a Java Swing desktop application where most of the ‘heavy’ use will be. Rich live charting and historical querying abilities are important here.
    2. The other is a web UI. My requirements are not 100% clear here yet, but the needs of this client will be considerably lighter than the swing client. Open standards are needed here (AJAX/HTML not Flash)
  3. Can be deployed embedded in proprietary software (ie, no GPL License). Commercial or free.

In the past, my company has attempted a couple of ‘home-grown’ solutions for this need. Basically the data is shoved into a database in some inconsistent fashion, and the client pulls the data out and is able to chart a single value over a fixed period of time using either home grown or 3rd party charting packages. Frankly, all of our solutions have sucked. Some of the problems I hope a 3rd party solution could fix would be:

  1. Encapsulate the code used to update/record the metric so that it doesn’t polute the class that is actually measuring the value.
  2. Help manage the naming/identifying of the metrics. There can easily be 1000s of them; coming up with some kind of naming scheme myself to ensure uniqueness is a PITA.
  3. Deal with historical data nicely. Being able to configure how long data is kept and either archiving or purging old records.
  4. On the client side, built-in charting and querying ability, with the ability to transform some of the raw data from the database before being presented to the user.

Sorry for the long description. Thanks for your help.

  • 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. Editorial Team
    Editorial Team
    2026-06-01T12:45:47+00:00Added an answer on June 1, 2026 at 12:45 pm

    I can recommend this Java library by Yammer: https://github.com/dropwizard/metrics
    It offers a nice API to have counters, timings, histograms etc.
    And it can automatically collect interesting data from servlets by instrumenting them and from the JVM (memory etc).

    We store the data then in Graphite: http://graphite.wikidot.com/

    Graphite stores the data in a fixed sized database similar to RRD, and can generate charts and dashboards.

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

Sidebar

Related Questions

I have a Java application that needs to display large amounts of data (on
We have a Java application that needs to be brought to the foreground when
I am writing a Java Swing application that needs to have a window receive
I have a java application that needs to connect to a server. Its rather
I have a classic ASP/VBScript application that needs to call methods in a Java
We have a small java application running on windows that needs to be able
I have an application in java that uses two different threads.And for sharing data
I have a java application that needs to display currency symbols. I'm running on
I have a Java application that runs on Weblogic. The application needs to access
We have a Java EE application running on Glassfish 3.1 that needs to accept

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.