Skip navigation

CQ5

Currently Being Moderated

How to clean tarJournal?

Aug 2, 2012 9:37 AM

Tags: #manager #cq5.5 #persistence #tar

Hi all,

 

We had a bug in which an endless loop was continuously creating and then deleting the same node.  I noticed that the size of the repository on disc (under crx-quickstart/repository) did grow significantly.  By running the tar optimization I was able to reduce the files under crx-quickstart/repository/workspaces/crx.default from about 30GB to 300MB.  However, under crx-quickstart/repository/tarJournal we still have data files amounting about 50GB, while I noticed on other servers this should also be around the 300MB.  The tar optimization process is not cleaning up this folder apparently.  How can this be cleaned up?

 

Thanks,

Jan

 
Replies
  • Currently Being Moderated
    Aug 4, 2012 6:09 PM   in reply to Jan Amplexor

    Follow [1] to identify  and narrow down the source of the repository growth.

     

    [1]   http://dev.day.com/content/kb/home/Crx/Troubleshooting/analyze-unusual -repository-growth.html

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 3:25 AM   in reply to Jan Amplexor
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 4:20 AM   in reply to Jan Amplexor

    try checking disk usage to s

     

    Connected by MOTOBLUR™

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 6:31 AM   in reply to Jan Amplexor

    Before rotating I want to know the actual cause. Since we are clear on cause you can rotate it.

    Journal files that are older than the configured age are automatically deleted. The default is “P1M”, which means files older than one month are deleted.  Since issue happened for you recently It still exists and will be cleaned after a month.  In case you can't wait for a month,  If you are using default shared nothing configure in repository.xml the Journal tag with maximumAge.  The sytax for maximumAge refer [1].   In case you are using cluster then additional parameter maximumFiles need to be set. Take a look at [2].

     

    [1]  http://en.wikipedia.org/wiki/ISO_8601

     

    [2]   http://dev.day.com/content/kb/home/Crx/Troubleshooting/JournalTooMuchD iskSpace.html

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 5:06 AM   in reply to Jan Amplexor

    Hi Jan,

     

    Updated the kb article please verify.

     

    Thanks,

    Sham

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2012 10:48 AM   in reply to Jan Amplexor

    I changed the maximumAge and run the tar optimization but there were no changes in the tarJournal folder :s

    Is there additional configuration necessary??

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2012 9:43 AM   in reply to Jan Amplexor

    I'm using CQ5.5 with the default configuration as a shared-nothing cluster. I did a few of changes in the file: crx-quickstart/repository/repository.xml to change the time of tar optimization. I changed:

    <Workspace name="${wsp.name}" simpleLocking="true">

         <PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager">

              <param name="autoOptimizeAt" value="7:40-11:00"/>

         </PersistenceManager>

    </Workspace>

     

    <Versioning rootPath="${rep.home}/version">

         <PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager">

              <param name="autoOptimizeAt" value="7:40-11:00"/>

         </PersistenceManager>

    </Versioning>

     

    and

     

    <Cluster syncDelay="5000">

         <Journal class="com.day.crx.persistence.tar.TarJournal">

              <param name="maximumAge" value="P1D"/>

              <param name="maxFileSize" value="256"/>

         </Journal>

    </Cluster>

     

     

    I also changed the file crx-quickstart/repository/workspaces/workspace.xml

    <Workspace name="crx.default" simpleLocking="true">

         <PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager">

              <param name="autoOptimizeAt" value="7:40-11:00"/>

         </PersistenceManager>

    </Workspace>

     

    The tar optimization process has reduced the used space but the files under tarJournal are still there and I've noticed that when the optimization process a file optimizeNow.tar appears but not in the tarJournal folder. Am I missing something or doing something wrong?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 23, 2012 5:21 PM   in reply to rudy.carranza

    Based on your configuration I do not see any issue. Might be records are withing one month & hence not reducing.

     

    To manually start tar optimization create a file optimize.tar under crx-quickstart/repository/tarJournal/

    If optimize.tar gets renamed to optimizeNow.tar by the system then you know it is running.

    Once it is completed the file will be deleted.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 24, 2012 7:23 AM   in reply to Sham HC

    I was traying to delete the older files by placing a optimizeNow.tar file but it was deleted by the system. Placing a optimize.tar file instead did the job and deleted the older files. Thanks Sham.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points