ConcurrentHashMap.ConnectionPhantomReference in NonRegisteringDriver is removed to old space
Posted by: leiwangdl wang
Date: January 27, 2015 04:35AM

Dear,

I have accessed mysql use DBCP+mysql-connector-java-5.1.34, and jvm young space is enough(10GB), -XX:MaxTenuringThreshold for jvm is setted as 32, young gc is happened every 30min, db-connection's minEvictableIdleTimeMillis that it is a paramter in dbcp is setted as 2min.

I think all db-connection object and its ConnectionPhantomReference is recovered while minor-gc happen, but ConnectionPhantomReference is moved to jvm old space after 32 minor-gc, and then it grow regularly every day.

I think there is strong refrence in ConcurrentHashMap to ConnectionPhantomReference object.

Above,

Options: ReplyQuote


Subject
Written By
Posted
ConcurrentHashMap.ConnectionPhantomReference in NonRegisteringDriver is removed to old space
January 27, 2015 04:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.