Thursday, May 28, 2015

Java VM: Java HotSpot(TM) while running autoconfig on the database tier 10g

Issue: While running the autoconfig on the database tier below issue occurred.

Context Value Management will now update the Context file
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xf7a8172a, pid=8033, tid=4160080576
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x4eb72a]
#
# An error report file with more information is saved as hs_err_pid8033.log

#

Log details.

Stack: [0xffb43000,0xffd43000),  sp=0xffd3eda4,  free space=2031k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x5056fa]
V  [libjvm.so+0x4320f8]
V  [libjvm.so+0x26a6a6]
V  [libjvm.so+0x28b95f]
C  [libnjni10.so+0x5e4c]  Java_oracle_net_common_NetGetEnv_getLocalHostName+0xd6
j  oracle.net.common.NetGetEnv.getLocalHostName()Ljava/lang/String;+0
j  oracle.net.config.Config.systemName()Ljava/lang/String;+36
j  oracle.net.config.DirectoryService.getSystemObjectPath(Loracle/net/config/Config;)Ljava/lang/String;+6
j  oracle.net.config.DirectoryService.qualifyObjectName(Loracle/net/config/Config;Ljava/lang/String;Z)Ljava/lang/String;+36
j  oracle.net.config.Listener.<init>(Loracle/net/config/Config;Ljava/lang/String;)V+37
v  ~StubRoutines::call_stub
V  [libjvm.so+0x26a17c]
V  [libjvm.so+0x43b3f8]
V  [libjvm.so+0x269faf]
V  [libjvm.so+0x4877cc]
"hs_err_pid11679.log" 375L, 23491C 

Cause: In this case in our server the hostname command was returning null, unfortunately the hostname was disappeared in the linux prompt.

Solution:
=======
[oradr@- ~]$ printenv |less
NLS_SORT=binary
ADJREOPTS=-Xms128M -Xmx512M
HOSTNAME=-
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000

Added the hostname to the environment as below.

[root@- ~]# /bin/hostname localhost.domain
[root@- ~]# hostname
localhost.domain
[root@- ~]#
[oradr@drdb PRODSTBY_drdb]$ printenv |less
NLS_SORT=binary
ADJREOPTS=-Xms128M -Xmx512M
HOSTNAME=localhost.domain
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000

Run the autoconfig it should complete.


No comments:

Post a Comment