cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco deja de funcionar.

josmeldiaz21
Champ on-the-rise
Champ on-the-rise

Buenas tardes, soy nuevo en el grupo y manejando Alfresco. Tengo un problema, tengo un Servidor con Alfresco Community, pero se detiene y siempre tengo que reiniciarlo,, cuando hago

sudo service alfresco restart

al parecer hay problemas deteniendo el servicio para reiniciarlo. pues tengo que hacerlo de nuevo hasta que lo detenga, y quizás ahí radique el problema.

Pero no se que hacer para solucionarlo. Quisiera saber si a alguien le ha ocurrido.

1 ACCEPTED ANSWER

cesarista
World-Class Innovator
World-Class Innovator

Hola:

Yo en el archivo setenv.sh cambiaria el -Xmx2G por -Xmx4G y reiniciaría el servicio de Alfresco. Un valor recomendable podría ser entre el 50% y el 75% de la RAM, dependiendo de los otros procesos que tengas en la instancia (bbdd, libreoffice..). Un poco más de memoria heap le vendrá bien al proceso.

Saludos.

--C.

View answer in original post

15 REPLIES 15

psantis
Confirmed Champ
Confirmed Champ

y que dice el log? catalina.out?

No habia subido el log catalina.out porque hasta los momentos estaba funcionando bien, pero hoy empezó a trabajar extremadamente lento, que casi no dejaba hacer nada.

Peter Jhon Santis Sandoval escribió:

y que dice el log? catalina.out?

Aqui el catalina.out

2017-11-09 11:57:15,825 INFO [webscripts.connector.RemoteClient] [http-apr-8080-exec-40] Exception calling (GET) http://localhost:8080/alfresco/s/slingshot/doclib2/doclist/all/site/legal/documentLibrary/Usuarios/usuario/Clientes?filter=path&sortField=cm%3aname&sortAsc=true&view=browse&size=50&noCache=1510246490221&pos=1&alf_ticket=TICKET_381b32533feb18f4a1eb334546c3fd51e957537e
2017-11-09 11:57:15,826 INFO [webscripts.connector.RemoteClient] [http-apr-8080-exec-40] Error status 408 Read timed out java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:284)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:1162)
at org.springframework.extensions.webscripts.connector.RemoteClient.service(RemoteClient.java:930)
at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:653)
at org.springframework.extensions.webscripts.connector.RemoteClient.call(RemoteClient.java:587)
at org.springframework.extensions.webscripts.connector.HttpConnector.call(HttpConnector.java:70)
at org.springframework.extensions.webscripts.RequestCachingConnector.call(RequestCachingConnector.java:91)
at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:136)
at org.springframework.extensions.webscripts.ScriptRemoteConnector.call(ScriptRemoteConnector.java:95)
at org.springframework.extensions.webscripts.ScriptRemote.call(ScriptRemote.java:179)
at sun.reflect.GeneratedMethodAccessor2043.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49._c_surfDoclist_main_34(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:1154)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49._c_script_0(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:1177)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_49.exec(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:333)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:209)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:104)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:182)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:322)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:450)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2403)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Ese error indica que Share no puede conectar con Alfresco porque Alfresco está muy ocupado.

Podría intentar descubrir qué está haciendo Alfresco con un "kill -3" al PID del proceso Java.

Hyland Developer Evangelist

Cuando corrì el comando 

top

el uso de cpu está al 100%

TOP Alfresco

y vi que hay unos logs que pesan muchisimo( digo para ser un log.)

Peso de archivos Logs

Necesitas hacer un "kill -3 9006" para saber en qué anda ocupado el proceso Java...

Hyland Developer Evangelist

Lo hice, luego en que log puedo revisar? en el mismo catalina.out?

aqui el catalina.out (las ultimas 100 lineas)

"DefaultScheduler_Worker-1" #18 prio=3 os_prio=0 tid=0x00007fd91614a000 nid=0x2357 waiting for monitor entry [0x00007fd91965d000]
   java.lang.Thread.State: BLOCKED (on object monitor)
     at org.alfresco.repo.activities.post.lookup.PostLookup.releaseLock(PostLookup.java:806)
     - waiting to lock <0x000000009f1714c0> (a org.alfresco.repo.activities.post.lookup.PostLookup)
     at org.alfresco.repo.activities.post.lookup.PostLookup.execute(PostLookup.java:282)
     at org.alfresco.repo.activities.post.lookup.PostLookupJob.execute(PostLookupJob.java:50)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

"asynchronouslyRefreshedCacheThreadPool1" #15 daemon prio=5 os_prio=0 tid=0x00007fd915d53000 nid=0x2356 waiting on condition [0x00007fd919f5e000]
   java.lang.Thread.State: WAITING (parking)
     at sun.misc.Unsafe.park(Native Method)
     - parking to wait for  <0x000000009aa72a88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
     at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
     at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
     at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
     at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
     at java.lang.Thread.run(Thread.java:745)

