I am working on a JSF application that was written overseas and it has some performance issues.
Ive been trying to un开发者_Go百科derstand why the application might run slow and ive noticed that every backing bean is session scoped, and many beans use other beans, so they are likely all instantiated.
There are maybe 40 backing beans each containing around 4000 lines of code and lots of moving parts.
Can someone confirm or deny my hunch that all this crap in each session is making the application sluggish?
I don't think that this may be the cause of performance issues. Session scoped beans are only created once for a session. So subsequent requests won't create new instances of these beans. But of cause making all beans session scoped is far away from good practice! :-)
精彩评论