Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Tomcat 4 Performance Issues

Thread view: 
AC - 19 Oct 2005 08:31 GMT
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
Juha Laiho - 20 Oct 2005 16:44 GMT
"AC" <ianilc@gmail.com> said:
>Can anyone help me to see some benchmarks for Tomcat running on
>Windows. We have serious performance issues, while running a database
[quoted text clipped - 6 lines]
>
>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.
Signature

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)

Pradyut - 21 Oct 2005 20:44 GMT
> "AC" <ianilc@gmail.com> said:
> >Can anyone help me to see some benchmarks for Tomcat running on
[quoted text clipped - 5 lines]
> >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
Roedy Green - 22 Oct 2005 00:48 GMT
>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.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.