mod_jk Error by stress test.
Hi, I use a software called LoadRunner to stress my apache1.2.30 + tomcat-3.3-b1 on Redhat Linux-7.1 simulate 200 users. There are all these kind of message in my logs/mod_jk.log Could somebody tell me what should I do to avoid this problem?? Thanks [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (226)]: connection_tcp_get_message: Error - jk_tcp_so cket_recvfull failed [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (681)]: Error reading reply [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (805)]: In jk_endpoint_t::service, get_reply failed i n send loop 0 [Thu Oct 18 09:01:07 2001] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (194)]: In jk_endpoint_t::connect_to_tomcat, failed e rrno = 111 [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (604)]: Error connecting to the Tomcat process. [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (808)]: In jk_endpoint_t::service, send_request faile d in send loop 1 [Thu Oct 18 09:01:07 2001] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (194)]: In jk_endpoint_t::connect_to_tomcat, failed e rrno = 111 [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (604)]: Error connecting to the Tomcat process. [Thu Oct 18 09:01:07 2001] [jk_ajp13_worker.c (808)]: In jk_endpoint_t::service, send_request faile d in send loop 2 [Thu Oct 18 09:45:54 2001] [jk_ajp13_worker.c (350)]: Error ajp13_process_callback - write failed [Thu Oct 18 09:45:54 2001] [jk_ajp13_worker.c (801)]: In jk_endpoint_t::service, get_reply failed w ithout recovery in send loop 0 Jacob FanChiang
Performance.
What's the limited of users when using Apache-Tomcat. I need Apache-Tomcat to serve 500 users concurrently. Platform: RedHat Linux 7.1 Tomcat 4.0 Apache 1.2.30 Computer: IBM xSeries 230 RAM 512M Disk: 34G Raid 0 Jacob FanChiang Assoiciate Researcher Customer Care and Billing System Dept. Telecommunication Laboratories Chunghwa Telecom Co., Ltd. Tel: +886 2 3707 1098 Fax +886 2 2325 5844 Email: [EMAIL PROTECTED]
Re: Using mod_jk with Apache-Tomcat
Don't use the "include". Add these in the end of httpd.conf LoadModule jk_module lib/modules/mod_jk.so AddModule mod_jk.c JkWorkersFile /disk1/tomcat/conf/jk/workers.properties JkLogFile /disk1/tomcat/logs/mod_jk.log JkLogLevel error JkMount /*.jsp ajp13 AllowOverride None deny from all AllowOverride None deny from all And modify the workers.properties three lines. workers.tomcat_home=/opt/tomcat workers.java_home=/opt/java1.2 ps=/ (\ for windows) change the path for yours. Jacob FanChiang Assoiciate Researcher Customer Care and Billing System Dept. Telecommunication Laboratories Chunghwa Telecom Co., Ltd. Tel: +886 2 3707 1098 Fax +886 2 2325 5844 Email: [EMAIL PROTECTED] - Original Message - From: "Nathan Pfrimmer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 9:23 PM Subject: Using mod_jk with Apache-Tomcat > I don't think my Apache-Tomcat connection is working. > > If I add the line: > Include "d:\jakarta-tomcat-3.2.3\conf\tomcat.conf" > > to the Apache/conf/httpd.conf file (as directed by the documentation), and > then try to start the Apache server I get an error pop-up box: > > "Microsoft Management Console - Could not start the Apache service on Local > Computer. The service did not return an error. This could be an internal > Windows error or an internal service error. If the problem persists, > contact your system administrator." > > Platform: > Windows 2000 > Apache 1.3 > Tomcat 3.2.3 > > Nathan Pfrimmer > Co-op Student > Professional Services, Central Europe > Open Text Corporation > Munich, Germany >
Re: Pool connection to database
Hi: You can put it in tomcat use " System.getProperties().put(key,value); System.getProperties().getProperty(key); " Here is my solution. I create the connections in constructor "ConnectionPool()". I new the ConnectionPool instance in where I need to use it. " ConnectionPool dbPool = new ConnectionPool(); Connection c = dbPool.getConnection(); " Jacob FanChiang >From Taiwan Assoiciate Researcher Customer Care and Billing System Dept. Telecommunication Laboratories Chunghwa Telecom Co., Ltd. Tel: +886 2 3707 1098 Fax +886 2 2325 5844 Email: [EMAIL PROTECTED] - Original Message - From: "Pablo Morillas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 6:07 AM Subject: Pool connection to database > Hello all. > > I have a problem that I suppose is resolved by Tomcat. I'm using Tomcat 3.2 > and I can connect to an Oracle 8i database. The problem is that a process is > created by oracle in any connection to the database done from mines > servlets. I want to use a pool of connection for limit the number of > connection actives. > Is there any way to specify a class that run when I start tomcat? If I have > any pool connection running inside tomcat I think that I will get the pool, > won't I? > > Thanks to all in advance. > > == > Pablo Morillas > http://www.sortes.com > [EMAIL PROTECTED] > == >
Re: OutOfMemoryError from Tomcat 3.2
Hi, I have the same experence when using CORBA and the provider is Borland Visibroker. When I new a instance ORB, there will be three threads form by Java. If you never release the ORB, the threads never died. The solution is using singlton to avoid that. Your problem may not in the Memory. Maybe it's the thread problem. Hope this can help. Jacob FanChiang Assoiciate Researcher Customer Care and Billing System Dept. Telecommunication Laboratories Chunghwa Telecom Co., Ltd. Tel: +886 2 3707 1098 Fax +886 2 2325 5844 Email: [EMAIL PROTECTED] - Original Message - From: "Matt Fisher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 9:05 AM Subject: OutOfMemoryError from Tomcat 3.2 > Hello, > > I have an application running on a Windows2000 server, using Tomcat 3.2, Apache > 1.3.20, and a SQL Server 2000 database. This application will be going live next > week. The initial user base will be approximately 20, but ultimately we will > have a user base of 100+. > > During our stress testing today (approximately 20 simultaneous sessions), we > started getting a lot of errors (java.lang.OutOfMemoryError) on the server. The > errors are logged in Tomcat's jvm.stderr logfile. They started occurring during > the stress test, and stopped occurring thereafter. > > I have read that on Solaris, Tomcat 3.2 may get OutOfMemory errors if there are > too many sessions at one time. Our server is running Windows 2000, but I wonder > if our problems also stem from too many sessions. If so, is there a parameter we > can tweak, a fix for Tomcat 3.2, or a new release which addresses this issue? > > During a previous incident where OutOfMemory errors were occurring, I checked > the Windows 2000 performance monitor. Memory usage was approximately 10% of the > 1 gigabyte capacity. It strikes me as odd that we'd get OutOfMemory errors, > unless the JVM only has access to a small portion of the machine's memory. > > We also saw "index out of bounds" errors during the stress test, but I am > guessing that this is somehow related to the memory errors. > > Any help you can provide would be appreciated. > > Yours, > > - Matt Fisher > . . . . . . . . . . . . . . . > Matthew J. Fisher > Applications Programmer > University of Chicago Press > 1427 E. 60th Street > Chicago, IL 60637-2954 > Tel 773-834-5386 >