cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.2.b OutOfMemoryError

smcardle
Champ in-the-making
Champ in-the-making
Hi All

I have some serious concerns about the 4.2.b version I have just installed.

Environment

Centos 5.8 (2 x CPU) (6Gig RAM)
MySQL 5.5
OpenJDK 7
Tomcat 7

Basically I am getting hundreds of OutOfMemoryErrors in the catalina.log file regarding Solr

catalina.out:Exception in thread "SolrTrackingPool-alfresco961" java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot flush
(getting hundreds of these)


Here are my JVM settings

/usr/bin/java -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties -Xms4096m -Xmx4096m -Xss1024k -XX:NewSize=512m -XX:MaxPermSize=1024m -server -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -Dalfresco.home=/opt/alfresco -Djava.io.tmpdir=/opt/alfresco/tomcat/temp -Dcom.sun.management.jmxremote -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/alfresco/tomcat/endorsed -classpath /opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/opt/alfresco/tomcat -Dcatalina.home=/opt/alfresco/tomcat -Djava.io.tmpdir=/opt/alfresco/tomcat/temp org.apache.catalina.startup.Bootstrap start

As you can see I have 4 gig of RAM,  One Gig has been reserved for MaxPermSize just to try to get rid of these OutOfMemoryErrors. The stack size is 1meg etc etc.

What is going on here ?????

The CPU usage is running at about between 90% and 197% usage across the 2 processors and the used swap space starts to increase……

Share takes it's time doing content conversions and eventually it just all falls over in a pile of crap giving 500 server errors at the browser requiring a restart.
This happens over the period of just a couple of hours with just ONE user ????


Any ideas here would be good because I am just about out of them !!!!!

Steve
7 REPLIES 7

smcardle
Champ in-the-making
Champ in-the-making
Hi All again !!!!

Now we are getting the following errors in the logs and nothing is working again……


11:22:41,533 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,534 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:22:41,535 ERROR [org.apache.pdfbox.filter.FlateFilter] FlateFilter: stop reading corrupt stream due to a DataFormatException
11:59:51,381 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 09301395 Read-Write transaction started within read-only transaction
org.alfresco.error.AlfrescoRuntimeException: 09301395 Read-Write transaction started within read-only transaction
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:360)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   at org.alfresco.web.bean.repository.User.getUserPreferencesRef(User.java:220)
   at org.alfresco.web.bean.repository.User.getPreferences(User.java:188)
   at org.alfresco.web.bean.repository.PreferencesService.getPreferences(PreferencesService.java:55)
   at org.alfresco.web.bean.repository.PreferencesService.getPreferences(PreferencesService.java:45)
   at org.alfresco.web.bean.users.UserPreferencesBean.getContentFilterLanguage(UserPreferencesBean.java:116)
   at org.alfresco.web.app.servlet.AuthenticationHelper.setupThread(AuthenticationHelper.java:125)
   at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:271)
   at org.alfresco.repo.web.scripts.servlet.WebClientAuthenticatorFactory$WebClientAuthenticator.authenticate(WebClientAuthenticatorFactory.java:142)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:304)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:301)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68)
   at sun.reflect.GeneratedMethodAccessor748.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy249.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:140)
   at sun.reflect.GeneratedMethodAccessor748.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy249.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
12:17:41,765 WARN  [org.alfresco.repo.activities.post.lookup.PostLookup] Still busy …
12:22:10,395 WARN  [org.alfresco.repo.activities.post.lookup.PostLookup] Still busy …
12:45:40,781 WARN  [org.alfresco.repo.activities.post.lookup.PostLookup] Still busy …
13:23:40,107 WARN  [org.alfresco.repo.activities.post.lookup.PostLookup] Still busy …
13:24:30,466 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 09301713 Read-Write transaction started within read-only transaction
org.alfresco.error.AlfrescoRuntimeException: 09301713 Read-Write transaction started within read-only transaction
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:360)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   at org.alfresco.web.app.servlet.AuthenticationHelper.createUser(AuthenticationHelper.java:421)
   at org.alfresco.web.app.servlet.AuthenticationHelper.setUser(AuthenticationHelper.java:375)
   at org.alfresco.web.app.servlet.AuthenticationHelper.getUser(AuthenticationHelper.java:617)
   at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:176)
   at org.alfresco.repo.web.scripts.servlet.WebClientAuthenticatorFactory$WebClientAuthenticator.authenticate(WebClientAuthenticatorFactory.java:142)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:304)


