Skip to Content
0
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 code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/crypto.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/crypto/signing_method.go:25 +0x70 code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/jwt.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/jwt/jwt.go:145 +0x61 code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/jws.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/vendor/github.com/SermoDigital/jose/jws/signing_methods.go:64 +0x78 code.cloudfoundry.org/cli/util/configv3.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/util/configv3/user.go:31 +0x90 code.cloudfoundry.org/cli/util/ui.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/util/ui/ui_for_push.go:137 +0x98 code.cloudfoundry.org/cli/cf/i18n.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/cf/i18n/locale.go:62 +0x4b code.cloudfoundry.org/cli/cf/terminal.init() /Users/d058433/go/src/code.cloudfoundry.org/cli/cf/terminal/ui_windows.go:46 +0x6b main.init() /Users/d058433/go/src/github.com/SAP/cf-cli-java-plugin/cf_cli_java_plugin.go:299 +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.