Dear DSpace Team,
The following is error message received when running index-authority on the server, we have increased memory for java to 24 GB and we have very huge database as this is happening on production site, please advise as our system engineers beleives this error might not be memory related, if this is relating to memory how big should we increase the memory to be ably to re-index successfully. This setup was for first time done on the server and followed this documentation :
https://wiki.lyrasis.org/display/DSDOC5x/ORCID+Integration Your help is appreciated with hints to get this problem resolved.
bash-4.2$ ./dspace index-authority
Retrieving all data
Initialize org.dspace.authority.indexer.DSpaceAuthorityIndexer
Exception: Java heap space
java.lang.OutOfMemoryError: Java heap space
at org.hibernate.internal.util.collections.IdentityMap.entryArray(IdentityMap.java:160)
at org.hibernate.internal.util.collections.IdentityMap.concurrentEntries(IdentityMap.java:76)
at org.hibernate.event.internal.AbstractFlushingEventListener.prepareCollectionFlushes(AbstractFlushingEventListener.java:191)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:93)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:61)
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1166)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1223)
at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
at org.dspace.core.AbstractHibernateDAO.list(AbstractHibernateDAO.java:129)
at org.dspace.handle.dao.impl.HandleDAOImpl.getHandlesByDSpaceObject(HandleDAOImpl.java:61)
at org.dspace.handle.HandleServiceImpl.getInternalHandles(HandleServiceImpl.java:371)
at org.dspace.handle.HandleServiceImpl.findHandle(HandleServiceImpl.java:274)
at org.dspace.identifier.VersionedHandleIdentifierProvider.lookup(VersionedHandleIdentifierProvider.java:330)
at org.dspace.identifier.IdentifierServiceImpl.lookup(IdentifierServiceImpl.java:165)
at org.dspace.content.DSpaceObjectServiceImpl.getIdentifiers(DSpaceObjectServiceImpl.java:75)
at org.dspace.content.ItemServiceImpl.updateLastModified(ItemServiceImpl.java:252)
at org.dspace.content.ItemServiceImpl.updateLastModified(ItemServiceImpl.java:61)
at org.dspace.content.MetadataValueServiceImpl.update(MetadataValueServiceImpl.java:88)
at org.dspace.authority.AuthorityValue.updateItem(AuthorityValue.java:184)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.prepareNextValue(DSpaceAuthorityIndexer.java:199)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:132)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:157)
at org.dspace.authority.indexer.AuthorityIndexClient.main(AuthorityIndexClient.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
-bash-4.2$
Regards,
Lewatle