Enable debug logging for WebConsole
search cancel

Enable debug logging for WebConsole

book

Article ID: 303988

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

To provide instructions to enable the java console debug on the Windows client connecting to the Smarts webconsole (thin client).

Environment

Smarts - 10.1.x/24.3.x

Resolution

Enabling debug logging for individual WebConsole users (local Java in PC)

To enable debug logging an individual workstation that uses the WebConsole, you must configure the Java Runtime Parameters for that workstation.

  1. Verify that log file directory is configured, refer to Configuring the log file directories to cross verify.
  2. Navigate to the following in Windows:

    Control Panel -> Java -> Java Control Panel -> Java tab -> View -> Java Runtime Environment Settings -> Runtime Parameters
     
  3. Insert the following settings in  the Runtime Parameters: 
    -Djavax.net.debug=all
    -Dcom.smarts.server.logMessages=true
    -Dcom.smarts.java.log=<filename>.log
    -Dcom.smarts.log.level=TRACE

  4. Click on the advanced tab, and ensure these three are enabled.
  • Enable tracing.
  • Enabled logging.
  • Show console


 

  • Click apply and OK.

Viewing the java console log:

  1. Stop and restart the webconsole (web browser on the client machine). The Tomcat server does not need to be restarted.
  2. Java Console should load, along with the the java prompt. 
  3. Approve prompt to run the application.

Refer to Configuring the log files for more information.

 

Enable debugging in the tomcat webconsole.properties:

webconsole.properties is located at <CONSOLE_BASE>/smarts/tomcat/webapps/webconsole/.

Add the following debug statements to the file and save it.

  • com.smarts.log.level=TRACE
  • com.smarts.debugConnection=true
  • com.smarts.java.log=<filename>.log
  • com.smarts.server.logMessages=true

Restart tomcat for changes to take effect. Debug log file will be located at <CONSOLE_BASE>/smarts/local/logs.

Refer to Debugging the web console for more information for webconsole debugging. 

Additional Information

This KB article is for the webonsole that is using the browser from PC to point to the WebConsole Server at port 8080 (default) 

If Global Console is installed in Windows PC and do not use a browser, please refer to Troubleshooting SAM Console Startup Issues