OpenMRS crashes when adding encounters

8 views
Skip to first unread message

Avi

unread,
Apr 6, 2015, 8:20:08 PM4/6/15
to d...@openmrs.org
Hi guys,

I'm trying to add encounters to an already existing patient in the system and it won't let me. It gives the error:

Error while attempting to find concepts- could not execute query.

Then it crashes on the server. Did anyone have this issue? Any help will be appreciated.

A

Harsha Kumara

unread,
Apr 6, 2015, 10:51:07 PM4/6/15
to d...@openmrs.org
Hey Avi, 

It's strange. What is the opemrs version that you using? Can you post any backend exception? 

Thanks,
Harsha
--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. Please visit https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508 for details and to make necessary changes.

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.


--
Harsha Kumara
Software Engineer
WSO2 Inc.
Sri Lanka.

Avinash Saxena

unread,
Apr 9, 2015, 9:29:50 AM4/9/15
to d...@openmrs.org, Kesten Broughton
Hi Harsha,

Attached is the log file.
_____________________________________

We follow the instructions for Enterprise War + Existing Tomcat, Mysql according to http://openmrs.org/download/

We load in the dataset found here.
 

We've modified /etc/default/tomcat to increase the java heap and add the recommended JAVA_OPTS resulting in

> ps aux|grep java

tomcat6   2171  0.1 12.6 2516644 513644 ?      Sl   Apr04   6:24 /usr/lib/jvm/java-7-oracle/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tomcat6-tmp org.apache.catalina.startup.Bootstrap start


We had troubles with several of the modules causing tomcat/openmrs to crash so we have removed them from the /modules folder for the time being.

Please let us know if you see anything out of the ordinary.

Thanks,

Avi
openmrs_logs_03_06.txt

Harsha Kumara

unread,
Apr 9, 2015, 1:00:31 PM4/9/15
to d...@openmrs.org, Kesten Broughton
Hey Kesten,

You can set memory options catalina,sh file as follow.

export CATALINA_OPTS="-Xms4096M -Xmx5120M"
export JAVA_OPTS="-Dfile.encoding=UTF-8 -XX:PermSize=64m -XX:MaxPermSize=256m"

Anyway which modules that you tried to load? Some modules may not compattible with the current version of the OpenMRS core.

Thanks,
Harsha

*** FINAL WARNING: This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. Please visit https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508 for details and to make necessary changes.

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.

Harsha Kumara

unread,
Apr 9, 2015, 10:31:48 PM4/9/15
to Kesten Broughton, Avinash Saxena, Harsha Deeph, Sriharsha Ayinala, d...@openmrs.org
Great try that and let me know :)

On Thu, Apr 9, 2015 at 11:09 PM, Kesten Broughton <kbrou...@cognitivescale.com> wrote:
Thanks.  I was setting 

JAVA_OPTS="-Djava.awt.headless=true -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m"

Is there a way to know what CATALINA_OPTS is current defaulting to?

ps aux|grep catalina

/usr/lib/jvm/java-7-oracle/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tomcat6-tmp org.apache.catalina.startup.Bootstrap start

Hadn't changed the CATALINA_OPTS.  I will try that.  But our system is a 4Gb ram vm so I won't be able to set it as high. 


As for the modules, we were able to successfully add xforms.  But when I tried an install with all the bundled modules we saw errors.

I will submit questions on a case-by-case basis with logs and such as we add modules.


kesten

--
kesten broughton
devops @ cognitivescale
Reply all
Reply to author
Forward
0 new messages