Expand my Community achievements bar.

SOLVED

Are uploaded packages saved outside of the AEM installation directory?

Avatar

Level 2

I started up a brand new AEM 6.5 instance with no data in it and then successfully installed a 22GB content package.  The installed nodes are all showing up in CRXDE Lite, and I can download the 22GB package and its checksum matches the originally uploaded package.  However, when I run a du operation on my instance directory (directory that contains the AEM jar, crx-quickstart, and license.properties), I'm getting a total size of around 6GB.

 

Can anyone explain this?  I would have expected it to be much larger, given that the repository contains a 22GB package in /etc/packages.  If the uploaded 22GB package is stored outside of the instance directory, can anyone help me figure out where it is?  Thanks!


Additional Info: This new installation didn't create a folder at "crx-quickstart/install", so I don't believe I have an external data store.

1 Accepted Solution

Avatar

Correct answer by
Level 2

After some reading and testing, I was able to figure out what to do.  It looks like a brand new installation of AEM 6.5 doesn't automatically create an "install" directory under the crx-quickstart directory.  Before starting AEM for the first time, I created a crx-quickstart/install directory and placed a file inside named "org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.config".  Inside that config file, I have only one line:

 

customBlobStore=B"false"

 

 With that in place, all data is stored within the crx-quickstart directory when I start up AEM and upload/install a package.

View solution in original post

10 Replies

Avatar

Employee Advisor

Can you check I datastore directory is outside of the default AEM folder? Also, check the JVM tmp directory

Avatar

Level 2

Thanks for the quick reply!

I just checked the /system/console/status-Configurations page.  Am I correct that segment store is the default for a new AEM 6.5 instance?  This is what I'm seeing for Segment Store: 



PID = org.apache.jackrabbit.oak.segment.SegmentNodeStoreService

  BundleLocation = Unbound

  customBlobStore = true

  host = localhost

  name = Oak-Segment-Tar

  service.pid = org.apache.jackrabbit.oak.segment.SegmentNodeStoreService

  service.ranking = 100


Also, I'm setting the JVM tmp directory with -Djava.io.tmpdir and that directory is only 107MB, so it's not in tmp.

Avatar

Level 2
Or maybe a better question is: where can I view the configuration that tells me where the datastore directory is located?

Avatar

Level 2
In case this is useful information: Under crx-quickstart/repository I have three directories: blobids, index, and segmentstore. Their combined size is around 6GB.

Avatar

Employee Advisor
Go under crx-quickstart/install directory and you should see "org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config". That config file should have the path to datastore. By default, datastore is under crx-quickstart/repository but thats not the case here and it seems to be somewhere outside of AEM installtion

Avatar

Level 2
I looked under crx-quickstart, but there isn't an "install" directory there. Is that normally created by AEM after it starts up for the first time? I'm not sure why it wasn't in this case.

Avatar

Employee

You can check if you have an external data store configured by going through our documentation here. This will give you an idea if you have an external data store set up and where is the location of the data store

 

https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/data-store-config.h...

Avatar

Level 2
This new installation doesn't have a folder at "crx-quickstart/install", so I don't think I have an external data store. To reproduce my issue, I created a new directory, copied in the aem jar and my license.properties file, started up the instance, and then uploaded my 22GB package. The new instance is now 1.8GB on disk. What would you recommend trying next? Thank you for your help.

Avatar

Correct answer by
Level 2

After some reading and testing, I was able to figure out what to do.  It looks like a brand new installation of AEM 6.5 doesn't automatically create an "install" directory under the crx-quickstart directory.  Before starting AEM for the first time, I created a crx-quickstart/install directory and placed a file inside named "org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.config".  Inside that config file, I have only one line:

 

customBlobStore=B"false"

 

 With that in place, all data is stored within the crx-quickstart directory when I start up AEM and upload/install a package.