On Sat, Jun 13, 2015 at 3:58 PM, Emmanuel Lécharny <[email protected]> wrote:
> Le 13/06/15 08:41, Pontus Freyhult a écrit : > > Hej, > > > >>>> 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) > >> > >> 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 > >> > >> > >> Any ideas? > > [..] > > > > I believe we are seeing the same issue. I've done some troubleshooting > > but not enough that I wanted to raise it just yet, but from what we've > > been seeing my guess is that we're hitting on some kind of leak when > > doing replication (that we're not seeing otherwise). Raising the > > memory available for the java environment only delays the "lockup" of > > the first server, it does not avoid it - I believe we've tested with > > giving it up to at least 16 Gbytes of RAM. > > Ok, seems quite clear. At this point, we would need some memory traces > to be able to see what's going on. > > yes, a trace would be really helpful > Can someone run |jmap -dump:format=b,file=cheap.bin <pid> on a server > where this error appears ? (<pid> is the process' pid) and attach the > result to a JIRA ? > my experience with jmap was bitter, it killed the process everytime I tried, I suggest to use gdb instead to take the memory dump and then use jmap to convert it to hprof format , please see this[1] page if you need some pointers [1] http://blogs.atlassian.com/2013/03/so-you-want-your-jvms-heap/ > > Many thanks ! > | > -- Kiran Ayyagari http://keydap.com
