On our LCES2 environment we are experiencing troubles with EOFexceptions when Content Services is under load.

Our process: Get document from CS -> Watermark the document -> Encrypt the document -> Store the document in CS.

When we programatically invoke this process 40 times about 20 items will be processed OK, the other 20 will stall with the exception as attached in the logfile.The files are small (about 1,8 MB), and when asked for separately (invoking one by one) all files processed directly (so no faulty files).

When we retry the stalled processes in the adminui half of them will be processed OK, half will stall. After retrying the stalled ones again, all requested documents are processed OK in most cases.

Does LC require specific configuration in the pooling configuration screen within the AdminUI for this specific process.? Or is other tuning/configuration needed? Current settings are all default.

ALC-CSV-030-005-Unable to retrieve content from [{0}]: ALC-CSV-30005-000: com.adobe.livecycle.contentservices.client.exceptions.CSInvocationException: ALC-CSV-030-005-Unable to retrieve content from [{0}]
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at com.adobe.contentservices.webscripts.impl.AbstractContentManager.deserializeObjectBytes(AbstractContentManager.java:2037)
at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.executeStream(ContentManagerImpl.java:480)
at com.adobe.contentservices.webscripts.impl.CSRetryingTransactionCallback.execute(CSRetryingTransactionCallback.java:45)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.execute(ContentManagerImpl.java:112)
at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:333)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:386)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:404)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:246)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:294)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
at com.adobe.contentservices.webscripts.impl.AbstractContentManager.getCSException(AbstractContentManager.java:233)
at com.adobe.contentservices.webscripts.impl.AbstractContentManager.handleException(AbstractContentManager.java:290)
at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.execute(ContentManagerImpl.java:124)
at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:333)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:386)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:404)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:246)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:294)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)

I was working on this case with Rob and he confirmed that increasing the max-pool-size to 50 made the requests being handled more reliable now. For details see the documentation at page 72: http://help.adobe.com/en_US/livecycle/9.0/prepareinstallsingle.pdf. The XML file to adjust is <LiveCycle installation folder>\jboss\server\lc_turnkey\deploy\adobe-ds.xml.