This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

distibuted system, help needed

 
Kalpesh Soni
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???


:roll:
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with EJBs so I am moving this to Java(Intermediate).
 
Hey cool! They got a blimp! But I have a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!