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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:34:18+00:00 2026-06-09T05:34:18+00:00

We have seperate Java instances program processing raw weblog like that: jvm instance 1

  • 0

We have seperate Java instances program processing raw weblog like that:

jvm instance 1 read fileA --> process
jvm instance 2 read fileA ---> process
jvm instance 3 read fileA ---> process
....

I think when the number of jvm instance increase , the number of disk IO process ‘ll increase. And there comes a time this solution is can not work propertly.

So can anyone tell me another solution for reduce the disk IO.

I think an ideal is using a JMS server (like Apache ActiveMQ) to read file an store in queue and process.

have any problem if i use JMS ???

Please kindly help me.

  • 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-09T05:34:20+00:00Added an answer on June 9, 2026 at 5:34 am

    Event driven solution is certainly a good option here, so JMS would probably be a good solution.

    But you should keep in mind that if your consumers won’t keep up with producer and you’ll be using persistent delivery, messages will be stored on your hard drive and this will cause disk IO. But I think this won’t be a problem, as you can always increase number of concurrent consumers, or even use cluster (which is really easy to configure with ActiveMQ for example) to keep up with load.

    To summarize, I think that JMS would be a great solution to your problem, as you won’t need to actively poll filesystem for changes and makes it really easy to scale your processing application.

    If you are interested in topic of integration you might visit enterprise integration site and read a extremely good book by Gregor Hohpe and Bobby Woolf on this topic. You can find link to it at the mentioned site. In it you’ll find all pros and conses of both approaches as well as familiarize yourself with others available. Anyways messaging is definitely great way to go.

    You might consider using camel framework as an implementation of mentioned there patterns.

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

Sidebar

Related Questions

First I would like to say that I have only worked with java for
Right now, I have my code looking like this: SqlTables.java: // Separate file public
I am developing two java programs that run in separate VM's that have a
I have a UINavigationController and I have seperate UIViews that I switch between using
I have a list of class items List<MyClass> I have a seperate object that
I have 2 functions on a seperate page that I am including of the
Do you agree that the designers of Java class java.io.IOException should have made it
I have an SNMP trap application in Java that aims at listening to an
I have a Java program which runs as 3 separate processes on the same
Basically, I have an int value, x, that is an instance variable of a

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.