Use > JMX Reference > Administration Methods > How to Download a Zip File of Log Files and Thread Dumps

How to Download a Zip File of Log Files and Thread Dumps

You can produce a zip file that includes all logs and thread dumps. You create the file either through a JMX operation on the client machine, or by running a batch file on the UCMDB Server.

Thread dumps are created periodically: Once a minute, a thread dump snapshot is taken and is saved to a new file in the C:\UCMDB\UCMDBServer\runtime\log\threadDumps folder. Thread dump files from the last hour are kept. This folder also holds the ad hoc Server snapshots that are generated during the logGrabber execution.

To generate the zip file from the client machine:

  1. Launch the Web browser and enter the server address, as follows: https://<UCMDB Server Host Name or IP>:8443/jmx-console.

    You may have to log in with a user name and password.

  2. Under UCMDB, click UCMDB:service=Server services to open the JMX MBEAN View page.

  3. Locate the executeLogGrabber operation.

  4. Click Invoke.

    A Server snapshot file with the name LogGrabber_serverSnapshot_<current date and time>.txt is created in the following location: C:\UCMDB\UCMDBServer\runtime\log\threadDumps. This is a thread dump that includes the threads of the Server framework only.

  5. In the File Download dialog box, you can open the logGrabber_<current time>.zip file, or download it to the client machine.

To generate the zip file from the UCMDB Server:

  1. Access the following folder on the UCMDB Server: C:\UCMDB\UCMDBServer\tools\logGrabber\.

  2. Run the logGrabber.bat file.

    The LogGrabber_<current time>.zip file is created in the following location: C:\UCMDB\UCMDBServer\runtime. This is a thread dump that includes the threads of the Server framework only.