AnsweredAssumed Answered

java heap space error when syncing with AD

Question asked by numan85 on Feb 3, 2011

I saw multiple Java heap space error posts here but non of them seemed to do the trick for me. I'm not sure if i'm just trying too sync too many users and Alfresco can't handle it. I am running a VM with windows server 2003 64 bit, it has 8 gigs of ram, and a 150 gig hard drive and im running Alfresco 3.4c. Based on the logs, they sync gets to about 62% and then gives me the java heap space error. Please see below

16:18:17,842  INFO  [security.sync.ChainingUserRegistrySynchronizer] ssaAD User Creation and Association: Processed 14300 entries out of 23043. 62% complete. Rate: 5 per second. 11 failures detected.
Exception in thread "Store org.alfresco.cache.ticketsCache Spool Thread" java.lang.OutOfMemoryError: Java heap space
   at java.util.concurrent.ConcurrentHashMap.size(
16:26:29,314  ERROR [post.lookup.PostLookup] Exception during update of posts
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(
   at java.lang.AbstractStringBuilder.expandCapacity(
   at java.lang.AbstractStringBuilder.append(
   at java.lang.StringBuffer.append(
   at org.apache.commons.dbcp.PoolingConnection$PStmtKey.hashCode(
   at java.util.HashMap.get(
   at org.apache.commons.pool.impl.GenericKeyedObjectPool.addObjectToPool(
   at org.apache.commons.pool.impl.GenericKeyedObjectPool.returnObject(
   at org.apache.commons.dbcp.PoolablePreparedStatement.close(
   at org.apache.commons.dbcp.DelegatingStatement.close(
   at com.ibatis.sqlmap.engine.scope.SessionScope.closePreparedStatements(
   at com.ibatis.sqlmap.engine.transaction.TransactionManager.end(
   at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.endTransaction(
   at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.endTransaction(
   at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.endTransaction(
   at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.autoEndTransaction(
   at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(
   at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(
   at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(
   at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(
   at org.alfresco.repo.domain.activities.ibatis.ActivityPostDAOImpl.selectPosts(
   at org.quartz.simpl.SimpleThreadPool$

At the top of my file i have JAVA_OPTS = "$JAVA_OPTS -Xms512m -Xmx3072m"

Am i doing something wrong or am I just trying to import too many users? Please help

Thanks in advance!