Any ideas here anybody ?????

This is causing serious issues and we can't seem to find why these issues are occurring….


Steve

smcardle
Champ in-the-making
Champ in-the-making
Still VERY unhappy here….

I have now disabled Solr (no more OutOfMemeoryError's) and gone back to Lucene indexing.

CPU usage is still VERY high running at about 150%

Content transformation for preview in Share takes AAAAAGGGGGEEESSSSSSS…… Far to long for such small documents…

I am also now getting the following in the log files..

2012-10-30 19:00:30,973  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-15] Exception from executeScript - redirecting to status template error: 09300493 Failed to commit buffered response
org.alfresco.error.AlfrescoRuntimeException: 09300493 Failed to commit buffered response
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedResponse.writeResponse(RepositoryContainer.java:925)
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedResponse.access$400(RepositoryContainer.java:720)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:510)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:345)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: ClientAbortException:  java.io.IOException
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388)
   at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:371)
   at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:413)
   at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:401)
   at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
   at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:154)
   at org.alfresco.repo.web.scripts.RepositoryContainer$BufferedResponse.writeResponse(RepositoryContainer.java:920)
   … 27 more
Caused by: java.io.IOException
   at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:205)
   at org.apache.coyote.http11.InternalAprOutputBuffer.access$100(InternalAprOutputBuffer.java:37)
   at org.apache.coyote.http11.InternalAprOutputBuffer$SocketOutputBuffer.doWrite(InternalAprOutputBuffer.java:235)
   at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)
   at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
   at org.apache.coyote.Response.doWrite(Response.java:504)
   at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:383)
   … 33 more
2012-10-30 19:00:31,701  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-15] Internal error
java.lang.IllegalStateException: getOutputStream() has already been called for this response
   at org.apache.catalina.connector.Response.getWriter(Response.java:639)
   at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214)
   at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105)
   at org.springframework.extensions.webscripts.servlet.WebScriptServletResponse.getWriter(WebScriptServletResponse.java:198)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:330)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Oct 30, 2012 7:00:31 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [apiServlet] in context with path [/alfresco] threw exception
org.springframework.extensions.webscripts.WebScriptException: 09300004 Internal error
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:335)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response
   at org.apache.catalina.connector.Response.getWriter(Response.java:639)
   at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214)
   at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105)
   at org.springframework.extensions.webscripts.servlet.WebScriptServletResponse.getWriter(WebScriptServletResponse.java:198)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:330)
   … 21 more

9
Oct 30, 2012 7:00:32 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
   at org.apache.catalina.connector.Request.doGetSession(Request.java:2881)
   at org.apache.catalina.connector.Request.getSession(Request.java:2316)
   at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
   at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
   at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
   at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:516)
   at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:146)
   at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:125)
   at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:112)
   at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:65)
   at org.apache.jsp.jsp.error_jsp._jspService(error_jsp.java:67)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
   at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:450)
   at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:401)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:191)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)

9
Warning - unable to make sense of date EXPO1-011116060718Z
Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 4002
Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 4002
7


On top of all this, even after a FULL re-index with Lucene, when I do a general search for documents of a particular MIMETYPE i.e. HTML both Share and Alfresco only return one match ???? yet I have hundreds of documents in the repository with the mime type of HTML…. What's going on here ????

I validated this by navigating to several directories in the repository that I know to contain HTML files and checked the mimetype on the properties and sure enough…. they are defined as HTML.

I even dumped the DB table contents to a file, dropped the DB, re-created the DB and let Alfresco think this was a new installation instead of an upgrade.
I then emptied ALL data from ALL tables and then re-imported the original records, copied back the original content to the alf_data directory, set index mode to ALL, restarted Alfresco and let it re-index everything which took about 1 hour with the size of our repository….

Everything looked fine. Logon to Alfresco and Share search for any HTML documents and they both return one document….NOT good.
Try the same for Microsoft .doc files and it returns about the correct number in Alfresco and Share. Try .ppt files these seem OK as well

Try to view some documents in Share and …..wait…..wait….wait…  Rendered (about 1 minute for a 2 page text file) (about 1 minute for a 10 page PDF) (about 1.5 mins for a 400k doc file) come on,,,,, This is like running on a ZX81 I'm just waiting for the waivy lines and modem sounds to stop before the errors start popping up in the log files….

