I have a B4J server app using Jetty on a Windows VPS
The database it uses is Postgres.
In the pgadmin tool you can see the connections and the current query for each of those.
What I am noticing is that some older connections never show a current query.
I've gone through the code several times and all sql connections and resultsets
are locally declared and all are closed before exiting the sub
Dim sql1 As SQL = pool.GetConnection
Dim RS As ResultSet
Try
Catch
End Try
RS.Close
sql1.close
Return s
Last week I started monitoring the app using JConsole. Below are 3 screenshots
from it, the overview, the heap memory usage and the non-heap memory usage.
You can see that a few days ago the memory usage suddenly increased and has
been more volatile since then.
The request logs show a steady number of requests. although last weekend (the first few days )
were quieter because of the Easter Holidays.
I expect memory usage to jump again and at some point I'll have to restart the app because it
will have become unresponsive.