Monday, 17 September 2018

How to configure XVFB in AIX Environment??

Issue: We are facing concurrent request running continuously not completed issue on live server.

Cause: Due to VNCSERVER got hanged.

Solution: To resolve it we have installed XVFB Server which is the alternative for vncserver.
so we can kill the vncserver process before installation of XVFB.

Resolve this issue by Download & Install below RPMS:
X11.vfb
OpenGL.OpenGL_X.dev
Pre Req RPM PKG for OpenGL.OpenGL_X.dev
-rw-r-----    1 root     system      1402880 Sep 14 14:25 OpenGL.OpenGL_X.adt
-rw-r-----    1 root     system     21670912 Sep 14 14:25 OpenGL.OpenGL_X.dev
-rw-r-----    1 root     system     35701760 Sep 14 14:25 OpenGL.OpenGL_X.rte
-rw-r-----    1 root     system      3738624 Sep 14 14:25 OpenGL.OpenGL_X.tools

Step 1: Installtation Process by root User.
# installp -agcd . X11.vfb

# installp -agcd . OpenGL.OpenGL_X.dev

After installtion check DISPLAY

# export DISPLAY=erpprodappl:0.0
# xclock
Xlib: connection to "erpprodappl:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Error: Can't open display: erpprodappl:0.0
# hostname
appnode2
# export DISPLAY=172.16.1.22:0.0
# xclock
Error: Can't open display: 172.16.1.22:0.0

Step 2: Run Below command to start XVFB Server.
# /usr/lpp/X11/bin/xinit /usr/lpp/X11/bin/mwm -- :0 -vfb -force -x abx -x dbe -x GLX &
[1]     10813502
#
:0
# xhost + 172.16.1.22
172.16.1.22 being added to access control list

Step 3: check X server running status.
# ps -ef|grep vfb OR  ps -ef|grep X11
    root 10617054 10813502   0 14:34:41  pts/0  0:00 /usr/lpp/X11/bin/X -cc 4 -x abx -x dbe -x GLX -D /usr/lib/X11/rgb :0 -vfb -force -x abx -x dbe -x GLX
    root 10813502  8519794   0 14:34:41  pts/0  0:00 /usr/lpp/X11/bin/xinit /usr/lpp/X11/bin/mwm -- :0 -vfb -force -x abx -x dbe -x GLX

Note: I hope  resolve avobe issue after doing this activity.

No comments:

Post a Comment