So far my experience has not been as advertised i.e. WOW 4.2 is speedyyyyyy……. infact I have the complete opposite experience of OMG 4.2 is about half as fast as 3.3 !!!!!!!

Now I am absolutely convinced that these issues are to do with either configuration OR JVM settings…. As I cannot believe I would be the ONLY person with issues here


So again I have the following setup

Centos 5.8 with 6Gig RAM and 2 x CPU
OpenJDK 7
Tomcat 7
Alfresco 4.2.b

Alfresco uses the LibreOffice / Image magick / pdf tools installed with Alfresco under the common directory. It uses the system installed OpenJDK 7 (yes I have checked this is Java 7)
$ java -version
openjdk version "1.7.0-u10-b07"
OpenJDK Runtime Environment (build 1.7.0-u10-b07-20121002)
OpenJDK 64-Bit Server VM (build 23.6-b03, mixed mode)
$

$ which java
/usr/bin/java
$

Here is the result of ps -ef | grep tomcat that shows all of my JDK options

$ ps -ef | grep tomcat
root     25120     1 99 18:37 pts/1    01:17:48 /usr/bin/java -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties -Xms4096m -Xmx4096m -Xss1024k -XX:NewSize=512m -XX:MaxPermSize=1024m -server -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -Dalfresco.home=/opt/alfresco -Djava.io.tmpdir=/opt/alfresco/tomcat/temp -Dcom.sun.management.jmxremote -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/alfresco/tomcat/endorsed -classpath /opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/opt/alfresco/tomcat -Dcatalina.home=/opt/alfresco/tomcat -Djava.io.tmpdir=/opt/alfresco/tomcat/temp org.apache.catalina.startup.Bootstrap start
$


And here is a snapshot of top with one user connected and NO user activity


top - 19:29:51 up  9:18,  2 users,  load average: 4.53, 4.65, 5.77
Tasks: 163 total,   5 running, 158 sleeping,   0 stopped,   0 zombie
Cpu(s): 91.0%us,  5.8%sy,  0.0%ni,  0.5%id,  1.7%wa,  0.3%hi,  0.7%si,  0.0%st
Mem:   6105588k total,  6069140k used,    36448k free,    36836k buffers
Swap:  2064376k total,   226780k used,  1837596k free,  1864028k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                       
25120 root      25   0 5989m 3.1g  37m S 187.7 53.1  82:41.66 java                                                                                                          
25071 mysql     15   0  510m 176m 6860 S  7.2  3.0   4:59.23 mysqld                                                                                                         


HEELLLLPPPPP ……

Steve

smcardle
Champ in-the-making
Champ in-the-making
Trying to view a 3K text document in Share…..


First attempt —- 2 minutes after request —– Error log shows following exception

2012-10-30 20:00:47,238  INFO  [webscripts.connector.RemoteClient] [http-apr-8080-exec-7] Error status 408 Read timed out
java.net.SocketTimeoutException: Read timed out
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:150)
   at java.net.SocketInputStream.read(SocketInputStream.java:121)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
   at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
   at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
   at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
   at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
   at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
   at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
   at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
   at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
   at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:1050)
   at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:707)
   at org.springframework.extensions.webscripts.connector.HttpConnector.call(HttpConnector.java:143)
   at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:293)
   at org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController.handleRequestInternal(EndPointProxyController.java:326)
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
   at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
   at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
   at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
   at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
   at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)


View does not show file


Try to view the same file again ——  30 seconds ——- Document is displayed NO Exception

30 seconds to transform and display a 2 paged 3K text file ……!!!!!!!

Steve

smcardle
Champ in-the-making
Champ in-the-making
Hi All

This 4.2.b release just seems to be completely broken.

I have several issues at the moment.

1. How come the solr directory seems to have regenerated all the indexes even though I switch indexing to Lucene and removed the solr index and spellchecker directories ? Were talking giga bytes of data here
2. I am now getting the following exception when trying to access the following URL  /alfresco/wcservice/AdminHome

