Skip to Content
Feb 04, 2021 at 12:36 PM

cf java heap-dump throwing exception

330 Views Last edit Feb 04, 2021 at 02:36 PM 3 rev

While running a java application we received

Resource exhaustion event: the JVM was unable to allocate memory from the heap error due to which to get the heap dump from the cloud foundry, installed cf install-plugin -r CF-Community "java" .

After which ssh for the application was enabled but on the run of cf java heap-dump appname > heap-dump.hprof we got the below error.

Error log :

Exception 0x80000001 0x0 0x7ffffbe30000 0x7ffffbe40356 PC=0x7ffffbe40356 syscall.Syscall(0x7ffffa418e80, 0x3, 0x2, 0x1, 0x6, 0x0, 0x0, 0x0) /usr/local/opt/go/libexec/src/runtime/syscall_windows.go:163 +0x6b syscall.socket(0x100000002, 0x6, 0x0, 0x0, 0x0) /usr/local/opt/go/libexec/src/syscall/zsyscall_windows.go:1407 +0x73 syscall.Socket(0x2, 0x1, 0x6, 0x0, 0x0, 0x0) /usr/local/opt/go/libexec/src/syscall/syscall_windows.go:705 +0x58 net.probeIPv4Stack(0xc04200c701) /usr/local/opt/go/libexec/src/net/ipsock_posix.go:16 +0x4e net.init.3() /usr/local/opt/go/libexec/src/net/net.go:100 +0x2e net.init() /usr/local/opt/go/libexec/src/net/unixsock_posix.go:224 +0xbc7 crypto/x509.init() /usr/local/opt/go/libexec/src/crypto/x509/x509.go:2250 +0xb1 /Users/d058433/go/src/ +0x70 /Users/d058433/go/src/ +0x61 /Users/d058433/go/src/ +0x78 /Users/d058433/go/src/ +0x90 /Users/d058433/go/src/ +0x98 /Users/d058433/go/src/ +0x4b /Users/d058433/go/src/ +0x6b main.init() /Users/d058433/go/src/ +0x5f rax 0x0 rbx 0x0 rcx 0x5a4d rdi 0x7ffffbe30000 rsi 0x0 rbp 0x0 rsp 0x103e4c0 r8 0x0 r9 0x103e608 r10 0x0 r11 0x0 r12 0x7ffffbe30000 r13 0x11b7b80 r14 0x7ffff785f370 r15 0x0 rip 0x7ffffbe40356 rflags 0x10346 cs 0x33 fs 0x53 gs 0x2b

Kindly guide to resolve this issue ASAP.