RT,JAVA相关。是会保存到tomcat(或者别的容器)关闭,还是一次连接完成之后即回收?两个不同的连接访问的static变量在内存区域里会是同一个吗?望解答,或指点应该从哪里获得答案。不胜感激。
http://stackoverflow.com/questions/13126833/does-the-garbage-collector-work-on-static-variables-or-methods-in-java
Static variables belong to the Class instance and will not be garbage collected once loaded (for most of the general Classloaders)