我正在考虑为一组工具构建一个微服务体系结构。
每个工具都有独立的API实现和公开。他们被部署在他们的专用VM中。比方说,我有三个工具。
Tool1 with Feature实现并公开为API1、API2、API3 in VM1Tool2 with Tool2实现并公开为API1、API2、API3、API4 in VM2,并将其公开为API3、中。
我计划从一个集中的地方(VM4)管理所有的工具。作为服务器。每个工具特性都会被称为,
http://<host_of_VM4>/tool1/callapi1http://<host_of_VM4>/tool1/callapi
我有一个基本的java服务器应用程序,它有100个工作线程,在urls上做简单的HEAD请求。为此,我使用了HttpClient 4.x。
运行几分钟后,我的程序就冻结了几分钟,我不知道为什么。查看可视vm监视器报告的屏幕截图。你可以看到它是平直的。在这段时间内,我无法获得一个好的线程转储,并且visual vm只是冻结,直到它被解锁。有没有人知道我可以做些什么来开始调试这个家伙?
可视化VM:
以下是我试图在jstack转储处于冻结状态时的输出:
jstack -F 4325
Attaching to process ID 4325, please wait...
Debugger att
当我尝试使用jmap、jinfo等并尝试连接到正在运行的jvm时,我得到了以下错误。 例如 [x@y bin]$ jmap -heap 3848
Attaching to process ID 3848, please wait...
Error attaching to process: java.lang.RuntimeException: can't determine target's VM version : field "_reserve_for_allocation_prefetch" not found in type Abstract_VM
具体异常信息如下:
root@test-6cf7db85b7-sxk8h:/# jmap 7
Attaching to process ID 7, please wait...
ERROR: ptrace(PTRACE_ATTACH, ..) failed for 7: Operation not permitted
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed fo
我的jdk版本是1.8.0_111,我正在读一本关于JVM的书。当我尝试命令jmap -F 6469时,抛出一个异常,如下所示:
Attaching to process ID 6469, please wait...
Error attaching to process: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.111-b14. Target VM is 25.152-b11
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm
我有由HashiCorp Nomad运行的java应用程序。在进程状态输出时,root运行游牧民执行程序进程,nobody运行java应用程序进程。
当我尝试执行命令:jmap -dump:format=b,file=filename.bin <app_pid>
我收到消息:
Unable to open socket file: target process not responding or HotSpot VM not loaded The -F option can be used when the target process is not responding
当我尝试
我们在服务器上使用jstack来检测java应用程序是否发生死锁。它不能在我们的Linux服务器上工作。我认为操作系统版本是:
$cat /etc/issue.net
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Kernel \r on an \m
服务器上运行的Java版本:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19
我在我的Ubuntu 14.04上使用了Pentaho Data Integration tool 4.4.0
uname -a
Linux LT0124 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
当我关闭PDI时,我得到弹出窗口,错误如下:
An unexpected error occurred in Spoon:
No more handles [Could not detect registered XULRunner to use]
org.e
我正在使用Jruby和Puma运行一个应用程序。我们有一个潜在的内存泄漏问题,我想要生成一个堆转储,以便我可以进行调试。我的本地环境正在运行Linux 17。
jmap -histo:live 6450
这导致:
6450: Unable to open socket file: target process not responding or HotSpot VM not loaded The -F option can be used when the target process is not responding
我也试过这样做:
jmap -dump:live,format=b,f
我已经在我的Ubuntu桌面上安装了go,在我关闭电脑之前,它工作得很好。
现在,当我启动我的机器并继续我的项目工作时,我得到了这样的结果
$ go build
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
当我尝试构建一个项目时。
我在断电前做