[
https://jira.jboss.org/jira/browse/JGRP-1180?page=com.atlassian.jira.plug...
]
Bela Ban commented on JGRP-1180:
--------------------------------
You would have to change your config to accommodate only 8 MB of heap, e.g. reduce the
number of credits in FC, decrease the buffer sizes in the transport, make STABLE more
aggressive and so on.
8 MB of heap is not a scenario that I see in the real world, therefore I'm going to
close this issue, unless you have a plausible argument to keep it open
OutOfMemoryError
----------------
Key: JGRP-1180
URL:
https://jira.jboss.org/jira/browse/JGRP-1180
Project: JGroups
Issue Type: Bug
Affects Versions: 2.8
Environment: 2.8.0.GA
Reporter: Peter Kormos
Assignee: Bela Ban
Hi Guys,
I wrote a simple program.
public testbed() throws Exception
{
JChannel channel = new JChannel();
channel.connect("channelName");
for (int i = 0; i < 100000000; i++)
{
Message msg = new Message(
null,
null,
"Test");
channel.send(msg);
// Thread.sleep(10);
if (i % 1000 == 0)
System.out.print(".");
}
}
When I run it with
java -Xmx8m -XX:+HeapDumpOnOutOfMemoryError -cp .;jgroups-all.jar testbed
not always, but quite often it dies with OutOfMemoryError
When I look at the heap dump with jhat, for "Instance Counts" it tells me
22036 instances of class org.jgroups.Message
22036 instances of class org.jgroups.protocols.pbcast.NakAckHeader
22036 instances of class org.jgroups.util.Headers
21316 instances of class org.jgroups.Event
21314 instances of class org.jgroups.util.Queue$Element
304 instances of class org.jgroups.util.UUID
Why are there so many message objects stuck in memory?
java org.jgroups.Version prints
Version: 2.8.0.GA
CVS: $Id: Version.java,v 1.81 2009/12/01 10:31:13 belaban Exp $
I'm using Windows Xp with 1.6 JDK
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira