tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <tommy...@yahoo.com>
Subject Re: Intgrate Tomcat and PHP in winxp
Date Mon, 18 Aug 2008 19:27:11 GMT

--- On Mon, 8/18/08, Radhakrishnavangara <radhakrishna.vangara@gmail.com> wrote:

> From: Radhakrishnavangara <radhakrishna.vangara@gmail.com>
> 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


Mime
View raw message