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
,containsODBCEscapeSequenc e=false,ca chingHint= 2,warning= null,error =null,erro rMessage=n ull,result sProcessor =sybase.is ql.Console ]
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError : Java heap space
at sun.java2d.loops.GraphicsP rimitiveMg r.register (Unknown Source)
Please check this error and help me.
Getting Out of memory error
*** OutOfMemoryError ***
Request type=3
,containsODBCEscapeSequenc
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError
at sun.java2d.loops.GraphicsP
Please check this error and help me.
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
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.propert ies
Change the property value for administrator.maxheapsize = 512m Eg:
# administrator
administrator.maxheapsize = 512m
After these changes, please restart the mirth services.
Mirth Server
Go to mirth installation directory and Change the value in C:\Program Files\Mirth Connect\mcserver.vmoptions
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.propert
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 TRIALMembers 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.
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