cancel
Showing results for 
Search instead for 
Did you mean: 

I have a memory problem with model uploaded to Dictionary/Models

yaqine
Champ on-the-rise
Champ on-the-rise

Hi, i create a custom model containing 2000 custom types, its a big model of 4 MB, I could upload it successfully to Dictionary/Models directory and enabled it, but when i try to access repository in share it gives me this error

2018-02-15 11:35:33,626  ERROR [webscripts.connector.RemoteClient] [http-apr-8080-exec-4] Error status 200

java.lang.OutOfMemoryError: Java heap space

2018-02-15 11:35:33,627  INFO  [web.scripts.DictionaryQuery] [http-apr-8080-exec-4] Successfully retrieved Data Dictionary from Alfresco.

2018-02-15 11:35:33,629  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-4] Exception from executeScript: 01150009 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js': 01150008 01150009 Failed to run action evaluator: 01150008 Failed during processing of dictionary information configuration from Alfresco: null

org.springframework.extensions.webscripts.WebScriptException: 01150009 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js': 01150008 01150009 Failed to run action evaluator: 01150008 Failed during processing of dictionary information configuration from Alfresco: null

at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:217)

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:399)

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:951)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

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:743)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)

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.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.springframework.extensions.webscripts.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:474)

at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:443)

at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)

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:218)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)

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:748)

Caused by: org.springframework.extensions.webscripts.WebScriptException: 01150008 01150009 Failed to run action evaluator: 01150008 Failed during processing of dictionary information configuration from Alfresco: null

at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:339)

at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:209)

... 60 more

Caused by: org.alfresco.error.AlfrescoRuntimeException: 01150009 Failed to run action evaluator: 01150008 Failed during processing of dictionary information configuration from Alfresco: null

at org.alfresco.web.evaluator.NodeTypeEvaluator.evaluate(NodeTypeEvaluator.java:105)

at org.alfresco.web.evaluator.BaseEvaluator.evaluate(BaseEvaluator.java:138)

at sun.reflect.GeneratedMethodAccessor710.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)

at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24._c_processItem_6(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:300)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.call(file:/alfresco/alfrescoDev/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__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24._c_processResult_4(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:381)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.call(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)

at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24._c_surfDoclist_main_34(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:1163)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.call(file:/alfresco/alfrescoDev/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__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24._c_script_0(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:1179)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.call(file:/alfresco/alfrescoDev/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__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.call(file:/alfresco/alfrescoDev/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js)

at org.mozilla.javascript.gen.file__alfresco_alfrescoDev_tomcat_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_components_documentlibrary_data_surf_doclist_get_js_24.exec(file:/alfresco/alfrescoDev/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)

... 61 more

Alfresco is running under this options :

Page d'accueil Java: /alfresco/alfrescoDev/java
Version Java: 1.8.0_131
Fournisseur Java VM: Oracle Corporation
Système d'exploitation: Linux
Version: 3.10.0-514.el7.x86_64
Architecture: amd64
Mémoire libre (Go): 1
Mémoire maximum (Go): 4,94
Mémoire totale (Go): 4,94
UC: 8
Thanks in advance!

2 REPLIES 2

cesarista
World-Class Innovator
World-Class Innovator

Hi:

2000 custom types ? It seems too many content types. I never did so many... in 10 years working with Alfresco.

Are you sure that is not there a more reusable way of reducing this number (via aspects for example) ?

If not, try to divide and conquer (but they are still too many). If not, try to deploy bootstrap better... instead using a  dynamic content model. 

On the other hand, your memory settings for an Alfresco instance are quite low, even if SOLR is in a dedicated instance.

Good luck.

Regards.

--C.

douglascrp
World-Class Innovator
World-Class Innovator

I can not remember about any project I worked on that had more than 10, max 15 types.

Something seems to be wrong, conceptualy speaking.