Monday, December 9, 2013

wsadminjython view VirtualHost Port Details

vh=AdminConfig.list('VirtualHost').splitlines()
for i in vh:
      x=len(AdminConfig.list('HostAlias',i).splitlines())
      iname=i.find('(')
      print "Port Details of "+i[0:iname]
      while x > 0:
        print AdminConfig.showAttribute(AdminConfig.list('HostAlias',i).splitlines()[x-1],'port')
        x=x-1






In Python indent is very important so please be careful while copying it.

Thursday, December 5, 2013

zgrep,zcat command to grep ,view zipped file

grep is a unix command to search in a file
cat will be used to open a file

zgrep and zcat will be used for zipped files

Ex:
zgrep CPU SystemOut.log.gz
zcat SystemOut.log.gz

Sunday, November 24, 2013

Troubleshoot Large objects allocation in websphere

In gc logs you may find a line like below
<af type="nursery" id="2233" timestamp="Sep 24 09:20:52 2013" intervalms="24.176">
  <minimum requested_bytes="3660242" />

From the above line we understand that a large object allocation request was made and we are interested in finding what that object would be.

In google just put the line 3660242bytes to mb to find how much exact  mb is allocated.

There is a jvm argument options available to find the large objects.
-Xdump:stack:events=allocation,filter=#3m

 -Xdump option to add and remove dump agents for various JVM events, update default dump settings (such as the dump name), and limit the number of dumps that are produced.

Here we have given stack so stack trace will be dumped when allocation events is done above 3megabytes

Restart the server after the parameter is added and you will get stack trace in native_stderr logs whenever  a large allocation of more than 3 mb is done.



Wednesday, November 20, 2013

SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined

We can ignore this error coming in SystemOut logs.There will be no impact with this error.


favicon means favorite icon which is related to browsers.
W3C has recommended .ico format from 2003

For more information please refer the below .
IBM TechNote 


Wednesday, October 16, 2013

Debug Paging Space issue IBM AIX

We would have faced issues that paging space is more and need to find which process is using more page space.

Let's start by understanding what is Paging Space.
All process will require memory and that will be taken from RAM .In unix 4kb blocks of memory will be allocated.So in a case if there is no memory in our RAM for the new process then process wont be completed.To nullify this OS has paging space in the disk which will be used by the inactive process in the RAM and the new active process will get space in RAM for processing.This is called Page Out .If the inactive process in hard disk once got active will  move again to RAM.This process is called Page In.So this will be a continuous process in the operating system.

.
lsps -a  command is used to find on which disk paging space is alloted.
Page Space  Physical Volume       Size   %Used  
hd6         hdisk0              768MB      47   

lsps -s will give the  percentage of paging space used.
If percentage is less then no issue.

svmon -G to find free memory.
               size      inuse       free        pin    virtual
memory      1048576     417374     631202      66533     151468
pg space     262144      31993

If free memory is very less then we can increase the RAM size if its less .It seems like application issue please follow the below steps:
Use topas command to find which process is using more paging.
Click here for complete topas explanation .The link has very good explanation.Once spotted the most used process you can use the below two commands .

ps -mo THREAD -p <PID>|sort -nk6.This command be used to know which application is causing more paging .
svmon -P <PID>
In detail svmon commands are explained here.Hope this post will help to spot the bottleneck with paging