Tomcat 4.1.27 Performance

I installed Tomcat 4.1.27 on Solaris OS. Independant of the page type (.html, .jsp, Servlet), the page appears very slowly (30 seconds).
In IE, the page appears immediately, but then the progress bar of the browser starts to run (so not everything seems to be retrieved by the browser yet).
In netscape, it just takes 30 seconds before the page appears.
I did the test for the same application on Tomcat 3.3a, it works perfect.
Has anyone seen the same with this version, or is anyone aware of Performance bugs with this version?
Thanks a lot,
Regards,
Tim

may be you are redirecting same page so this problem is there just check

Similar Messages

  • Tomcat Connection Pooling

    I am using Tomcat connection pooling (DBCP) to get the connection from the Database
    It really works great with Oracle, MySQL, Sybase and as well as DB2.
    Recently I tried to integrate apache with tomcat to improve the performance.
    But now the problem is I am unable to load the JDBC Driver its giving me an error message as Cannot load JDBC driver class ?null?
    @ org.apache.commons.dbcp.BasicDataSource.createDataSource ..
    Interseting thing is I am able to get connection through datasource(DBCP) if I use the following URL
    http://localhost:8080/application _name/Hello.jsp
    But I get the error message when I try to get connection through datasource(DBCP)
    as Cannot load JDBC driver class ?null? for this URL
    http://localhost/application_name/Hello.jsp
    Both the URL use same server.xml, httpd.conf,servlet class and jsp pages
    Gurus can you please help me to understand why my application is unable to get the connection when I use this URL http://localhost/application_name/Hello.jsp
    But not with other one
    Please........... Some one help me
    Thanks in Advance
    Maria

    Thanks for your reply
    Yes I am doing context lookup like this
    Context ctx = (Context) new InitialContext().lookup("java:comp/env");
    conn = ((DataSource) ctx.lookup("jdbc/test")).getConnection();
    This works with Tomcat but I am unable to make it work after
    integrating tomcat with apache
    Thanks for your help
    Maria

  • Tomcat Connection pooling problem

    I am using Tomcat connection pooling (DBCP) to get the connection from the Database
    It really works great with Oracle, MySQL, Sybase and as well as DB2.
    Recently I tried to integrate apache with tomcat to improve the performance.
    But now the problem is I am unable to load the JDBC Driver its giving me an error message as Cannot load JDBC driver class ?null?
    @ org.apache.commons.dbcp.BasicDataSource.createDataSource ..
    Interseting thing is I am able to get connection through datasource(DBCP) if I use the following URL
    http://localhost:8080/application _name/Hello.jsp
    But I get the error message when I try to get connection through datasource(DBCP)
    as Cannot load JDBC driver class ?null? for this URL
    http://localhost/application_name/Hello.jsp
    Both the URL use same server.xml, httpd.conf,servlet class and jsp pages
    Gurus can you please help me to understand why my application is unable to get the connection when I use this URL http://localhost/application_name/Hello.jsp
    But not with other one
    Please........... Some one help me
    Thanks in Advance
    Maria

    How did you make Tomcat connection pooling(DBCP) working with Oracle?
    I refereced to the "JNDI Datasource HOW-TO" in Jakarta Tomcat. I am using Tomcat 4.18. I can get DataSource object, but when to get connection from dataSource, not any response, It seems freezing.
    I appreciate any reply.
    Johnson Ouyang

  • JRE version of Tomcat server

    Hi,
    How do i find out the JRE version, which the Tomcat server is using?
    Please exclude the following cases. From the below cases i can find it out.
    1) Finding it from JAVA_HOME in environmetal variables.
    2) Wrirting java program to print the value of the property "java.version".
    I need to know it from the Tomcat installation directory (i mean from the Tomcat installation files).
    Thanks,
    Kiran

    hai,
    If we develop an application using sunone studio creator , it uses datasource to connect to database(Point one) . If we want to deploy the same in tomcat we need to perform the same datasource setting in the
    server.xml file in the conf directory of tomcat. information for the same can be searched from the web.
    I was using myeclipse so no dtasource settings is necessary

  • Performance comparison of J2sdkee1.3.1's JMS and iPlanet MQ 2.0

    I am evaluating two JMS APIs: The free one comes with J2sdkee 1.3.1 and the iPlanet Message Queue for Java 2.0 (free for development and evaluation, not free on Production environment).
    I created two JSP pages running under Tomcat 3.3. One JSP page is calling a Java class 1 which uses j2sdkee1.3.1 JMS API: it creates InitialContext() and lookups for QueueConnectionFactory & Queue, then sends a text message to the Queue.
    I did a little performance improvement by putting this process into a static method init(), so it will be called only once. The latter request will only send message.
    The second JSP page is calling a Java class 2 which doesn't use JNDI, instead, it calls the new QueueConnectionFactory/QueueConnection classes provided by iPlanet MQ API.
    I found out that InitialContext() call and lookup process is taking quite a long time in the first case. After that, sending message is quite fast. However, if "j2ee" is shutdown in the middle, the JSP page can't recover unless I restarted Tomcat server.
    The performance of iPlanet MQ API is pretty good even if the QueueConnectionFactory/QueueConnection classes are created for each request. And it can recover after the Broker is restarted.
    Anybody experienced in using J2sdkee1.3.1 JMS API? If you know a better way to improve performance other than the static method init() which can't recover, please share your information. Appreciate it.
    Thanks,
    Ye

    Your performance comparison should be identical in all ways except for the particular server you are trying to evaluate. which should be relatively painless, given the use of JNDI.
    At the very least, ignore the JNDI lookup in your first test.
    I have found the j2ee JMS provider (the free one) to be quite slow, and also have found a bug with the shutdown and startup process changing the message order. which is a fundamental error.
    I have used IBM MQ (websphere MQ) and found it to be very fast and worked as expected. I have not used their pub/sub product (which i suspect is based on Talarian.)
    I favour servers built in native code, and integrate using JMS. just like I prefer Oracle over a pure Java RDBMS, but like the ease of integration offered with JDBC.
    I would avoid webstyle start-up companies like Iplanet. That joint effort seems like a desperate attempt at reviving Netscape thru technology, rather than thru a business concept.

  • Win2k service & java.policy configuration

    Hi,
    Got tomcat 4 on Win2k performing unrestricted encryption/decryption using chosen provider. When I launch tomcat from the console as an application all works fine, both ways (enc/dec). When tomcat is started automatically as a win2k service at boot, it generates errors and fails to enc/dec with following exception:
    java.security.NoSuchProviderException
    Does anyone knows how to configure the java.policy file, the catalina.policy or whatever is necessary to allow the Win2k service (tomcat 4) using the runas "LocalSystem" account in Win2k to be able to read and execute java security methods (ie ....Cypher.getInstance("..blah, blah"), as per Java 1.4 security model.
    Any suggestions and/or examples would be great. Thanks

    Having to modify the policy file defeats the whole point of using applets in the first place. If you have to install anything (such as a new policy file) on the client machine, you may as well install a GUI program.
    Either get yourself a digital certificate and sign the applet, or use an independent program instead.

  • If the database is shutdown when the applcation is running what is happened

    I am using coneection pool to connect database. If the database is shutdown when the applcation is running what is happened? and how the database will be reconnected.
    I am using MySQL 3.23.52, Tomcat 4.1.12

    Hi,
    Performance of any n-tier system which takes the advantage of connection pooling will be much higher compared to its non-pooled counterpart.
    You have to be very careful while designing/using a connection pool.if u are using pool obtained from a third party,ur control on this pool will be limited - with a few set/get methods.
    A well designed pool wont create much trouble. if u are creating your own pool, basic steps required are
    1.create 'n' number of connections
    2.whenever user requests for a connection, check the validity of the connection- by sendin a simple select query etc- and if its not stale,give this connection to the caller.
    3.if the connection is stale ie it fails the pretest, close all the connections and create the pool afresh.
    4.connections obtained from the pool will be automatically returned back to the pool whenever the applciation call conn.close().
    from ur application, follow the steps for each connection you use (not necessary for a well designed pool)
    1.call ds.getconnection()
    2.check validity of this connection by sending a simple select query.if it works,everything is fine. otherwise something is wrong with connection(not always).
    3.sql exception may occur during the execution of sql query. this can be due to either
    a.database shut down (network related)
    b.database specific - like wrong query,invalid objects etc
    you have to look at the sql state/vendor code (which can be retrieved from the caught exception). the retrieved code will give you a hint why the error (network or database specific).and you can act accordingly.
    Most of the app servers comes with builtin connection pooling module. and handling stale connection is not a difficult task for the programmer. eg: if you are designing applcations for IBM websphere, you can use StaleConnectionException in your code.if this exception is caught,the whole pool is destroyed and created afresh.
    HTH,
    -asharafkk

  • Servlet under IIS?

    hi all
    i'm a question:
    i have a simple servlet (hi.class) that outputs "hi sandro!!!"
    is it possible to make it work under Microsoft Internet Information Services without any added module?
    i'm quite sure it's not possible, but i need some advice
    thanx in advance
    sandro

    does IIS+Tomcat has really low performance? i've just installed this and tested it with examples. now i'm going to write own servlets and i want to get good performance from iis. tell me pls what should i use: iis+tomcat, standalone tomcat or some other solutions?

  • Performance problems when running PostgreSQL on ZFS and tomcat

    Hi all,
    I need help with some analysis and problem solution related to the below case.
    The long story:
    I'm running into some massive performance problems on two 8-way HP ProLiant DL385 G5 severs with 14 GB ram and a ZFS storage pool in raidz configuration. The servers are running Solaris 10 x86 10/09.
    The configuration between the two is pretty much the same and the problem therefore seems generic for the setup.
    Within a non-global zone I’m running a tomcat application (an institutional repository) connecting via localhost to a Postgresql database (the OS provided version). The processor load is typically not very high as seen below:
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU                            
        49 postgres  749M  669M   4,7%   7:14:38  13%
         1 jboss    2519M 2536M    18%  50:36:40 5,9%We are not 100% sure why we run into performance problems, but when it happens we experience that the application slows down and swaps out (according to below). When it settles everything seems to turn back to normal. When the problem is acute the application is totally unresponsive.
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
        1 jboss    3104M  913M   6,4%   0:22:48 0,1%
    #sar -g 5 5
    SunOS vbn-back 5.10 Generic_142901-03 i86pc    05/28/2010
    07:49:08  pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf
    07:49:13    27.67   316.01   318.58 14854.15     0.00
    07:49:18    61.58   664.75   668.51 43377.43     0.00
    07:49:23   122.02  1214.09  1222.22 32618.65     0.00
    07:49:28   121.19  1052.28  1065.94  5000.59     0.00
    07:49:33    54.37   572.82   583.33  2553.77     0.00
    Average     77.34   763.71   771.43 19680.67     0.00Making more memory available to tomcat seemed to worsen the problem or at least didn’t prove to have any positive effect.
    My suspicion is currently focused on PostgreSQL. Turning off fsync boosted performance and made the problem less often to appear.
    An unofficial performance evaluation on the database with “vacuum analyze” took 19 minutes on the server and only 1 minute on a desktop pc. This is horrific when taking the hardware into consideration.
    The short story:
    I’m trying different steps but running out of ideas. We’ve read that the database block size and file system block size should match. PostgreSQL is 8 Kb and ZFS is 128 Kb. I didn’t find much information on the matter so if any can help please recommend how to make this change…
    Any other recommendations and ideas we could follow? We know from other installations that the above setup runs without a single problem on Linux on much smaller hardware without specific tuning. What makes Solaris in this configuration so darn slow?
    Any help appreciated and I will try to provide additional information on request if needed…
    Thanks in advance,
    Kasper

    raidz isnt a good match for databases. Databases tend to require good write performance for which mirroring works better.
    Adding a pair of SSD's as a ZIL would probably also help, but chances are its not an option for you..
    You can change the record size by "zfs set recordsize=8k <dataset>"
    It will only take effect for newly written data. Not existing data.

  • Coldfusion 11 SSL Certs applied - The APR based Apache Tomcat library which allows optimal performance in production environments,

    Coldfusion 11
    Windows Server 2012 R2
    Both the Coldfusion admin and additonal site work fine on HTTP.
    As soon as I attempt to enable SSL websockets and install SSL certs, the Coldfusion 11 Application service will not start. I followed the steps below....
    Coldfusion 11 - Web Sockets via SSL
    The Coldfusion-error.log shows
    Jan 26, 2015 3:21:23 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
    Server was a cloned VM of the test server with developer copy of CF11, but license has been purchased and applied. SSL certs have been imported successfully, paths are correct in CF Admin to the cert file etc.
    Do I need to install another version of Coldfusion to get around this issue or is there a download update I need to apply?
    If i reconfig the \cfusion\runtime\conf\server.xml to comment out the SSL sections it works fine.
    Any assistance welcome - I can't allow this site to made publicly available with using SSL.
    SM

    @Scott, first are you running update 3? If so, let’s clarify at the outside that, as that bug report (you point to) does indicate in the notes below it, there is a fix for a problem where this feature broke in that release.  And as it notes, you can email [email protected] to request the fix (referring to that bug), or you can wait for it to be released publicly as part of a larger set of fixes.
    If you are NOT on update 3, or you may apply the fix and find things still don’t work, I would wonder about a few things, from what you’ve described.
    First, you say that the CF service won’t start, and you offer some lines from the ColdFusion-error log. Just to be clear, those particular error messages are common and nothing to worry about. They definitely do NOT reflect any reason CF doesn’t start. But are you confirming that that time (in the log lines) is in fact the time that you had started CF, when it would not start? I’d suspect not.
    Look instead in the coldfusin-out.log. What does THAT log show at the time you try to start CF and it won’t start? You may find something else there. (And since you refer to editing the server.xml file, you may the log complains that because of an error in the XML it can’t “parse” the file. It’s worth checking.
    You say also that you have confirmed that “paths are correct in CF Admin to the cert file”. What path are you referring to? There’s no page in the CF admin that points to the CACERTS file in which the certs are stored. Do you perhaps mean on the “system info” or “settings summary” page? Even so there’s still no line in there which refers to the “cert file”.
    Instead—and this could be a part of your problem—the cert file is simply found WITHIN the directory where CF’s pointed to to find its JVM. Wherever THAT is, is where you need to put any certificates. So take a look at the CF Admin, either in the ”java and jvm” page (and the value of its “Java Virtual Machine Path”), or in the “settings summary” or “system information” pages and their value for “Java Home”. Is that something like \coldfusion11\jre? Or something like \Java\jdk1.7.0_71\jre? Whichever it is, THAT’s where you need to put the certs, within there (in its \lib\security folder).
    Finally, when you say that if you “comment out the SSL sections  it works fine”, do you mean that a) CF comes up and b) some example code calling your socket works, as long as you don’t use SSL?
    To be clear, no, you don’t need any other version of CF11 to get websockets to work. But if you are on update 3, that may be the simple problem. Let us know how it goes for you with this info.
    /charlie

  • Wierd performance in tomcat/java: help consult

    hello
    after to test my project in tomcat 5.5.23 and jdk 5 update 12
    in network(intranet-only until now with 2 clients) i see that this is fast, after of a some time i can see a wonderful exception
    related with java heap exception thrown by the tomcat
    after to search in google, i found the solution for windows
    (server works with windows XP SP2) related to give some values
    for memory ram values to the tomcat5w.exe
    http://computerlabsolutions.com/supp...hp#performance
    i only did the second step
    according to this
    >
    Click on the Java tab, and enter 128 in the Initial Memory Pool, and 350 or 400 in the Maximum Memory Pool.Leave the other field blank.
    so my values are
    128 in the Initial Memory Pool
    400mb Maximum Memory Pool
    the point is that the server is a intel dual core with 3ghz for each , and has DDR2 512 MB of ram
    ok, its works, the point is that after to restart the server, the system is fast again,
    but then again after of some time the performance go to very slow
    if i do ctrl+ alt+ del to see the performance of the pc related with the ram
    i taked a picture when start the wierd performance
    my ram go to 645MB and swap 46200KB
    i thought if i stop to use the system/application(5 minutes),
    i can give the chance to the java or tomcat to get and free
    some resources
    well not the ram go to 640MB and swap to 45276KB
    of course if i shutdown my tomcat
    i have now these values
    RAM 319MB and swap 44564KB
    is normal this?,
    i dont think so
    some important suggestion/advice by our members??
    BTW: i am using pool connections related with the db area
    thanks so much for advanced

    I suspect you are paging. You've allowed the Java object heap to grow to 400MB, but you need physical memory for other things (the executable, thread stacks, the operating system, etc.) I think what you are seeing is that performance is good until you start to page the Java virtual machine, at which point performance probably hits a wall. And having things slow down can cause queues to back up, retransmissions to happen, etc, increasing your memory load and making things worse.
    Either buy more memory, or try tuning that 400MB down to a level that your machine can sustain. If you have GC logs, you can tell how much live data you have, which could help you choose an appropriate value for the maximum memory pool.

  • Sun Role Manager v5.0.3 performance tuning on Apache Tomcat server

    hello everyone,
    We currently have SRM v4.1 in production running on Tomcat. This has major performance issues. A single page for app owner certfication takes approx 10 minutes to load. The current version is now being upgraded to 5.0.3 on Tomcat 6. Are there any new features/configurations available in SRM 5.0.3 for better performance (on tomcat)? Has anyone tried optimizing the performance of v5? Any server settings I need to look at? Any pointers will be highly helpful.

    Where's your database for this located? On the same server or another server? It is more likely the database than Glassfish being the weak and slow link here unless badly tuned GC is taking up all the CPU cycles.

  • Performance Problems with MS Access & Tomcat

    Hello folks,
    I have a small JSP/Servlet application that uses an MS Access Database and a Microsoft Access Driver (Version 4). I use Tomcat 3.3 as the JSP server and this is within an IIS machine. The total number of users is fifty maximum of which is unlikely that there is ever more than five using the application at any one time.
    When I took over the application there were a number of bugs in the Servlet code that I have removed and I have also added code to catch errors with sessions. The application is now less buggy and more robust.
    Now my major problem is one of reliability. From time to time (at least once a fortnight) I need to shutdown and restart Tomcat. This is because the system is 'hanging'. I keep the Tomcat Console open on the machine because most of the servlets print debug information to it. As a result I know that the system still recognises users and 'logs' them on but the JSP page is never served.
    When exceptions are thrown messages are printed to the error log, the most common by far is:
    "Tue Oct 29 14:26:22 GMT 2002 : sessionUpdates: isComplete() java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Cannot open any more tables.
    Tue Oct 29 14:26:34 GMT 2002 : sessionUpdates: getUser() java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Cannot open any more tables.
    Tue Oct 29 14:26:38 GMT 2002 : sessionUpdates: isComplete() java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Object invalid or no longer set."
    (sessionUpdates is the name of a servlet, isComplete is a method etc:)
    If anyone has any advice or explanation as to why this misbehaviour is occurring I'd be greatful. I think that the Driver could be to blame. I don't think the number of users is a particularly heavy load and replacing Access is not an option anyway. The database is not on the IIS machine.
    Dan.

    hi,
    I just try because I dont know what is the theme of yr application.
    I developed servlet app on linux/tomcat for internal purpose and facing similar kind of probs.possible ones...
    1) if u have used object locking, then u have to seriously check that it is proper
    2) in connection, r u using transaction (batch of queries) thru autocommit false and true...it causes such performance issues a lot...
    - if yes, u have to make con.setAutoCommit(true) when u r rollback the transaction
    3) u r using servlet variables at class level, which increases load
    probable sol. is 2 from the long view...provided detail if not solved..else...give 5 ducks...ha ha ha...
    try & try but never cry
    Pranav Vora

  • Performance Analysis 怎么用collect -j 收集tomcat上的web项目的性能数据?

    Performance Analysis 怎么用collect -j 收集tomcat上的web项目的性能数据?
    How to user Performance Analysis  collect -j to collect web apps data on tomcat?
    Thank you!

    如果你用的是studio 12.4,collect可以收集从脚本运行的java程序。
    比如如果从一个shell脚本run.sh运行tomcat,那么运行
    > collect -j on sh run.sh
    就可以采集tomcat运行后所有加载的web项目的数据。
    如果你的web项目在某个时间段内运行,而且你只关心这个时间段的数据,你可以通过signal控制数据采集的开始和结束时间。
    > collect -j on -y PROF sh run.sh
    然后你可以向目标进程(假设进程号是1111)发送SIGPROF signal来开始或暂停数据采集:
    > kill -SIGPROF 1111
    在Linux上SIGPROF不能用,建议用SIGVTALRM。
    如果你用的是solaris,collect 可以附着在正在运行的程序(假设进程号是1111)上:
    > collect -j on -P 1111
    studio 12.4 页面:
    Oracle Solaris Studio Performance Analyzer

  • How is performance of Appache Web Server  + Tomcat?

    I am wondering how the performance of Appache web server + Tomcat => Java enabled web server is ?
    such as handling multiple users, heavy web traffic, JSP-JavaBean performance...in a real industrial setting?
    If "Appache web server + Tomcat" is an excellent choice, why companies still spend big bucks on things like WebLogic, JRun, etc?
    Thanks in advance for any light thrown on this topic.
    --Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for your reply. I think that I did not make myself clear. I meant that if a small company just wants to build a web application for internal/intranet use (which only utilizes JSP/JavaBean and Servlet features). No EJB, no JMS, etc. Will Appache web server + Tomcat suffice, say for scores of users to access this application concurrently?
    Thanks again.
    --Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Browser times out when trying to view my website - says the server is taking too long. And no, I don't have a firewall.

    I can't view my website at www.artisancandies.com, even though it's working and everyone else seems to see it. No, I don't have a firewall, and it's not because of my internet provider - I have AT&T at work, and Comcast at home. My husband can see th

  • IMac or Mac Pro

    I have asked this question before and I'll be honest - I was sorta confused with some of the responses so I am back with what I hope are better thought out questions. I am torn between the iMac 3.06 and the Mac Pro 2.66 4-core. I am not a pro but thi

  • ARQ: Are "Valid From" and "Valid To" dates are considered for risk analysis???

    Hi All, I have one question w.r.t. risk analysis of user while raising a request in ARQ. I have noticed that, when a user is assigned 2 conflicting roles in a request (with "Valid From" and "Valid To" fields being the same), ARQ shows risk violations

  • How to get IBM's JCOP

    Hi all, i need to get IBM's JCOP .how can i get it. thanks

  • Error Message on cluster server start

    Hi all,           I'm trying to install a cluster with two Windows 2000 machines, and every           time I try to start my           server I get the same message from the output of the server:           It's about the weblogic.properties located i