ismir-mirex / nemadiy

Automatically exported from code.google.com/p/nemadiy
0 stars 1 forks source link

Meandre server memory leak : CoordinatorJobBackend #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It doesn't seem like SEASR folks are going to fix the memory leak in 1.4.7,
we would have to do this ourselves.

Original issue reported on code.google.com by kumarami...@gmail.com on 2 Mar 2010 at 3:45

GoogleCodeExporter commented 9 years ago

Original comment by kumarami...@gmail.com on 2 Mar 2010 at 3:45

GoogleCodeExporter commented 9 years ago
2010.02.26 13:08:37.943::INFO:  Reading the realms file  
[org.meandre.webservices.MeandreServer$2.run] <Thread-6:11>
Exception in thread "MCT:0A0101012D5E" java.lang.OutOfMemoryError: Java heap 
space
       at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
       at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
       at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:176)
       at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:156)
       at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:40)
       at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:94)
       at java.io.PrintStream.<init>(PrintStream.java:100)
       at java.io.PrintStream.<init>(PrintStream.java:62)
       at
org.meandre.core.services.coordinator.backend.CoordinatorBackendAdapter.run(Coor
dinatorBackendAdapter.java:817)

Original comment by kumarami...@gmail.com on 2 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago

Stack trace from a different server, which was started same time as the first 
one.

2010.02.26 16:00:00.477::WARNING:  Server 0A0101012DBD marked as unreacheble  
[org.meandre.core.services.coordinator.backend.CoordinatorBackendAdapter.updateD
irtyServerStatusUncommitedTransact
ion] <MCT:0A0101012CFA:12>
Exception in thread "MCT:0A0101012CFA" java.lang.OutOfMemoryError: Java heap 
space
       at java.nio.CharBuffer.allocate(CharBuffer.java:312)
       at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:319)

       at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:267)      

       at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:186)2010.03.01
03:32:16.016::WARNING:  Security realm sync service:java.lang.OutOfMemoryError: 
Java
heap space   [org.meand
re.webservices.MeandreServer$2.run] <Thread-6:11>

Exception in thread "btpool0-1" java.lang.OutOfMemoryError: Java heap space
       at java.util.ArrayList.<init>(ArrayList.java:112)                            

       at org.mortbay.jetty.HttpFields.<init>(HttpFields.java:200)
       at org.mortbay.jetty.HttpConnection.<init>(HttpConnection.java:115)          

       at
org.mortbay.jetty.bio.SocketConnector.newHttpConnection(SocketConnector.java:111
)
       at
org.mortbay.jetty.bio.SocketConnector$Connection.<init>(SocketConnector.java:181
)   

       at org.mortbay.jetty.bio.SocketConnector.accept(SocketConnector.java:101)    

       at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:514)    

       at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) 

Original comment by kumarami...@gmail.com on 2 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago
This I think is fixed -needs to be confirmed. JDBC Driver for mysql has a bug 
you
need to close the Statement and PreparedStatements -closing result statement 
does not
completely free the prepared statement memory

Original comment by kumarami...@gmail.com on 2 Mar 2010 at 8:20

GoogleCodeExporter commented 9 years ago
Restarted server on Tue Mar  2 14:57:07 CST 2010 with the bug fix.

Original comment by kumarami...@gmail.com on 2 Mar 2010 at 8:58