"Timer-0" #14 daemon prio=5 os_prio=0 tid=0x00007fd9159a0800 nid=0x2346 in Object.wait() [0x00007fd91a85f000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
     at java.lang.Object.wait(Native Method)
     at java.util.TimerThread.mainLoop(Timer.java:552)
     - locked <0x00000000981e5558> (a java.util.TaskQueue)
     at java.util.TimerThread.run(Timer.java:505)

"Service Thread" #9 daemon prio=9 os_prio=0 tid=0x00007fd96c10a800 nid=0x233f runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread2" #8 daemon prio=9 os_prio=0 tid=0x00007fd96c0fd800 nid=0x233e runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" #7 daemon prio=9 os_prio=0 tid=0x00007fd96c0fb000 nid=0x233d waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #6 daemon prio=9 os_prio=0 tid=0x00007fd96c0f9000 nid=0x233c waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" #5 daemon prio=9 os_prio=0 tid=0x00007fd96c0f7000 nid=0x233b waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Surrogate Locker Thread (Concurrent GC)" #4 daemon prio=9 os_prio=0 tid=0x00007fd96c0f5800 nid=0x233a waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007fd96c0bd000 nid=0x2339 in Object.wait() [0x00007fd94b304000]
   java.lang.Thread.State: WAITING (on object monitor)
     at java.lang.Object.wait(Native Method)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
     - locked <0x0000000094e060d8> (a java.lang.ref.ReferenceQueue$Lock)
     at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
     at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007fd96c0bb000 nid=0x2338 in Object.wait() [0x00007fd94b405000]
   java.lang.Thread.State: WAITING (on object monitor)
     at java.lang.Object.wait(Native Method)
     at java.lang.Object.wait(Object.java:502)
     at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
     - locked <0x0000000094e02db8> (a java.lang.ref.Reference$Lock)

"main" #1 prio=5 os_prio=0 tid=0x00007fd96c00a800 nid=0x2331 runnable [0x00007fd9741c9000]
   java.lang.Thread.State: RUNNABLE
     at java.net.PlainSocketImpl.socketAccept(Native Method)
     at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
     at java.net.ServerSocket.implAccept(ServerSocket.java:545)
     at java.net.ServerSocket.accept(ServerSocket.java:513)
     at org.apache.catalina.core.StandardServer.await(StandardServer.java:453)
     at org.apache.catalina.startup.Catalina.await(Catalina.java:777)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:723)
     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:497)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

"VM Thread" os_prio=0 tid=0x00007fd96c0b6000 nid=0x2337 runnable

"Gang worker#0 (Parallel GC Threads)" os_prio=0 tid=0x00007fd96c01b800 nid=0x2332 runnable

"Gang worker#1 (Parallel GC Threads)" os_prio=0 tid=0x00007fd96c01d000 nid=0x2333 runnable

"Gang worker#2 (Parallel GC Threads)" os_prio=0 tid=0x00007fd96c01f000 nid=0x2334 runnable

"Gang worker#3 (Parallel GC Threads)" os_prio=0 tid=0x00007fd96c020800 nid=0x2335 runnable

"Concurrent Mark-Sweep GC Thread" os_prio=0 tid=0x00007fd96c063800 nid=0x2336 runnable

"VM Periodic Task Thread" os_prio=0 tid=0x00007fd96c10d800 nid=0x2340 waiting on condition

JNI global references: 449

Heap
par new generation   total 306688K, used 303029K [0x0000000080000000, 0x0000000094cc0000, 0x0000000094cc0000)
  eden space 272640K,  99% used [0x0000000080000000, 0x0000000090a3fff8, 0x0000000090a40000)
  from space 34048K,  89% used [0x0000000092b80000, 0x000000009492d530, 0x0000000094cc0000)
  to   space 34048K,   0% used [0x0000000090a40000, 0x0000000090a40000, 0x0000000092b80000)
concurrent mark-sweep generation total 1756416K, used 1756416K [0x0000000094cc0000, 0x0000000100000000, 0x0000000100000000)
Metaspace       used 232149K, capacity 241796K, committed 243092K, reserved 1263616K
  class space    used 26293K, capacity 27847K, committed 28144K, reserved 1048576K

Para poder analizarlo (con herramientas como http://fastthread.io/) necesitas todas las líneas del Thread Dump, no solo "las últimas líneas"...

Hyland Developer Evangelist

Gracias por responder @Angel Borroy. Soy muy nuevo en cuanto a java, cuando llegué el sistema ya estaba instalado y ahora es que esta presentando este problema. me podrías indicar como hacer este tipo de analisis? 

cesarista
World-Class Innovator
World-Class Innovator

Cuanta heap tiene tu proceso java ?

Lo de los logs puede ser normal, por ejemplo si hay muchas conexiones cmis o busquedas via SOLR...

Si no te interesa tener esos logs de access revisa este post:

Basic maintenaince of your Alfresco logs - Simple tips about Alfresco logs - zylk 

Saludos.

--C.