Memory problems : Out Of Memory error when reindexing

If you are experiencing problems with the reindex crashing because of 'Out Of Memory' errors it might be that your Asset Bank needs to be upgraded.

Older versions of Asset Bank have this issue when configured with a big amount of Categories.
This has been already fixed in newer versions so you just need to upgrade your Asset Bank or, if you are not in the update program, please contact our customer support at support@assetbank.co.uk.


To check whether you need an upgrade please be sure that your version is earlier than 3.659 and you can see the following error in Tomcat log file:

[ERROR] AssetBank-Standard - An error occurred during a manual reindex <java.lang.OutOfMemoryError: Java heap space>java.lang.OutOfMemoryError: Java heap space at java.lang.Object.clone(Native Method)
at com.bright.framework.category.bean.Category.clone(Category.java:203)
at com.bright.framework.category.bean.Category.clone(Category.java:278)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryList(CategoryUtil.java:588)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryAncestors(CategoryUtil.java:605)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryAncestors(CategoryUtil.java:609)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryAncestors(CategoryUtil.java:609)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryAncestors(CategoryUtil.java:609)
at com.bright.framework.category.util.CategoryUtil.cloneCategoryAncestors(CategoryUtil.java:609)
at com.bright.framework.category.bean.Category.clone(Category.java:193)
at com.bright.framework.category.bean.Category.deepClone(Category.java:273)
at com.bright.framework.category.service.CategoryManager.getCategoriesForItem(CategoryManager.java:850)
at com.bright.assetbank.application.service.FileAssetManagerImpl.getAssets(FileAssetManagerImpl.java:896)
at com.bright.assetbank.application.service.FileAssetManagerImpl.getAssetsByIdAndBatchSize(FileAssetManagerImpl.java:580)
at com.bright.assetbank.application.service.AssetManager.getAssetsByIdAndBatchSize(AssetManager.java:1592)
at com.bright.assetbank.search.service.MultiLanguageSearchManager.loadIndexableDocuments(MultiLanguageSearchManager.java:254)
at com.bright.assetbank.search.service.MultiLanguageSearchManager.rebuildIndex(MultiLanguageSearchManager.java:394)
at com.bright.framework.search.service.ManualReindexQueueManager.processQueueItem(ManualReindexQueueManager.java:65)


Was this article helpful?

Yes No

Thanks for your feedback!