pesaply / smslib

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

SMSSvr Memory Leak #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Server has a linear memory (rise proportional to polling speed) leak due to
the jdbc Field (char[] buffered) not being collected. SMSSvr.sendMessages()
needs to close ResultSet and Statement at the completion of the while loop
to resolve that issue.

What steps will reproduce the problem?
1. Start up SMSSvr
2a. Let the application run through several processing iterations
2b. Observe the survived generations over time (netbeans, jConsole)
3. Identify the highest generation object is char[] with a trace leading to
jdbc Field.

What version of the product are you using? 
3.0.2

Steps to resolve:
Close the ResultSet and Statement objects inside SMSSvr.sendMessage():
while (rs.next()) 
{
   ...
}
rs.close();
cmd.close();

Original issue reported on code.google.com by shaunmur...@gmail.com on 9 Aug 2007 at 1:41

GoogleCodeExporter commented 9 years ago
Fixed, scheduled for v3.0.3 release.

Original comment by T.Delenikas on 9 Aug 2007 at 6:22