Hi! 

 

I have uploaded almost 100,000 records into DSpace (1.4.1 on windows).
While giving the InitializeBrowse command, the following error appears.
This went well when there were only 3000 records. Could you please
suggest how to proceed.

 

Thanks,

Jayan

 

E:\DSpace\bin>dsrun org.dspace.browse.InitializeBrowse

Using DSpace installation in: E:\DSpace

Indexing all Items in DSpace....Exception in thread "main"
java.lang.OutOfMemory

Error: Java heap space

        at java.lang.StringCoding$StringDecoder.decode(Unknown Source)

        at java.lang.StringCoding.decode(Unknown Source)

        at java.lang.String.<init>(Unknown Source)

        at java.lang.String.<init>(Unknown Source)

        at
org.dspace.storage.rdbms.DatabaseManager.process(DatabaseManager.java

:1257)

        at
org.dspace.storage.rdbms.TableRowIterator.next(TableRowIterator.java:

151)

        at org.dspace.content.Item.<init>(Item.java:145)

        at org.dspace.content.ItemIterator.next(ItemIterator.java:117)

        at org.dspace.browse.Browse.indexAll(Browse.java:606)

        at
org.dspace.browse.InitializeBrowse.main(InitializeBrowse.java:74)

org.postgresql.util.PSQLException: An I/O error occured while sending to
the bac

kend.

Exception: java.net.SocketException: Socket closed

Stack Trace:

java.net.SocketException: Socket closed

        at java.net.SocketOutputStream.socketWrite(Unknown Source)

        at java.net.SocketOutputStream.write(Unknown Source)

        at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

        at java.io.BufferedOutputStream.flush(Unknown Source)

        at org.postgresql.core.PGStream.flush(PGStream.java:508)

        at
org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.j

ava:675)

        at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.ja

va:190)

        at
org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionComman

d(AbstractJdbc2Connection.java:653)

        at
org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Co

nnection.java:690)

        at
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConne

ction.java:265)

        at
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConne

ction.java:265)

        at
org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.roll

back(PoolingDriver.java:348)

        at org.dspace.core.Context.abort(Context.java:251)

        at org.dspace.core.Context.finalize(Context.java:384)

        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)

        at java.lang.ref.Finalizer.runFinalizer(Unknown Source)

        at java.lang.ref.Finalizer.access$100(Unknown Source)

        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

End of Stack Trace

 

        at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.ja

va:217)

        at
org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionComman

d(AbstractJdbc2Connection.java:653)

        at
org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Co

nnection.java:690)

        at
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConne

ction.java:265)

        at
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConne

ction.java:265)

        at
org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.roll

back(PoolingDriver.java:348)

        at org.dspace.core.Context.abort(Context.java:251)

        at org.dspace.core.Context.finalize(Context.java:384)

        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)

        at java.lang.ref.Finalizer.runFinalizer(Unknown Source)

        at java.lang.ref.Finalizer.access$100(Unknown Source)

        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

java.sql.SQLException: Already closed.

        at
org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.j

ava:77)

        at
org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.clos

e(PoolingDriver.java:240)

        at
org.dspace.storage.rdbms.DatabaseManager.freeConnection(DatabaseManag

er.java:733)

        at org.dspace.core.Context.abort(Context.java:260)

        at org.dspace.core.Context.finalize(Context.java:384)

        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)

        at java.lang.ref.Finalizer.runFinalizer(Unknown Source)

        at java.lang.ref.Finalizer.access$100(Unknown Source)

        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to