We are using the -d extension for running docker in detached mode and -e for passing JAVA_TOOL_OPTIONS as an environment variable to the Java process. Apart from the normal HTTP port, which is 8080, we are also mapping an additional port, 5005, for remote debugging using the -p extension. ![]() Here docker-java-jar is our image name, and latest is its tag. If we were using Java 11, we’d use this command instead: docker run -d -p 8080:8080 -p 5005:5005 -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=n" docker-java-jar:latest Or you might want to check on SAP Commerce or SAP Commerce Cloud topic.Docker run -d -p 8080:8080 -p 5005:5005 -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n" docker-java-jar:latest You might also check other blogs about SAP Commerce. ![]() Please let me know in the comment if you have any feedback, or any question. Remote debugging application server is pretty easy, the steps are almost identical to debugging local environment, with the only difference is we need to have direct access to application server and be able to start it in debug mode, other than that, the steps are the same. Back in Debug Configuration window, click Apply, then click Debug to start debugging.On source tab, click add -> choose file system directories -> select you bin folder.On project section, click on browse, and select platform.On the Connection Properties, put server’s IP Address to Host Give name whatever you like, here I give name hybris.Double click on Remote Java Application to create new debug configuration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |