Thursday, August 8, 2013

HPEL logging websphere

High Performance Extensible Logging (HPEL) is a new log and trace facility. It provides a convenient
mechanism for storing and accessing log, trace, System.err, and System.out information produced by the application server or applications. It is an alternative to the basic log and trace facility, which provides the JVM logs, diagnostic trace, and service log files commonly named SystemOut.log/SystemErr.log, trace.log, andactivity.log. HPEL provides a log data repository, a trace data repository, and a text log file. 
 
Enable HPEL and configuring using adminconsole:
1.    Go to Troubleshooting and Logs and Trace.
2.Switch to HPEL mode.
3.Configure HPEL logging like path for the logs and trace ,purging time ,maximum log size etc.
 
4.You can configure trace for the logic you wanted.In the above picture I had configured for connection leak .Once done please save the configuration and do a restart to make it effective.

5.Click on View Hpel logs and trace on the server you want to see  the logs.
6.In HPEL you can filter the log and view only the content you want like only warning,fatal, from startdate  to stopdate etc.This can be done in the adminconsole or using LogViewer command you can view .

Wednesday, July 24, 2013

Websphere Application Server Administration Using Jython Robert A.Gibson

A very useful book for learning wsadmin scripting using jython.

Click here to get the PDF for free
Password is ebookmeme.com

Courtesy :http://ebookmeme.com/

Wednesday, July 17, 2013

How to install Wepshere application server 8 or 8.5 by IBM Installation MANAGER

From version 8 onwards Websphere is using IBM Installation Manager as a single software to do all
installation and upgrades.No need of update installer to  install fixpacks as IBM installation manager will take care of this.

There is a good post in IBM developer works by Scott Johnston
Installing websphere using IBM Installation Manager

Silently Install IBM Installation manager:

  ./installc -acceptLicense

Record a response file to silently install WebSphere Application Server:

  Go to /Installation Manager/eclipse where the IBMIM is present 
 
   ./IBMIM -record /tmp/install_was.xml -skipInstall /tmp/imregistry
   install_was.xml is the name of response file
  skipInstall is used to perform a mock install it wont do the installation

Once IM opens select File->Preferences and click Add Repository.
The repository can be located in local machine ,network drive or IBM passport Advantage

Click Ok.
Explore the IM preferences for the way you want.
Click Ok to  save and close preference window.

Click Install  and then
Select appropriate version,accept license,accept product installation directory and select all features needed.After reviewing the summary click install to record the response file.

Exit on successful recording of response file

Next use the response file to silently install the websphere
Go to InstallationManager/eclipse/tools
./imcl -acceptLicense -input /tmp/install_was.xml -log /tmp/install_was.log

If Installation is success the log file will be empty.

Saturday, July 13, 2013

manageprofiles delete all profiles

APPSERVER_ROOT/bin>manageprofiles.bat -deleteAll

INSTCONFSUCCESS: Success: All profiles are deleted.

After that you can confirm using listProfiles

APPSERVER_ROOT/bin>manageprofiles.bat -listProfiles

[]

If deletion is not success then 
Delete the profile directory  in the system and issue the below command


manageprofiles.bat -validateAndUpdateRegistry

IVT(Installation Verification Tool) in websphere

IVT tool will be present in app_server_root/bin
ex:C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\ivt.bat
ivt.sh in unix environment

C:\Program Files (x86)\IBM\WebSphere\AppServer\bin>ivt.bat
IVTL0150I: The IVT command requires the following arguments:
<SERVER_NAME>
<PROFILE_NAME>
For example, on Linux:
ivt.sh server1 profile01
The IVT tool will first start the server given in the argument and then it scan the sysout log for errors and warnings.  

>ADMU0128I: Starting tool with the Dmgr01 profile
>ADMU3100I: Reading configuration for server: dmgr
>ADMU3200I: Server launched. Waiting for initialization status.
>ADMU3000I: Server dmgr open for e-business; process id is 4452
Server port number is:9060
IVTL0010I: Connecting to the  WebSphere Application Server on port: 90
60
IVTL0015I: WebSphere Application Server  is running on port: 9060 for
profile Dmgr01
IVTL0035I: The Installation Verification Tool is scanning the C:\Program Files (
x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\dmgr\SystemOut.log file for er
rors and warnings.
[13/7/13 22:56:53:169 IST] 00000001 PMIImpl       W   CWPMI0032W: PMI Service is
 not available in the Deployment Manager process.
[13/7/13 22:57:01:624 IST] 00000001 ThreadPoolMgr W   WSVR0626W: The ThreadPool
setting on the ObjectRequestBroker service is deprecated.
[13/7/13 22:57:37:583 IST] 00000080 webapp        W com.ibm.ws.webcontainer.weba
pp.WebApp initializeStaticFileHandler SRVE0278E: Error while adding servlet mapp
ing --> /*.
IVTL0040I: 3 errors/warnings are detected in the C:\Program Files (x86)\IBM\WebS
phere\AppServer\profiles\Dmgr01\logs\dmgr\SystemOut.log file
IVTL0070I: The Installation Verification Tool verification succeeded.
IVTL0080I: The installation verification is complete.