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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:19:52+00:00 2026-05-30T22:19:52+00:00

I have been working on a project which is about data copy from one

  • 0

I have been working on a project which is about data copy from one db to another. Written in java6. And working on distributed machines. We have 9 server machines. One is the main node which i have my main control module working on which gets copy requests and distributes the job to other 8 machines.

It was started to be coded with JMS to distribute tasks to that 8 machine before.There was an Apache Active MQ server working on another computer. But i saw it was not much appropriate and the machines need to be more tightly coupled as it was causing some code overhead and it was necessary to return a response message for all the messages sent to slave machines. I decided to change the interconnection between main node and other 8 slave machines and coded that with RMI.

I coded an RMI server for slave machines and client for main node machine. Then created threads on main node to trigger distributed-tasks at slave machines.

The thing is performance decreased drastically. Normally i was able to copy about 6GB of data in about 6 mins from one specific db to another. Now it takes more than 1 and a half hour to copy 9GB of data. It used to consume lots of CPU when the task was executing on slave machines. I was observing CPU usage ratio more than 90%. Now it never uses more than 15%.

What i need is to understand what is causing this performance decrease. What should i do ? Should i use a troubleshooting tool ?

Edit————

Ok i create a slave module instance on my laptop only, and sent 16 tasks to work on it and profiled CPU using jvisualvm.The results are in the pic CPU Profiler result.

The control methods in the package (e.g. failTaskIfAbort(), performSanityCheck(), etc) were also present when i was using JMS for machine communication. It makes me think, RMI threads are somehow low priority or something.

I also uploaded the nps file exported from jvisualvm. You can get it here: exported profile result

  • 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-05-30T22:19:53+00:00Added an answer on May 30, 2026 at 10:19 pm

    From the comments,

    I suspect its something unrelated. It appears your bottle neck is how long it takes to get its data from your database. If you are downloading to 8 clients at once, you might only be getting 1/8th of the database’s bandwidth per client. I would see how it performs when you have only one client (i.e. is the CPU utilisation much higher)

    BTW: You may find the data is limited by the network adapter of your server, or the speed it can retrieve data from the database. If its the former, you may have a spare network adapter on your server you can use to increase your bandwidth.

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

Sidebar

Related Questions

I have been working on a web services related project for about the last
I am working on a data warehousing project, and therefore, I have been implementing
I have been working on a project which had been split over several servers
I have been working on a project about sentence similarity. I know it has
I have been working in Java/J2ee projects, in which I follow the Maven structure.
I have been working on a project that has 2 interfaces - windows forms
Situation I have been working on a project lately where the UI development seems
So I have been working on this project for a short while now. I
I have been working on a Java project for a class for a while
I have been working on a C# 4.0 WPF project and need to figure

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.