glassfish/tomcat Java Server load class once
问题 I am using glassfish v2 but I've had the same problem in tomcat. Once the server starts, I see: sudo jmap -histo:live 14127 | grep KVStore 6222: 1 24 xxx.xxx.KVStore After a while of usage, I get: sudo jmap -histo:live 14127 | grep KVStore 7240: 1 24 xxx.xxx.KVStore 7360: 1 24 xxx.xxx.KVStore While I'm guessing this has something to do with how glassfish scales out, this is really problematic because I use the KVStore as an in memory storage class. It is a singleton class with a static