Tomcat 4 Performance Issues

Discussion in 'Java' started by AC, Oct 19, 2005.

  1. AC

    AC Guest

    Can anyone help me to see some benchmarks for Tomcat running on
    Windows. We have serious performance issues, while running a database
    application on Tomcat 4.1/Win2k/JDK1.4.2.

    The issue is that as number of users increase, the memory consumtion at
    TOmcat increases and the reposnse time becomes slow. At some point it
    fails to respond back. As soon as you restart the Tomcat, everything is
    back to normal again.

    What are the views to use Tomcat in the production servers

    Thanks and Regards
    Anil
     
    AC, Oct 19, 2005
    #1
    1. Advertising

  2. AC

    Juha Laiho Guest

    "AC" <> said:
    >Can anyone help me to see some benchmarks for Tomcat running on
    >Windows. We have serious performance issues, while running a database
    >application on Tomcat 4.1/Win2k/JDK1.4.2.
    >
    >The issue is that as number of users increase, the memory consumtion at
    > TOmcat increases and the reposnse time becomes slow. At some point it
    >fails to respond back. As soon as you restart the Tomcat, everything is
    >back to normal again.
    >
    >What are the views to use Tomcat in the production servers


    Tomcat pretty much performs, as long as the deployed application does.

    More likely than not, something in your application keeps (or makes
    Tomcat keep) references to obsolete objects, thus preventing GC.
    --
    Wolf a.k.a. Juha Laiho Espoo, Finland
    (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
    PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    "...cancel my subscription to the resurrection!" (Jim Morrison)
     
    Juha Laiho, Oct 20, 2005
    #2
    1. Advertising

  3. AC

    Pradyut Guest

    Juha Laiho wrote:
    > "AC" <> said:
    > >Can anyone help me to see some benchmarks for Tomcat running on
    > >Windows. We have serious performance issues, while running a database
    > >application on Tomcat 4.1/Win2k/JDK1.4.2.
    > >
    > >The issue is that as number of users increase, the memory consumtion at
    > > TOmcat increases and the reposnse time becomes slow. At some point it
    > >fails to respond back. As soon as you restart the Tomcat, everything is
    > >back to normal again.


    maybe it's not closing the database connections to the database server.
    Better check that connection class's method "close()" is called
    like (i don't quite remember): -

    new OdbcConnection conn;
    conn.close();

    i prefer to access a single webservice in which the connection is open
    and access the web service for fetching any data from any page.

    also the perfomance would be better as the database connection does not

    have to be made everytime for fetching data.

    also i would prefer ejb as they support object pooling and some
    advanced concepts for load balancing and performance.

    > >
    > >What are the views to use Tomcat in the production servers

    >


    i would anytime prefer websphere, jboss, oracle

    > Tomcat pretty much performs, as long as the deployed application does.
    >
    > More likely than not, something in your application keeps (or makes
    > Tomcat keep) references to obsolete objects, thus preventing GC.
    > --


    Pradyut
    http://pradyut.tk
    http://spaces.msn.com/members/oop-edge/
    http://groups-beta.google.com/group/oop_programming
    India
     
    Pradyut, Oct 21, 2005
    #3
  4. AC

    Roedy Green Guest

    On Thu, 20 Oct 2005 15:44:42 +0000 (UTC), Juha Laiho
    <> wrote or quoted :

    >More likely than not, something in your application keeps (or makes
    >Tomcat keep) references to obsolete objects, thus preventing GC.


    see http://mindprod.com/jgloss/packratting.html
    for how to detect the problem.
    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Again taking new Java programming contracts.
     
    Roedy Green, Oct 22, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JMaelstrom

    IIS 6 vs IIS 5 ASP.NET Performance Issues

    JMaelstrom, Dec 9, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    4,672
    shan420
    Apr 30, 2010
  2. John Q. Smith

    SQLServer session state performance issues

    John Q. Smith, Jan 12, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    3,453
    =?Utf-8?B?Sm9obiBRIFNtaXRo?=
    Jan 16, 2004
  3. smoody

    Performance Issues / ASP.NET

    smoody, Feb 20, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    558
    Kevin Spencer
    Feb 20, 2004
  4. David Adams

    IIS 6 performance issues?

    David Adams, Jul 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    413
    David Adams
    Jul 6, 2004
  5. Greg Collins [MVP]
    Replies:
    7
    Views:
    379
    Greg Collins [MVP]
    Nov 5, 2004
Loading...

Share This Page