d*******i 发帖数: 77 | 1 有没有人用过 Tomcat + Spring + Hibernate+ Hot Deployement
这些组合 存在Memory Leak, 讨论也充斥在网络, 貌似就没人又能解决, 所有的3rd
party code 都互相推卸责任。
linux 上我后来用一个小程序, 只有一个hibernate bean, 反复deploy 大约40次
server 就废了
windows 一次都不行, 因为hibernate.jar被锁住了。 |
k***r 发帖数: 4260 | 2 Did you send the sample code to the mailing lists?
Maybe some da niu on the list can fix it fairly quickly.
The locked jar file sounds like an easier one.
3rd
【在 d*******i 的大作中提到】 : 有没有人用过 Tomcat + Spring + Hibernate+ Hot Deployement : 这些组合 存在Memory Leak, 讨论也充斥在网络, 貌似就没人又能解决, 所有的3rd : party code 都互相推卸责任。 : linux 上我后来用一个小程序, 只有一个hibernate bean, 反复deploy 大约40次 : server 就废了 : windows 一次都不行, 因为hibernate.jar被锁住了。
|
m******t 发帖数: 2416 | 3
Problem is the issue has become more political than
technical.
May be harder than you think. It actually has to do with Sun's
classloader keeping locks on jars that it has loaded classes
from.
【在 k***r 的大作中提到】 : Did you send the sample code to the mailing lists? : Maybe some da niu on the list can fix it fairly quickly. : The locked jar file sounds like an easier one. : : 3rd
|
F****n 发帖数: 3271 | 4
~~~~~~~~~~
Why can't they write custom classloaders to read class files? It should be
easy.
【在 m******t 的大作中提到】 : : Problem is the issue has become more political than : technical. : May be harder than you think. It actually has to do with Sun's : classloader keeping locks on jars that it has loaded classes : from.
|
t*******e 发帖数: 684 | 5 Deployment memory leak是个JVM问题,用JRockit比较简单,SUN HotSpot JVM要调整PerGem的参数,否则PerGem里的class objects是virtually eternal,反复的deployment导致大量不同version class objects存在. |
m******t 发帖数: 2416 | 6
Don't know. I guess for many people (including me) hot deploy isn't
that big of a deal because a) we almost always restart the VMs
in environments other than local dev; b) in most of the cases each
server VM really hosts only one main application, so hot deploy is
practically as long as restarting the vm.
【在 F****n 的大作中提到】 : : ~~~~~~~~~~ : Why can't they write custom classloaders to read class files? It should be : easy.
|