CA Service Management

  • 1.  C drive full in Catalog server

    Posted Jun 15, 2017 12:53 AM
      |   view attached

    Dear team, 

    We are receiving alerts that C drive is getting full in Catalog server. When checked the same, logs folder occupies around 25GB. Shall we move the old logs or any other content in CA folder to free up the space.

     

    Please suggest.

     

    Thank you,

    Divya Arunachalam



  • 2.  Re: C drive full in Catalog server
    Best Answer

    Posted Jun 15, 2017 03:40 AM

    Hello Divya

     

    The old log files can safely be moved to a different folder. These are:

     

    view.log

    error.log

    \view\ServiceCatalog.log

    \view\tomcat_view.log

     

    Which files are taking up the most space in the \logs\ folder? The size and number of many of the log files can be controlled by modifying the %USM_HOME%\view\conf\log4j.xml file. For example, the view.log file section looks like this:

     

      <appender name="view" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="${usm.home}/logs/view.log" />
        <param name="MaxFileSize" value="20MB" />
        <param name="MaxBackupIndex" value="100" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%d{yyyy/MM/dd HH.mm.ss.SSS} %-5p [%t] [%c{1}] %m%n" />
        </layout>
      </appender>

     

    The "MaxFileSize" and "MaxBackupIndex" settings will control the size of view.log files, and the number of files which are kept in the \logs\ folder. The setting above will allow a maximum of 100 view.log files each of which is 20MB in size.

     

    If the space is being used by different files, please let us know which files are using all this space and we'll investigate further.

     

    Steve



  • 3.  Re: C drive full in Catalog server

    Posted Jun 21, 2017 02:39 AM

    Hi Steve,

     

    I have moved the old log files and the setting we have is same as above. Still we have some files in logs folder.

     

    Have attached the screenshot of the same. Please help in what are these files and whether we can move them.

     

    Thank you,

    Divya Arunachalam



  • 4.  Re: C drive full in Catalog server

    Posted Jun 21, 2017 03:07 AM

    Hi Divya

     

    There's no screenshot attached I'm afraid. Which files are taking up all of the space?

     

    Steve



  • 5.  Re: C drive full in Catalog server

    Posted Jun 21, 2017 03:21 AM

    Hi Steve, Inserted inline. Please check below.

     

    L



  • 6.  Re: C drive full in Catalog server

    Broadcom Employee
    Posted Jun 21, 2017 03:53 AM

    Hi,

     

    There are two types of file there, the .mtmp and the .hprof - both are indications that the java processes behind Catalog are running out of memory, and are dumping information to disk. You may need to look at tuning the resources of both the machine, and how much Catalog is allowed to use.

     

    However, if you just need a quick fix to tidy things up for the moment, then they can be deleted if the CA Service Catalog and CA Service Accounting services are stopped.

     

    regards

    Iain



  • 7.  Re: C drive full in Catalog server

    Posted Jun 21, 2017 04:53 AM

    Hi Iain,

     

    Please confirm if the below steps are right to perform the same.

    1. Stop CA Service Catalog

    2. Remove all files with .mtmp and .hprof from logs folder.

    3. Start the service

    Also application will not be disturbed, right because of the deletion.

     

    Thank you,

    Divya Arunachalam



  • 8.  Re: C drive full in Catalog server

    Broadcom Employee
    Posted Jun 21, 2017 08:41 AM

    Hi,

    as long as Catalog/Accounting is fully stopped, it is safe to delete the old memory dump files, yes.

    regards

    Iain



  • 9.  Re: C drive full in Catalog server

    Posted Jun 21, 2017 09:31 AM

    Ok Iain, will try that. Thank you.



  • 10.  Re: C drive full in Catalog server

    Broadcom Employee
    Posted Jun 15, 2017 06:43 AM

    The other thing to watch out for when space is consumed in the logs folder by the "jms-data" folder. This is the cache for the message queue system, and shouldn't be deleted while any CA Service Management components are running. There will always be some files in here, and if you do delete them they'll have to be rebuilt on the restart, so I'd look at the ones Steve has mentioned for space clearing first.

     

    regards

    Iain