cancel
Showing results for 
Search instead for 
Did you mean: 

How to start JVMMON in Cloud Foundry over SSH from VPN network?

boolan79
Explorer
0 Kudos

Hi, I am trying to create a SSH connection from Eclipse to my app deployed in the Cloud Foundry.

The app is ssh-enabled.

I am trying to start the JVMMON over SSH using the following command:

cf ssh <app_name> -c "app/META-INF/.sap_java_buildpack/sapjvm/bin/jvmmon"

If my laptop is in my company's VPN network, I am not able to connect and get the following error:

"Error opening SSH connection: dial tcp 3.124.222.77:2222: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."

If I disconnect from the VPN, then I am able to connect to the JVMMON and start remote debugging.

But I need to be in the VPN, because otherwise I am not able to connect to my on-premise system using Cloud Connector.

Any hints on how to start the remote debugging in Cloud Foundry over SSH while being at the same time in my company's VPN?

Accepted Solutions (0)

Answers (1)

Answers (1)

asaf_magen1
Explorer
0 Kudos
im using F5 VPN and it works fine.

cf <app_name> -c "export JAVA_PID=$(ps -C java -o pid=) && app/META-INF/.sap_java_buildpack/sapjvm/bin/jvmmon -pid $JAVA_PID -c \"stop debug\"" && ^
cf ssh <app_name> -c "export JAVA_PID=$(ps -C java -o pid=) && app/META-INF/.sap_java_buildpack/sapjvm/bin/jvmmon -pid $JAVA_PID -c \"start debug\"" && ^
cf ssh <app_name> -c "export JAVA_PID=$(ps -C java -o pid=) && app/META-INF/.sap_java_buildpack/sapjvm/bin/jvmmon -pid $JAVA_PID -c \"print debug\"" && ^
cf ssh <app_name>  -N -T -L 8000:127.0.0.1:8000