mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
18.40.2008 89c803ce85e8a88d54544bfe35f24c9be34758a3
refs
author gbellato <gbellato@localhost>
Thursday, September 18, 2008 08:40 +0200
committer gbellato <gbellato@localhost>
Thursday, September 18, 2008 08:40 +0200
commit89c803ce85e8a88d54544bfe35f24c9be34758a3
tree 6514258053059626723e8b71258841030ca2a00d tree | zip | gz
parent 297344cba976910a6572ab14fe59773cd5009f3a view | diff
Fix for issue 3477 : OpenDS runs out of synchronization or crashes

This problem happens because the cache of messages kept by the
Replication Servers are limited only by the a number of messages.

In the particular case of this tests, the entries used are very large
and modifications are done using large attribute values.
This cause the Replication Server caches to become too large and
the JVM runs out of memory.

The solution is to account not only for the number of messages but
also for the total number of bytes in the queues and to stop
caching messages in the queue when the maximum size is reached.
11 files modified
193 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/AddMsg.java 9 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java 11 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDNMsg.java 11 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMessage.java 7 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 57 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/MsgQueue.java 18 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationDbEnv.java 4 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 15 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerHandler.java 43 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/DbHandlerTest.java 6 ●●●●● diff | view | raw | blame | history