OpenMRS out of memory Error

19 views
Skip to first unread message

Sangeeta IIITD

unread,
Aug 9, 2010, 2:03:18 PM8/9/10
to moca-...@googlegroups.com
 
HI
 
Recently my Sana application uploaded nearly 3000 cases in Openmrs. After this OpenMRS starts giving "out of memeory error". So Is there any way to delete all the pending cases from moca queue?.  There is a table in openmrs called ""moca_queue_item",  dose deleting all the eneries from this table can help?
 
 
Thank ou

Regards..
Sangeeta
PhD Scholar(IIITD)

Katherine

unread,
Aug 9, 2010, 11:27:06 PM8/9/10
to moca-users
Hi Sangeeta,

Hmm I'm not sure if it's a storage issue. Do you have the full text of
the error? Is it similar to this error?

http://openmrs.org/wiki/Out_Of_Memory_Errors

I've seen the out of memory error before when we installed two
instances of OpenMRS on the same server. You could possibly restart
Tomcat to see if the error goes away, which worked before. Also I
think RJ modified the Tomcat settings in the server to run with
increased memory size. I don't quite remember which file on the server
contained these settings, so you may need to search online to figure
out where these settings are.

"Start Tomcat with the parameters:

-Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=256m -
XX:NewSize=128m
at the command line. (The current ANT task "Start Tomcat" will
start with these options.)"

Also if you delete the contents of the moca_queue_item table, I think
it may cause some errors because the table has dependencies with other
tables, such as the obs table and the encounters table, so you may
need to clear those too. I would recommend against this because
hopefully the error gets fixed by the above options.

Let me know how it turns out,
Kat

Mostafizur Rahman

unread,
Aug 9, 2010, 11:52:13 PM8/9/10
to moca-...@googlegroups.com
Hi, if you use tomcat on windows please select configure from tomcat and give your required size. see the pic as attachment.

thanks

mostafiz
--
Thanks

Md. Mostafizur Rahman
Java Developer
Business Automation Ltd.
cell:+8801715056578
mail:mosta...@dhaka.net
tomcatSetting.jpg

Sangeeta IIITD

unread,
Aug 10, 2010, 12:35:20 AM8/10/10
to moca-...@googlegroups.com

Hi

I had tried all the above things but it does not work. Increasing memory of tomcat just hangs the entire system.

Thank you


Regards..
Sangeeta
PhD Scholar(IIITD)
Reply all
Reply to author
Forward
0 new messages