-Xlog:all=info:host=127.0.0.1,port=9999
Log message is sent to the consumer in plain text each time it is issued. The user can configure it with -Xlog option.
- Log message is issued from the code in HotSpot
- Log message is stored in message buffer
| #include <iostream> | |
| #include <cstring> | |
| #ifndef O_RDONLY | |
| #define O_RDONLY 0 // for debug | |
| #endif | |
| // Function pointer for stub functions | |
| int (*open)(const char *pathname, int flags); | |
| ssize_t(*read)(int fd, void *buf, size_t count); |
| .PHONY: clean | |
| CFLAGS = -fPIC -g | |
| LDFLAGS = -lpthread | |
| CPPFLAGS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux | |
| TARGETS = libdltest.so libdltest-jmm.so | |
| all: $(TARGETS) | |
| libdltest.so: deadlockDetector.o |
| import java.io.*; | |
| import java.util.*; | |
| import java.util.stream.*; | |
| import java.lang.reflect.*; | |
| import javax.management.*; | |
| import sun.tools.jconsole.*; | |
| public class JMXClient implements AutoCloseable{ |
| /home/ysuenaga/OpenJDK/hs/hotspot/src/share/vm/classfile/altHashing.cpp:227:43: error: narrowing conversion of '2206368128u' from 'unsigned int' to 'jint {aka int}' inside { } [-Wnarrowing] | |
| static const jint ONE_INT[] = { 0x83828180}; | |
| ^ | |
| /home/ysuenaga/OpenJDK/hs/hotspot/src/share/vm/classfile/altHashing.cpp:238:55: error: narrowing conversion of '2206368128u' from 'unsigned int' to 'jint {aka int}' inside { } [-Wnarrowing] | |
| static const jint TWO_INT[] = { 0x83828180, 0x87868584}; | |
| ^ | |
| /home/ysuenaga/OpenJDK/hs/hotspot/src/share/vm/classfile/altHashing.cpp:238:55: error: narrowing conversion of '2273740164u' from 'unsigned int' to 'jint {aka int}' inside { } [-Wnarrowing] | |
| lib/CompileJvm.gmk:193: recipe for target '/home/ysuenaga/OpenJDK/hs/build/linux-x86_64-normal-server-fastdebug/hotspot/variant-server/libjvm/objs/altHashing.o' failed | |
| gmake[4]: *** [/home/ysuenaga/OpenJDK/hs/build/linux-x86_64-normal-server-fastde |