08:22:00,479 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 100132043 Read-Write transaction started within read-only transaction
org.alfresco.error.AlfrescoRuntimeException: 100132043 Read-Write transaction started within read-only transaction
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:360)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   at org.alfresco.web.bean.repository.User.getUserPreferencesRef(User.java:220)
   at org.alfresco.web.bean.repository.User.getPreferences(User.java:188)
   at org.alfresco.web.bean.repository.PreferencesService.getPreferences(PreferencesService.java:55)
   at org.alfresco.web.bean.repository.PreferencesService.getPreferences(PreferencesService.java:45)
   at org.alfresco.web.bean.users.UserPreferencesBean.getContentFilterLanguage(UserPreferencesBean.java:116)
   at org.alfresco.web.app.servlet.AuthenticationHelper.setupThread(AuthenticationHelper.java:125)
   at org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:271)
   at org.alfresco.repo.web.scripts.servlet.WebClientAuthenticatorFactory$WebClientAuthenticator.authenticate(WebClientAuthenticatorFactory.java:142)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:304)
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:301)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68)
   at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy250.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:140)
   at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy250.doFilter(Unknown Source)
   at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)


I'm still seeing ~180% CPU usage on the Java process when any request goes to Alfresco and I'm still having issues rendering the content in Share i.e. it works 50% of the time the rest of the time I get Socket exceptions in the log, this seems to be because the response is taking too long.

I really need some help here from the Alfresco developers who monitor these forums

I seem to be getting a lot of views on this thread but no responses so far.

Regards

Steve

Reply to an old post in case it helps someone else moving forward.  solr is a separate webapp inside tomcat.  To make it stop running, go to your tomcat's Catalina/localhost directory (where contexts go) and remove the solr.xml file.

e.g., on my linux box with alfresco running under the built-in tomcat7, I do:
cd /etc/tomcat7/Catalina/localhost
sudo mv solr.xml .. # move it out of the way in case needed later.

or if you installed the 4.2.b bundle,
cd /opt/alfresco-4.2.b/tomcat/conf/Catalina/localhost
sudo mv solr.xml ..

throwback
Champ in-the-making
Champ in-the-making
Hi There,

I dumped SOLR too - too much trouble. When alfresco document a backup/restore process for it that works and I can follow, I'm sticking to lucene.

To remove solr:

shut down alfresco

remove solr directory from $alf_root/alf_data

remove solr.war and the solr file from $alf_root/tomcat/webapps

Edit alfresco-global.properties, set following:

### Solr indexing ###
index.subsystem.name=lucene
index.recovery.mode=FULL
dir.keystore=${dir.root}/keystore
#solr.port.ssl=8443

Next ensure you have deleted the lucene-indexes folder in $alf_root/alf_data  or the index recovery won't work.

finally set the following in tomcat/conf/tomcat-users.conf   (tomcat 7)

<tomcat-users>
  <role rolename="admin-gui"/>
  <role rolename="manager-gui"/>
  <user username="tomcat" password="yourpassword" roles="manager-gui,admin-gui"/>
  <user username="CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB" roles="repoclient" password="null"/>
  <user username="CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB" roles="repository" password="null"/>
</tomcat-users>

And next comment out the following in tomcat/conf/context.xml

<Valve className="org.apache.catalina.authenticator.SSLAuthenticator" securePagesWithPragma="false" />ntext.xml
Don't comment this out if you are using ssl on the main site.
the purpose of commenting this out is to enable login on the tomcat manager app so we can do the last step…

start alfresco again, watch tail tomcat/logs/catalina.out to check index rebuilding.

once index rebuild, log into tomcat manager at http://hostname:8080/  using the credentials you defined above and undeploy SOLR (shouldnt be running)

Then go back to your alfresco-global.properties file and be sure to set index.recovery.mode=AUTO or you will do full index recovery every time you fire up alfresco.

Finally give your alfresco another stop and start. I find with 4.2.b its worth adding a pause between the two.

As for the openoffice bit, I'm still working on it myself, but I think its unrelated to your SOLR problems.

Iain

throwback
Champ in-the-making
Champ in-the-making
Oh and Libreoffice on 4.2.b is broken out of the box (well not broken… its just needs some dependencies satisfied, a bit like Pete Doherty)

from the JIRA on this (https://issues.alfresco.com/jira/sr/jira.issueviews:searchrequest-fullcontent/temp/SearchRequest.htm...)

"Comment by David Ward [ 29-Oct-12 ]
The required packages are: fontconfig libSM libICE libXrender libXext

These are the exact commands that the user should run before installing Alfresco:

Ubuntu: sudo apt-get install sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1
SuSE: sudo zypper install xorg-x11-libICE xorg-x11-libSM xorg-x11-libXrender xorg-x11-libXext fontconfig
RedHat: sudo yum install libXrender libSM libICE libXext fontconfig "

libreoffice opened OK once I had installed deps.