随笔-77  评论-5  文章-2  trackbacks-0

最近做性能测试,使用jprofile + microsoft web stress tool  测tomcat上的网页.

做了个网页例子,和.net对比速度,发现速度比不过.net

 

用jprofile 跟踪多并发情况,发现在

bean:write 在写整数和日期类型时,会找格式,并且从properties中找不同语言版本的格式.于是会访问

WriteTag.retrieveFormatString

  TagUtils.getInstance().message

       PropertyMessageResource.getMessage(Locale locale, String key)

 

PropertyMessageResource.getMessage(Locale locale, String key) 中有个synchronized 块,这里导致了代码的等待时间过长.

    


文章来源:http://stocknewbie.bokee.com/viewdiary.15201750.html
posted on 2009-05-01 10:52 huohuo 阅读(144) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: