我在Cloud Foundry DEA中部署了一個Java應用程序。我想通過隧道入侵DEA來分析應用程序。我發現了很多對迭戈的支持,但目前我們已經在DEA中運行它。 另外如何爲CF中的DEA中運行的應用程序生成線程轉儲?如何在CloudFoundry中剖析運行在DEA中的Java應用程序?
0
A
回答
0
我已經爲CF創建了一個插件,但是由於它爲SSH創建了一個新實例,所以它不再工作了。但是,您仍然可以使用它用於啓動要連接的會話的腳本。嘗試重新推動與以下選件的應用:
-u none -c 'curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep infinity'
例如cf push show-headers -u none -c 'curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep infinity'
爲「休眠」的電話將確保調用tmate後的容器熬夜。推送成功後,查看日誌中的一行,看起來像這樣;
2016-09-01T08:01:36.70+0100 [APP/0] OUT ./include/event2/util.h
2016-09-01T08:01:36.70+0100 [APP/0] OUT ./bin/tmate
2016-09-01T08:01:50.21+0100 [APP/0] OUT [email protected]
這裏的第三行顯示了你應該能夠通過ssh [email protected]
連接到容器上的SSH地址。您應該使用兩個窗格連接到一個tmux會話,一個使用bash shell,另一個使用由相關buildpack運行的命令。不用說,更好的解決方案首先是使用迭代單元而不是DEA ;-)
相關問題
- 1. 剖析在命令行中運行Java應用程序
- 2. 如何剖析正在運行的Django應用程序?
- 3. 在Cloudfoundry中部署在後臺運行的clojure/java no-web應用程序
- 4. 剖析Java Web應用程序
- 5. 剖析java Google App Engine應用程序
- 6. 如何在eclipse中剖析日食應用程序?
- 7. 如何在Eclipse中剖析非Web應用程序?
- 8. 剖析Chrome應用程序
- 9. JProfiler - 應用程序剖析
- 10. 如何使用visualVM剖析java應用程序?
- 11. 在NGINX中運行Java應用程序
- 12. 如何在mono/xsp下剖析我的web應用程序?
- 13. 如何在Linux上剖析我的C++應用程序
- 14. 如何將Diego應用程序遷移到Bluemix中的DEA?
- 15. 在Cloudfoundry中部署的應用程序中執行命令
- 16. 使用工具在JBOSS EAP 6上運行的剖析彈簧應用程序
- 17. 在XCode中剖析C程序
- 18. 如何使用CloudFoundry.com在Cloud中運行Java SE應用程序?
- 19. 如何啓用/允許Java在CefSharp應用程序中運行
- 20. 如何在grails中運行java程序?
- 21. 如何在maven中運行java程序
- 22. 如何在java中運行Activemq程序
- 23. 如何在cmd中運行java程序?
- 24. 可以在Adobe AIR應用程序中剖析CPU /內存嗎?
- 25. 中央處理器剖析可可應用程序在現場
- 26. 如何在Rails應用程序的內存中剖析生產紅寶石
- 27. 如何在java-ee web應用程序中運行bash腳本?
- 28. 如何在Java應用程序中運行Talend作業
- 29. NSIS - 如何在NSIS中運行Java應用程序?
- 30. 如何在命令行中運行Java應用程序時它在包中?