How to set debug logging on Tomcat

Document ID : KB000054282
Last Modified Date : 14/02/2018
Show Technical Document Details

Commands to check if Tomcat is running on Application server:

>> Type "pdm_status" and look for tomcat      controller      Running computername 3948 Fri Dec 05 18:23:06
>> type "slstat and look for pdm_tomcat-computername      4      9 Fri Dec 05 18:23:06 2008
>> pdm_tomcat_nxd -c status The Tomcat application container was started on Fri Dec 05 18:24:34 GMT+05:30 2008

Commands to start and stop Tomcat from command line (check with pdm_tomcat_nxd -h):
>> pdm_tomcat_nxd -c stop or pdm_tomcat_nxd -c shutdown
>> pdm_tomcat_nxd -c start

Note: javaw.exe is the process for Tomcat, under Windows Task Manager.

Steps to set additional debugging for Tomcat:

>> To increase logging from the tomcat web servlet, set NX_PDMWEB_LOGLEVEL in nx.env to something between 2 and 5 (5 is the debug level of logging)

>> To increase logging in all Service Desk tomcat servlets, edit
     $NX_ROOT\bopcfg\www\CATALINA_BASE\webapps\CAisd\WEB-INF\log4j.properties
     Change
     log4j.rootCategory=info, jsrvrlog
     to
     log4j.rootCategory=debug, jsrvrlog >> recycle ServiceDesk service.

Note : $NX_ROOT is Servicedesk installation folder.

Location for tomcat logs:-

>> NX_ROOT\log\jsvr.log
>> NX_ROOT\log\pdm_tomcat.log
>> NX_ROOT\bopcfg\www\CATALINA_BASE\logs