We are experiencing a problem running MySql 5 whereby under heavy load(with 2 connection and getting raw data from two or three table by a common java task that is running as infinite loop ), memory usage just continues to grow until it exceeds 2Gb and starts the machine swapping.
I also closing all resultset, statement and preparestatement in finally block and after that making it as null. But i could not find any solution.
Here are some vital statistics of our usage:
jdbc driver: mysql-connector-java-5.0.4-bin.jar
os: winXp 32 bit
mysql: mysql 5.0.18
We have approximately 2 connections being opened using snaq connection pool. version 4.8.