Discussion:
[openjms-developer] [ openjms-Bugs-1164825 ] Out Of Memory Error
SourceForge.net
2005-03-16 21:56:58 UTC
Permalink
Bugs item #1164825, was opened at 2005-03-16 16:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1164825&group_id=54559

Category: server
Group: v0.7.6.1
Status: Open
Resolution: None
Priority: 5
Submitted By: anickles (anickles)
Assigned to: Nobody/Anonymous (nobody)
Summary: Out Of Memory Error

Initial Comment:
I am attempting to write and read fairly large messages
to and from a OpenJms message queue. I can read and
write an endless number of messages that are
1,256,000 bytes long. When I double the size, I can
write and read approximately a dozen messages before
getting the following error message:

Error [server - 9] - Failed to process message due to out
of memory error java.lang.OutOfMemoryError.

if I increase the size of the message to for example
6,000,000 bytes, I get the above error on the first
message.

I have tried this on two machines, one with a half
megabyte of memory and one with 2 megabyte of
memory. The results appear to be the same.

This leaves me with two questions. First, how can I
configure OpenJMS to accept larger message sizes?
Second, if I configure OpenJMS to use a database
repository, does this problem go away?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1164825&group_id=54559
SourceForge.net
2005-03-19 13:19:23 UTC
Permalink
Bugs item #1164825, was opened at 2005-03-17 08:56
Message generated for change (Comment added) made by tanderson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1164825&group_id=54559

Category: server
Group: v0.7.6.1
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: anickles (anickles)
Assigned to: Tim Anderson (tanderson)
Summary: Out Of Memory Error

Initial Comment:
I am attempting to write and read fairly large messages
to and from a OpenJms message queue. I can read and
write an endless number of messages that are
1,256,000 bytes long. When I double the size, I can
write and read approximately a dozen messages before
getting the following error message:

Error [server - 9] - Failed to process message due to out
of memory error java.lang.OutOfMemoryError.

if I increase the size of the message to for example
6,000,000 bytes, I get the above error on the first
message.

I have tried this on two machines, one with a half
megabyte of memory and one with 2 megabyte of
memory. The results appear to be the same.

This leaves me with two questions. First, how can I
configure OpenJMS to accept larger message sizes?
Second, if I configure OpenJMS to use a database
repository, does this problem go away?

----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2005-03-20 00:19

Message:
Logged In: YES
user_id=557161

First, don't use the JDBM. Use an RDBMS such as MySQL
instead. The JDBM has proved to be not very reliable and won't
be supported in the 0.7.7 release.

Second, you can increase memory available to the server by
adding a line to your $OPENJMS_HOME/setenv.sh (or .bat)
script e.g:

JAVA_OPTS=-Xmx256m


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1164825&group_id=54559
Loading...