Results 1 to 3 of 3

Thread: Need Advice to improve my application performance

  1. #1
    Join Date
    Jul 2006
    Posts
    19

    Default Need Advice to improve my application performance

    Hello All,

    I am involved in a J2EE project where we are using spring for first time.

    We basically have three layers. Presentation (Struts Action and JSP), business layer (POJO), DAO layer (POJO which uses JdbcTemplate to perform database operations). We are using stored procedures extensively.

    All these components are wired through applicationContext.xml. I would like your opinion on some of points

    1. All beans (struts actions, business POJO, dao POJO) are right now singletons. Will this be an issue in the multiuser environment?
    2. Will it impact overall performance of the application?
    3. To monitor performance, we added an interceptor class, which logs start, end time for each executing method. Will this impact performance?
    4. What options are available in spring to improve application performance.

    Your reply will be appreciated.

    - Shriram

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Quote Originally Posted by annijos View Post
    Hello All,

    I am involved in a J2EE project where we are using spring for first time.

    We basically have three layers. Presentation (Struts Action and JSP), business layer (POJO), DAO layer (POJO which uses JdbcTemplate to perform database operations). We are using stored procedures extensively.

    All these components are wired through applicationContext.xml. I would like your opinion on some of points

    1. All beans (struts actions, business POJO, dao POJO) are right now singletons. Will this be an issue in the multiuser environment?
    2. Will it impact overall performance of the application?
    3. To monitor performance, we added an interceptor class, which logs start, end time for each executing method. Will this impact performance?
    4. What options are available in spring to improve application performance.

    Your reply will be appreciated.

    - Shriram
    1. These are Spring singletons, its not a issue. Just ensure they are stateless or you have to think about threading issues.

    2. I've never found Spring to be the cause of our performance issues.

    3. Logging will have some performance impact, but again we've never found it be an issue. Just ensure you are sensible about the logging.

    4. What performance are you trying to improve?

  3. #3
    Join Date
    Dec 2005
    Location
    Argentina
    Posts
    73

    Default

    1. By business POJO you mean a service layer or domain objects?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •