On Sat, Jun 13, 2015 at 5:13 AM, Ezsra McDonald <[email protected]> wrote:
> >> 2. Do both instances need to start with the same data? Can node1 contain > a > >> imported LDIF and will Node 1 eventual synchronize to node 2? > >> > >yes, they eventually synchronize > > Okay, I think I know what is happening. The node with the LDIF loaded in it > is logging the following error: > > INFO | jvm 1 | 2015/06/12 14:50:35 | Exception in thread > "pool-7-thread-1" java.lang.OutOfMemoryError: Java heap space > INFO | jvm 1 | 2015/06/12 14:50:35 | at > java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57) > INFO | jvm 1 | 2015/06/12 14:50:35 | at > java.nio.ByteBuffer.allocate(ByteBuffer.java:335) > > are there more stacktraces in the log, can you check apacheds.log > This is even after making these config changes: > > # Initial Java Heap Size (in MB) > wrapper.java.initmemory=2048 > > # Maximum Java Heap Size (in MB) > wrapper.java.maxmemory=2048 > did you make these changes at the instance level config file (the one under instances/default)? or at the server installation root level? > > > Any ideas? > > > On Thu, Jun 4, 2015 at 1:42 AM, Kiran Ayyagari <[email protected]> > wrote: > > > On Thu, Jun 4, 2015 at 5:44 AM, Ezsra McDonald <[email protected] > > > > wrote: > > > > > Greetings, > > > > > > I am new to ApacheDS. We are running v2.0 M19. I am having issues > getting > > > my pair of LDAP instances working in Multi Master mode. If you can > > answer a > > > few questions please: > > > > > > 1. Is it a problem if both instances are listening on port 10389 on > > > different hosts (Node 1 & Node 2)? Do they have to use different ports? > > > > > > no, not needed > > > > > 2. Do both instances need to start with the same data? Can node1 > contain > > a > > > imported LDIF and will Node 1 eventual synchronize to node 2? > > > > > yes, they eventually synchronize > > > > > > > > CONFIGURATION: > > > In my current setup I have imported the LDIF to both nodes. I > configured > > > Replication as follows using the Director Studio: > > > > > > * PORT: Both nodes listen on port 10389. > > > * ID: consumer host name > > > * REP MODE: Refresh and persist > > > * REMOTE HOST: Consumer host name > > > * REM PORT: 10389 > > > * BIND: uid=admin,ou=system > > > * BIND PW: NOT_SHARING :-P > > > * USE STARTTLS: enabled > > > * BASE DB: dc=www,dc=somewhere,dc=com > > > * FILTER: (objectClass=*) > > > * SCOPE: SUBTREE > > > * ATTRIBUTES: All > > > > > > > > > SYMPTOMS: > > > When I setup the Replication and restart the instances I am able to > login > > > to node 2 but node 1 won't allow me to connect. If I stop both nodes > and > > > start only node 1 I can login to node1. By login I am using Studio to > > login > > > as uid=admin,ou=system. > > > > > what error are you getting, can you post any errors from the server log > > > > > > > > If I run a netstat I can see a connection between each node. One from > > Node > > > 1 to Node 2 and one from node 2 to node 1. > > > > > > If I were to enable some debugging what particular logging should I > > enable? > > > > > you can use this config http://pastebin.com/5U7NuRir > > > > > > > > -Ez > > > > > > > > > > > -- > > Kiran Ayyagari > > http://keydap.com > > > -- Kiran Ayyagari http://keydap.com
