cancel
Showing results for 
Search instead for 
Did you mean: 

alf_data is being fat : is this a dummy question ?

tog
Champ in-the-making
Champ in-the-making
Hi,

I have being playing around with uploading big (1GB to 10GB) files to Alfresco for few days now. The disk space of my laptop is exhausted Smiley Happy

I found out that alf_data is getting bigger and bigger. The fact is that even if you delete the files using the trash icon it does not slim down.
As indicated in the wiki, I modified some configuration values:
  - in WEB-INF/classes/alfresco/scheduled-jobs-context.xml
    I put the following value in place of the 4am every day:
        <property name="cronExpression">
            <value>0 0/15 * * * ?</value>
        </property>
  - similarly in WEB-INF/classes/alfresco/content-services-context.xml, I chose 1 instead of 14:
      <property name="protectDays" >
         <value>1</value>
      </property>

I restarted alfresco expecting a reduced  disk space within 15 mn …. nothing happened Smiley Sad I am still stuck at 10 GB +.
Similarly nothing moved to alf_data/contenstore.deleted …

Is the normal behavior ? What should I expect ?
And how should I parameterize Alfresco for this situation (large files) ?

I tried to look around in the forum - there are similar questions but no answer. Is this a stupid question ?

Cheers
Guillaume
6 REPLIES 6

florinmarcus
Champ in-the-making
Champ in-the-making
I have tested myself this behavior. I have deleted a large amount of documents, I have removed everything from Manage Deleted Items also. Still , the contentstore.deleted is empty. Therefore, nothing to delete manually in order to free the disk space .

archana_bonkanp
Champ in-the-making
Champ in-the-making
so when it is safe to remove contentstore.delete.
We need a clarification like,is there a time gap to delete the same.
it doesnt have any effect on the application.

rogier_oudshoor
Champ in-the-making
Champ in-the-making
Under the bonnet, deleting an item from the "manage deleted items" is JUST a DB delete. A cron job will then eventually find the orhpans in the content store and move those into the contentstore.deleted

Therefore, it may take 24 hours (assuming your server is running night & day) for the deleted items to appear in the contentstore.deleted From there, you can delete them whenever you want - Alfresco isn't using them.

archana_bonkanp
Champ in-the-making
Champ in-the-making
is based on the property set for the value,the unused data will move from contentstore to contentstore.deleted

<property name="protectDays" >
         <value>1</value>
      </property>

archana_bonkanp
Champ in-the-making
Champ in-the-making
when the cron job will run?
how it will find orphans?

suppose i have taken the backup 0f 2008 in contentstore and kept it.
now in the application the cron job will delete the orphans found in 2008 of contentstore  .
Then if some problem exists and i restore the 2008  contentstore which i took backup previously,now if the cron job runs and will it delete the orphans again?
i mean the orphans which were deleted before will be identified or not.

rogier_oudshoor
Champ in-the-making
Champ in-the-making
I would say probably, but i have never tested this so i'm not sure. You would need to copy your backup over what's here, rather then replace it - it would break your repository otherwise.