CMR Administration

CMR shutdown

Easiest way to correctly shutdown the CMR is to click on the  Shutdown CMR button in the Repository Manager View. The same view provides option to  Restart CMR easily.

Another way to shutdown the CMR simply terminate the CMR process. The CMR uses a JVM shutdown hook to guarantee data integrity so it might take a few seconds for the process to be stopped. Please do not kill the CMR (e.g. kill -9) as this can lead to situations in which the database is instable. If a situation like this occurs you must delete the complete CMR database and start over.

CMR database administration

The CMR stores data in a local file-based database. This database is located within the folder db situated in the root folder of the CMR installation. 

In order to clear the database of inspectIT, perform the following steps:

  1. Shutdown the CMR
  2. Delete the db folder entirely
  3. Restart the CMR - The CMR will create the db folder again and initialize an empty database

Sometimes it is important to create a backup of the database. This can be done by:

  1. Shutdown the CMR
  2. Copy the entire db folder to your backup folder
  3. Start the CMR again

In order to integrate a old backup, you just need to stop the CMR and copy the old db folder into the CMR folder structure.

Log clearing

The CMR writes various log files to the [CMR]/logs folder. These can be deleted at any time if you want to save harddisc space. Please check the Logging settings page for more information on different log files being created.

Garbage collection log

The CMR will log its garbage collection activities by default to the [CMRLocation]/logs/gc.log. You can change the location of the GC log file in the CMR start-up script by editing the following JVM parameter:

 

-Xloggc:logs/gc.log