开发者

Tomcat and Jetty differences when running Grails apps

开发者 https://www.devze.com 2023-01-07 12:34 出处:网络
has anybody worked with a Grails application in production in Jetty and Tomcat and has noticed any important differences ? I started having out of memory problems with tomcat 6.0.24 that were fixed wh

has anybody worked with a Grails application in production in Jetty and Tomcat and has noticed any important differences ? I started having out of memory problems with tomcat 6.0.24 that were fixed when I updated to 6.0.26, and I was wondering if Jetty had 开发者_JS百科that kind of issues too.


I have noticed problems were Tomcat sucks and Jetty doesn't:

Problem 1: Tomcat seems to have hot deployment memory leak (at least prior to version 7) compared to Jetty. If you hot deploy a few times the permgen space grows with each deploy. Possible solutions:

  • increase permgen space (temporary fix): -XX:PermSize=SIZE, -XX:MaxPermSize=SIZE (in sun jvm)
  • stop tomcat and deploy

Problem2: Tomcat doesn't put parameters in the payload section of a http PUT request. To get around this problem you can do one of following:

  • use POST instead (this imo is a hack)
  • read and parse the parameters using inpustream
  • pass the parameters through url
0

精彩评论

暂无评论...
验证码 换一张
取 消