process - How to migrate a running Java program from one machine to another? -
this question has answer here:
- dumping java program file , restarting it 10 answers
say have 1 java program running on machine a, want interrupt it, save context , resume execution on machine b. possible that? how?
no, there's no way "freeze" process , "revive" on separate machine, process might holding sorts of state (open files/sockets etc) cant move it.
if application youre writing better make clusterable , start node on target machine, wait 2 nodes sync , shut fown original node.
if not application youre writing or above much, run application inside vm , use vm's capabilities migrate entire vm running app in (so, use vmotion).
Comments
Post a Comment