You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using memcached to store object like com.abc.Data in my online system.But for some reason , I have to move this class to another package like com.def.Data.So , I do this and update the code in my test system.Both the test and the online system share the same memcached.
of cource , this will cause exceptions throws , because if the online system put the com.abc.Data into memcached by key "memcached_data", when the test system get it , it cannot find the class com.abc.Data because this class has been moved to com.def.Data.
But after a long period of time , I find the system throws exceptions:java.lang.OutOfMemoryError: Direct buffer memory. I debug the code and find that this is because when an ClassNotFoundException happened, the connection was freed but the connection counter does not change.this will make the system think that the connection pool is full and thus create a new connection always instead of reuse the connection..When connection is too much,a OutOfMemoryError happened.
The text was updated successfully, but these errors were encountered:
I am using memcached to store object like com.abc.Data in my online system.But for some reason , I have to move this class to another package like com.def.Data.So , I do this and update the code in my test system.Both the test and the online system share the same memcached.
of cource , this will cause exceptions throws , because if the online system put the com.abc.Data into memcached by key "memcached_data", when the test system get it , it cannot find the class com.abc.Data because this class has been moved to com.def.Data.
But after a long period of time , I find the system throws exceptions:java.lang.OutOfMemoryError: Direct buffer memory. I debug the code and find that this is because when an ClassNotFoundException happened, the connection was freed but the connection counter does not change.this will make the system think that the connection pool is full and thus create a new connection always instead of reuse the connection..When connection is too much,a OutOfMemoryError happened.
The text was updated successfully, but these errors were encountered: