LogicalDoc not responding at all. I need help!

LogicalDOC has many interesting features, but requires some configuration process to show its full potential.

Moderator: car031

1000camels
Posts: 1
Joined: Fri May 19, 2017 6:18 am

LogicalDoc not responding at all. I need help!

Fri May 19, 2017 6:29 am

Hi,

I am new to logicalDoc CE and my Tomcat experience isn't great.
I am trying to help someone get their LogicalDoc server working again. It stopped and we have no idea what happened.

I have tried to put all Tomcat logs into Debug mode, but they aren't really showing anything. The server is starting. I can telnet to it, but with the logicaldoc webapp installed, a GET / does not return at all. As soon as I move the logicaldoc webapp, Tomcat responds as usual.

Tomcat is showing that the logicaldoc plugin is started:

Intialising plugin: {PluginDescriptor: uid=logicaldoc-webservice@6.7.3}
plugin located: jar:file:/var/www/vhosts/logicaldoc/tomcat/webapps/logicaldoc/WEB-INF/lib/logicaldoc-webservice-6.7.3-plugin.jar!/plugin.xml
Activated plugin logicaldoc-webservice

I also have seen this in my localhost log:

[19/May/2017:04:46:46 +0800] "POST /logicaldoc//services/Auth HTTP/1.1" 404 5

Finally, the logicaldoc log returns the following:

19.05.2017 12:44:38,860 INFO (org.java.plugin.registry.xml.ManifestParser: 108) -- got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl@ea5bbf5
19.05.2017 12:44:38,863 INFO (org.java.plugin.registry.xml.PluginRegistryImpl: 109) -- configured, stopOnError=false, isValidating=true
19.05.2017 12:44:38,930 INFO (org.java.plugin.registry.xml.PluginRegistryImpl: 268) -- plug-in and fragment descriptors registered - 5
19.05.2017 12:44:38,940 INFO (com.logicaldoc.core.task.TaskManager: 49) -- Append the task StatsCollector to the scheduler
19.05.2017 12:44:38,950 INFO (com.logicaldoc.core.task.TaskManager: 49) -- Append the task DigestProcessor to the scheduler
19.05.2017 12:44:38,957 INFO (com.logicaldoc.core.task.TaskManager: 49) -- Append the task ProductNews to the scheduler
19.05.2017 12:44:38,964 INFO (org.java.plugin.standard.StandardPluginManager: 421) -- plug-in started - logicaldoc-core@6.7.3 (active/total: 1 of 5)
19.05.2017 12:44:38,964 INFO (org.java.plugin.standard.StandardPluginManager: 421) -- plug-in started - logicaldoc-gui@6.7.3 (active/total: 2 of 5)
19.05.2017 12:44:38,977 INFO (org.java.plugin.standard.StandardPluginManager: 421) -- plug-in started - logicaldoc-cmis@6.7.3 (active/total: 3 of 5)
19.05.2017 12:44:38,979 INFO (org.java.plugin.standard.StandardPluginManager: 421) -- plug-in started - logicaldoc-webdav@6.7.3 (active/total: 4 of 5)
19.05.2017 12:44:38,981 INFO (org.java.plugin.standard.StandardPluginManager: 421) -- plug-in started - logicaldoc-webservice@6.7.3 (active/total: 5 of 5)
19.05.2017 12:44:38,997 INFO (org.springframework.web.context.ContextLoader: 194) -- Root WebApplicationContext: initialization started
19.05.2017 12:44:39,027 INFO (org.springframework.web.context.support.XmlWebApplicationContext: 456) -- Refreshing Root WebApplicationContext: startup date [Fri May 19 12:44:39 HKT 2017]; root of context hierarchy
19.05.2017 12:44:39,070 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/context.xml]
19.05.2017 12:44:39,092 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from URL [jar:file:/var/www/vhosts/logicaldoc-6.7.3-tomcat-bundle/tomcat/webapps/logicaldoc/WEB-INF/lib/logicaldoc-cmis-6.7.3-plugin.jar!/context/context-cmis.xml]
19.05.2017 12:44:39,234 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from URL [jar:file:/var/www/vhosts/logicaldoc-6.7.3-tomcat-bundle/tomcat/webapps/logicaldoc/WEB-INF/lib/logicaldoc-core-6.7.3-plugin.jar!/context/context-core.xml]
19.05.2017 12:44:39,277 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from URL [jar:file:/var/www/vhosts/logicaldoc-6.7.3-tomcat-bundle/tomcat/webapps/logicaldoc/WEB-INF/lib/logicaldoc-webdav-6.7.3-plugin.jar!/context/context-webdav.xml]
19.05.2017 12:44:39,284 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from URL [jar:file:/var/www/vhosts/logicaldoc-6.7.3-tomcat-bundle/tomcat/webapps/logicaldoc/WEB-INF/lib/logicaldoc-webservice-6.7.3-plugin.jar!/context/context-webservice.xml]
19.05.2017 12:44:39,307 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
19.05.2017 12:44:39,321 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
19.05.2017 12:44:39,336 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader: 315) -- Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
19.05.2017 12:44:39,512 INFO (com.logicaldoc.util.spring.PropertiesPlaceHolder: 177) -- Loading properties file from URL [file:/var/www/vhosts/logicaldoc-6.7.3-tomcat-bundle/tomcat/webapps/logicaldoc/WEB-INF/classes/context.properties]
19.05.2017 12:53:37,711 INFO (hsqldb.db.HSQLDB4154E17942.ENGINE: ?) -- Database closed
19.05.2017 12:53:54,869 FATAL (hsqldb.db.HSQLDB4154E17942.ENGINE: ?) -- could not reopen database
org.hsqldb.HsqlException: java.lang.OutOfMemoryError: Java heap space


The java heap space is confusing because this is a machine with 6GB RAM. It starts fine, does not respond and then eventually the memory grows.
I've followed the logicaldoc guidelines for the JAVA_OPTS. I am using the following: -server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80

Obviously it is having trouble. But how can I fix it? Any ideas about what I can do? Is there anyone in the community who can help me?

I appreciate any help!

Darcy
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: LogicalDoc not responding at all. I need help!

Wed May 24, 2017 10:40 am

Hi Darcy,
clearly your problem is due to a memory constraint

Code: Select all

org.hsqldb.HsqlException: java.lang.OutOfMemoryError: Java heap space
If you're using a JVM 64 bit you can address memory without problem,
but if you're using a JVM 32 bit you can just assign 1400 o 1500 MB as max memory for Java Process.

Increase the memory for permanent generation (if you're using JVM SE 7 or JVM 1.7)
-Xmx2000m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true

Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 6 guests