简体   繁体   中英

Viewing running java process on remote server

This question is rather hard to ask as I do not know what technology or processes to even leverage to make this happen. If it even is possible.

  1. I have two computers. Master A and Server B.

  2. I want Master A to start a Java process on Server B

  3. I want to be able to "view" the running java processes somehow and be able to interact with this. This means that I want to have some sort of connection to the running java processes on Server B from Master A.

Perhaps this is possible by starting up a container that runs this specific client and allows a remote connecton to it from the master computer?

Is this possible? Thanks!

How about using SSH?

https://en.wikipedia.org/wiki/Secure_Shell

Once configured, you can connect from your Master via:

$ ssh user@SLAVE_IP

And then you are logged in the slave computer from the Master one. Once logged in, you can do:

$ cd FOLDER/WHERE/THE/JAR/IS/PLACED
$ java -jar MyJar.jar -DMyProperty=Value...

Is this what you were looking for?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM