Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 86367 invoked from network); 18 Aug 2008 19:27:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2008 19:27:54 -0000 Received: (qmail 71803 invoked by uid 500); 18 Aug 2008 19:27:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71787 invoked by uid 500); 18 Aug 2008 19:27:41 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 71776 invoked by uid 99); 18 Aug 2008 19:27:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 12:27:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.191.124.151] (HELO web38208.mail.mud.yahoo.com) (209.191.124.151) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 18 Aug 2008 19:26:44 +0000 Received: (qmail 49519 invoked by uid 60001); 18 Aug 2008 19:27:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=X4wZLcXn1+Ntk/GJ/Q34bKpZquTQ8tuKxIZk/4rRViNapwSrXrHL+FmifGdwzUG7geMwEUJ8rBUdILJbl/oJ/F5e54AG7WGXsii+RwVtVfqKPPP4ip/wOY7p/ODmoAPp0S6qrdilOnnWE48id/vYhotBszdKvmA6s1g52IsFe64=; Received: from [24.227.124.250] by web38208.mail.mud.yahoo.com via HTTP; Mon, 18 Aug 2008 12:27:11 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Mon, 18 Aug 2008 12:27:11 -0700 (PDT) From: Tommy Pham Reply-To: tommyhp2@yahoo.com Subject: Re: Intgrate Tomcat and PHP in winxp To: Tomcat Users List In-Reply-To: <19035417.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <22636.49500.qm@web38208.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- On Mon, 8/18/08, Radhakrishnavangara wrote: > From: Radhakrishnavangara > Subject: Re: Intgrate Tomcat and PHP in winxp > To: users@tomcat.apache.org > Date: Monday, August 18, 2008, 12:55 PM > Hi Tommy, > > That was really informative. But let me explain you the > actual scenario. I > am using an application called phpESP ( a survey tool > developed in PHP) and > running on Apache httpd. The application is running fine, > but it is > consuming lot of memory space in the server. So we have > decided to move the > application and deploy on a lighter application server. > That's the reason we > have decided to deploy on Tomcat. So could you please let > me know your > opinion on the same. > > Also i am a beginner to PHP and Tomcat. Also i have spend > lot of time on > this and now i have to some how finish this task. Offline i > will take your > guidance on understanding this technology. For now could > you please explain > us with the step by step instruction on how to finish the > same task. > > Regards, > Radhakrishna > Radhakrishnavangara, If your app is pure PHP (and perhaps some Javascript/AJAX) and you have no intention of migrating to another platform, your best bet is sticking with Apache httpd and troubleshoot your performance issue. Otherwise you're just making things more complicated. As Alan pointed out, there downside to running PHP as CGI which you may want to consider is worth it to migrate to another platform server which has no main use for you? If you do intend to migrate to another platform, then just follow as Johnny pointed out. As for performance, rule which i go by is "run lean" meaning take out any httpd mods and any php extensions you have no use for (you will need to refer to Apache httpd's and PHP manual for this). By removing unnecessary mods and extensions, you reduce the memory consumption. Then start looking at your server/system for unnecessary processes/services (you'll have to refer to your OS documentation for this). If it's still running slow, then you'll have to the dirty work of debugging and fine tuning your app (if you didn't build it, you may refer to developers/provider whom build it for help) since the app you use may free the resources it consumes. Thus, as time goes on, your server will be running slow. This is a problem with all apps regardless of what server/platform the app running is on. Some server/platform has some method of "garbage collection" but you'll need to read the server's/platform's documentation to know what you have to work with. Regards, Tommy --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org