[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
InterProcess Communication  XML
Forum Index » J2EE Application Development
Author Message
sandeep

Newbie

Joined: 05/17/2006 10:10:19
Messages: 2
Offline

[/b]
i have an apllication with me for exmaple and exe. my system is so busy but i want to any how execute the exe .i am connected to my localnetwork.so i want to know the current running processors in my local network and i need to get the cpu usage information constantly(may be using seperate thread) so after getting that info now i want to transfer my exe to execute on to the system where the cpu usages and resources usages is less. now my exe should execute there and come back to my system with the output.

How is this possible in java?

Can Any body help me out with sample code
[Email] [WWW] [ICQ]
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

In a Java environment there are some similar things but I don't know that they do what you want. For example, Tomcat allows you to cluster several machines and distribute the load using round-robin scheduling.

But what you want to do is somewhat more complex. To get a near realtime load on a machine is very O/S specific - the way you do it in Unix is much different than the way you do it in Windows.

I'm not sure that Java would be your best bet in this case. But I can picture the kind of native (C, C++, etc.) code that you would need to do it. Generally you're going to have an "agent" on each machine that is in your cluster. This agent would be native code and would be able to monitor how busy the machine is and report that back to some sort of central server. The central server, when given a program to run, would pick the machine with the lowest current load and send that machine, via the agent, the code to run.

This is a non-trival thing to do. Several issues come to mind:
  • Each machine in the cluster will likely need to have a very similar configuration. For example, if the program you're running depends on a particular library then all the machines must have the library installed on it.
  • Machine load can change almost instantaneously. The central router may select a machine based on the load that it knows about and right after the job is scheduled to run the load may increase. There isn't a good way around this.
  • There may be security issues that come into play. This ties back to the fact that all machines need to be very similar


Good luck - you've got a good amount of work ahead!

This message was edited 1 time. Last update was at 05/17/2006 12:42:40


Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
sandeep

Newbie

Joined: 05/17/2006 10:10:19
Messages: 2
Offline

Tankq For giving me this Good information.

i Had not expected to get the answer from any one because the posted doubt is little bit tough.


But u r answer made me know a new good concepts

[Email] [WWW] [ICQ]
 
Forum Index » J2EE Application Development
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle