Link to home
Start Free TrialLog in
Avatar of Rajendra Ongole
Rajendra Ongole

asked on

Out of memory error

Running some hourly query using sybase client in my linux machine.

Getting Out of memory error

*** OutOfMemoryError ***
Request type=3


,containsODBCEscapeSequence=false,cachingHint=2,warning=null,error=null,errorMessage=null,resultsProcessor=sybase.isql.Console]
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
        at sun.java2d.loops.GraphicsPrimitiveMgr.register(Unknown Source)


Please check this error and help me.
Avatar of Prabhin MP
Prabhin MP
Flag of India image

hi,
Create a file  cache_clear.sh

 vi /root/cache_clear.sh
ADD the following lines

free && sync && echo 3 > /proc/sys/vm/drop_caches && free

#!/bin/bash
sync

echo 3 > /proc/sys/vm/drop_caches


and Setup cron job for this

05 * * * * sh /root/cache_clear.sh
It's your Java code that's causing that. That's where the fix should take place. Please post your code
can u share the output of free -m
Avatar of gobinath raju
gobinath raju

n the Mirth 3.3.1 or later versions, To increase the heap size for

Mirth Server

    Go to mirth installation directory and Change the value in C:\Program Files\Mirth Connect\mcserver.vmoptions Change the Value for '-Xmx256m' to '-Xmx1024m'. This line sets the vlaues to 1GB.

EG:

-server
-Xmx512m
-Djava.awt.headless=true

Mirth Client

    Go to mirth installation directory and go to Config directory and Change the value in C:\Program Files\Mirth Connect\conf\mirth.properties

Change the property value for administrator.maxheapsize = 512m Eg:

# administrator
administrator.maxheapsize = 512m

After these changes, please restart the mirth services.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.