• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reducing load on server

 
Vilas Lawande
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
I have to reduce load on server.
As I am retrieving big amount of data from database.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of load? CPU? Network? Memory? All of the above?

Without more details, all we can tell you is to get less data at a time.
 
ujjwal soni
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

To reduce database load, you can simply create a table in your database as follows :

ServerID ServerAddress ServerStatus

1 192.168.1.6 Running or Idle


Now, check for the server status in this table, if the status is running then fetch the data, if its idle then wait for the status to be running.

(The application will modify the status in this table)

Also, you can keep a job scheduler in your database to look for the server status value and time out after some period to change the status.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand, how will this help?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic