简体   繁体   English

有没有办法连接Profiler OSE JAVA应用程序pod?

[英]Is there way to connect profiler OSE JAVA app pods?

  • There is memory leak in my spring boot application It was able to take 70 concurrent request at ramup of 5seconds and it works smooth on my local machine 我的春季启动应用程序中存在内存泄漏它能够在5秒的ramup上接受70个并发请求,并且在我的本地计算机上运行流畅

When I did deploy the same application on OSE it created out of memory issue 当我在OSE上部署相同的应用程序时,它创建了内存不足的问题

I was trying to connect java profiling tools to remote OPENSHIFT java pods? 我试图将Java分析工具连接到远程OPENSHIFT Java Pod?

Is there any procedure to collect the heap dump or connect profile tool(jvisualvm) to ose pod? 有什么程序可以收集堆转储或将配置文件工具(jvisualvm)连接到ose pod?

There are manual ways of collecting the ThreadDump & HeapDump in out of memory situations 在内存不足的情况下,有手动方式可以收集ThreadDump和HeapDump

  1. oc get pods - > List Pods oc get pods->列出豆荚
  2. oc rsh pod -> Remote shell to pod oc rsh pod->远程shell到pod
  3. "jmap -dump:format=b,file=heap_dump1.hprof 1" -> Running the JMAP command to collect the heap dump “ jmap -dump:format = b,file = heap_dump1.hprof 1”->运行JMAP命令以收集堆转储
  4. "jcmd 1 Thread.print > threaddump.txt" -> Running jcmd to collect the thread dump “ jcmd 1 Thread.print> threaddump.txt”->运行jcmd来收集线程转储
  5. oc volume dc/yourApp --add --claim-size 512M --mount-path --name downloads -> Creating the persistent volumes oc volume dc / yourApp --add --claim-size 512M --mount-path --name downloads->创建持久卷

After connecting the pods manually, explicitly execute the commands on the ose terminal 3 & 4 Till the application reaches the OOM & because of dump on the persistent volume logs will not be cleared 手动连接了Pod之后,在ose终端3和4上显式执行命令。直到应用程序到达OOM为止,因为永久卷日志上的转储将不会被清除。

  1. Copy the heapDump files & threadDump files from OSE pod to Local fileSystem after zipping them by "tar" 用“ tar”压缩文件后,将OSE pod中的heapDump文件和threadDump文件复制到本地文件系统

oc rsync 同步

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 像这样的Java Web App Profiler - java web app profiler like this libvirt Java绑定和virtualbox-ose - libvirt java binding and virtualbox-ose Memory Profiler-适用于Java的Google App Engine - Memory Profiler - Google App Engine for Java 有没有办法在 Java 中获取活动 Kubernetes Pod 的数量 - Is there a way to get number of active Kubernetes Pods in Java 如何使用Java连接到现有的Kubernetes服务器并列出所有Pod? - How to connect to an existing kubernetes server and list all pods using java? 有没有办法通过 Servlets 或类似的东西将 Java 桌面应用程序与 MySQL 连接? - Is there a way to connect a Java desktop app with MySQL through Servlets or something similar? 将Java Swing应用程序连接到共享服务器上的MS Access数据库的最佳方法? - Best way to connect java swing app to ms access db on a shareserver? 为什么附加了探查器的Java应用程序运行得更快? - Why does my Java app run faster with profiler attached? 如何使用YourKit Java Profiler连接到Java命令行工具? - How do I connect to a Java command-line tool with the YourKit Java Profiler? Google App Engine探查器 - Google App Engine Profiler
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM