This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes distibuted system, help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "distibuted system, help needed" Watch "distibuted system, help needed" New topic

distibuted system, help needed

Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
We are making a distributed system which has some services. These services are threads which do some specific tasks. The services can be on different machines !
The problem is the garbage collection. Services are taking too much memory so what we want is that they free up memory and system.gc() does not seem to help!
We thought that we would stop the service and restart it,by restarting the jvm itself.
Now the problem is, ones jvm goes down, who will restart it.
suppose machine A has controller thread.
3 services are running on machine B, C and D.
in service thread i call system.exit() in machine B. now jvm is down.
Then how can I use controller thread on machine A to spawn a jvm on machine B ???


Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta

Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
This has nothing to do with EJBs so I am moving this to Java(Intermediate).

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
I agree. Here's the link:
subject: distibuted system, help needed
Similar Threads
java.lang.OutOfMemoryError: PermGen space
Test 252: Mock exam
Detecting Crashes in JBoss 4.0.2
Default Server Restarting...Help needed
http 503 service unavailable error