Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 88893 invoked from network); 21 Aug 2005 16:43:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2005 16:43:50 -0000 Received: (qmail 87712 invoked by uid 500); 21 Aug 2005 16:43:46 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 87687 invoked by uid 500); 21 Aug 2005 16:43:45 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 87672 invoked by uid 99); 21 Aug 2005 16:43:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2005 09:43:45 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2005 09:44:03 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E6su0-0000sr-V1 for tomcat-dev@jakarta.apache.org; Sun, 21 Aug 2005 18:42:32 +0200 Received: from adsl-63-202-83-9.dsl.snfc21.pacbell.net ([63.202.83.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Aug 2005 18:42:32 +0200 Received: from cmanolache by adsl-63-202-83-9.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Aug 2005 18:42:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-dev@jakarta.apache.org From: Costin Manolache Subject: Re: inprocess Tomcat/apache via mod_jk Date: Sun, 21 Aug 2005 06:41:49 -0700 Lines: 178 Message-ID: References: <011a01c5a2c2$256be3f0$7037a8c0@nt.wilshire.com> <20050817015136.63765.qmail@web33912.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-63-202-83-9.dsl.snfc21.pacbell.net User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en In-Reply-To: <20050817015136.63765.qmail@web33912.mail.mud.yahoo.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N With worker - it may work. However you may find mod_jk inprocess to be slower than ajp and mod_proxy ( or comparable in speed ), this is due to the way parameters are passed as strings ( i.e. lots of unoptimized char-byte conversion ). Porting to 5.5.x shouldn't be hard - the interface between tomcat and modjk is very simple: you need to startup, i.e. make sure classpath is set and the class that executes launches tomcat correctly, and then it's a simple class that does the request/response passing. If you do this for performance reasons - you may want to look at the code in jk2, and try to backport it. A benefit would be that the interface is even simpler - the req/response are passed in the same kind of buffer as ajp requests. AFAIK that's the only major difference. Since Remy, Mladen, etc have greatly optimized the regular tcp connectors - probably the difference on performance ( with this optimization backported ) will be small. But if you use the old style of interface - I'm sure jni will be slower (it was slower 2 years ago). Costin Christine Ho wrote: > Hi, > Thanks a lot. I am really appreciated for your > reply. How about the worker MPM? My team is running > the httpd.worker on RHEL4. The current setting is: > > StartServers 1 > ServerLimit 1 > > MaxClients 64 > MinSpareThreads 32 > MaxSpareThreads 64 > ThreadsPerChild 64 > > Does the inprocess Tomcat 5.5.9 work for the worker > MPM? > > thanks, > Christine > > --- Bill Barker wrote: > > >>Well, inprocess doesn't really work for any MPM on >>*nix systems (e.g. with >>the prefork MPM, you end up with MaxChild copies of >>Tomcat running :). As a >>result, there just hasn't been that much interest in >>implementing (or even >>back-porting) a feature that only works on Windows >>and NetWare. >> >> >>----- Original Message ----- >>From: "Christine Ho" >>To: >>Sent: Tuesday, August 16, 2005 3:30 PM >>Subject: inprocess Tomcat/apache via mod_jk >> >> >>Hi, >> I have posted this email a month ago. I just >>wonder >>if any developer on mod_jk can answer my question. I >>would like to have inprocess Tomcat 5.5.9 running in >>Apache 2.x if possible. >> >>thanks again, >>Christine >> >> >>Hi, >> I tried to setup Tomcat 5.5.9 running inside the >>apache server 2.x via the mod_jk on RHEL4. I got the >>following error: >>[debug] open_jvm2::jk_jni_worker.c (1055): JVM >>created >>[emerg] get_bridge_object::jk_jni_worker.c (1097): >>Can't find class >>org/apache/tomcat/modules/server/JNIEndpoint >> >>I looked at the mod_jk source codes and found out >>that >>the mod_jk supports the TC32_BRIDGE_TYPE and >>TC33_BRIDGE_TYPE. It doesnt support bridge type of >>tomcat 4.x and up. Plus the tomcat 5.5.9 doesnt have >>the JNIEndpoint.class. >> >>However, it seems to me that the deprecated mod_jk2 >>supports bridge type of tomcat 4.x and up because it >>tries to instantiate the class >>org/apache/jk/apr/TomcatStarter.class which exists >>in >>tomcat-ajp.jar. >> >>I really dont understand why the mod_jk supports >>tomcat 3.x only whereas the deprecated mod_jk2 >>supports tomcat 4.x and 5.x. Can somebody please >>tell >>me why? >> >>Also is it easy to have mod_jk to support >>TC55_BRIDGE_TYPE? Based on the mod_jk source codes >>jk_jni_worker.c, I think I just need to define the >>TC55_JAVA_BRIDGE_CLASS_NAME to be >>org/apache/jk/apr/TomcatStarter.class and then >>assign >>it to the btype. Is it just that simple? >> >>Another question is what the disadvantages of >>running >>tomcat inside the apache are. I googled and it seems >>to me that not too many people try to run inprocess >>tomcat inside apache. I would be interested in >>adding >>the 5.5 bridge type to the mod_jk. >> >>thanks, >>Christine >> >> >>__________________________________________________ >>Do You Yahoo!? >>Tired of spam? Yahoo! Mail has the best spam >>protection around >>http://mail.yahoo.com >> >> > > --------------------------------------------------------------------- > >>To unsubscribe, e-mail: >>tomcat-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: >>tomcat-dev-help@jakarta.apache.org >> >> >> >> >> >>This message is intended only for the use of the >>person(s) listed above as the intended recipient(s), >>and may contain information that is PRIVILEGED and >>CONFIDENTIAL. If you are not an intended recipient, >>you may not read, copy, or distribute this message >>or any attachment. If you received this >>communication in error, please notify us immediately >>by e-mail and then delete all copies of this message >>and any attachments. >> >>In addition you should be aware that ordinary >>(unencrypted) e-mail sent through the Internet is >>not secure. Do not send confidential or sensitive >>information, such as social security numbers, >>account numbers, personal identification numbers and >>passwords, to us via ordinary (unencrypted) e-mail. >> >> >> > > --------------------------------------------------------------------- > >>To unsubscribe, e-mail: >>tomcat-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: >>tomcat-dev-help@jakarta.apache.org >> >> > > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org