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

gbellato
18.40.2008 66f48672bc7953e77364a9a7ae41f1e70d83534f
refs
author gbellato <gbellato@localhost>
Thursday, September 18, 2008 08:40 +0200
committer gbellato <gbellato@localhost>
Thursday, September 18, 2008 08:40 +0200
commit66f48672bc7953e77364a9a7ae41f1e70d83534f
tree 264a57de79f2acc9e1d780afa74b27c6e69111e8 tree | zip | gz
parent f6f3245e89f4ea7758f592fa044dde87d1fd51b8 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
opends/src/server/org/opends/server/replication/protocol/AddMsg.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java 11 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ModifyDNMsg.java 11 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/UpdateMessage.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java 57 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/MsgQueue.java 18 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDbEnv.java 4 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 15 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 43 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/DbHandlerTest.java 6 ●●●●● diff | view | raw | blame | history