RE: openjms server outofMemory

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <004901c54f93$184614c0$c87cfddc@xerces>
There are several issues here, each of which depend on how you are using
the server.
 
The garbage collector is described here:
http://openjms.sourceforge.net/config/gc.html.
 
If you are publishing NON_PERSISTENT messages and consumers aren't
acknowledging
messages fast enough,  then the server can run out of memory. This can be
alleviated
by setting a time-to-live value on the messages, so they expire.
 
If you are using the JDBM database (ie. openjms.db) , memory can run out
very quickly. 
In 0.7.6.x, there is also a bug: if you are publishing PERISTENT messages to
a topic and 
consuming them using non-durable topic subscribers, then they aren't removed
from the
database. See http://sourceforge.net/tracker/index.php?func=detail
<http://sourceforge.net/tracker/index.php?func=detail&aid=1165743&group_id=5
4559&atid=474136> &aid=1165743&group_id=54559&atid=474136
The JDBM has some fairly major limitations, and is not supported in the next
(0.7.7) release.
 
-Tim
 

-----Original Message-----
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of qiang zhou
Sent: Monday, 2 May 2005 11:07 PM
To: [email protected]
Subject: Re: [openjms-user] openjms server outofMemory


Hi:
  I have same problem. When you change the db conf ,then resoleve this
problem? Another, my openjms's db file alaways more then 1G or more. How can
i clear it and reduce that file fat and fat ?

jun liu <[email protected]> wrote:

Hello
My openjms server enviroment:RedHat7.0 
,openjms7.6(rmi,localhost,oracle9i),It runs well ,but server prints 
outofMemory every 48 hours,so we must restart it.I think it is caused by 
gc? any help is appricated!
setenv.sh设置如下:
JAVA_OPTS=-Xmx512m
openjms.xml相关配置如下: 


driver="oracle.jdbc.driver.OracleDriver" 
url="jdbc:oracle:thin:@hs-bossdb:1521:hsboss" 
user="bossv2_jms" 
password="bossv2jms2hurray"
maxActive="10"
maxIdle="5"
evictionInterval="3600"
testQuery="select sysdate from dual"/>


lowWaterThreshold="35"
garbageCollectionInterval="400"
garbageCollectionThreadPriority="5"/>

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user


__________________________________________________
Do You Yahoo!?
Tired of s pam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.