You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Saurabh Makol <sa...@gmail.com> on 2014/04/01 17:53:36 UTC

Apache perfomance issue

Hello Tomcat expert,

I am facing a performance issue for one of the application that I am
hosting. My apologies for reaching out to y'all as I know this group is
tomcat issue but thought if anyone has ever come across this strange issue.

We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.

The issue is that when I run JMeter(from my local machine) with 20
concurrent user it pegs the CPU at 100% on the server even though I have
set memory_limit = 128M in my php file.

Is their a way to reduce the CPU usage. Any advice would be appreciated.

Thanks,
Saurabh

Re: Apache perfomance issue

Posted by André Warnier <aw...@ice-sa.com>.
Saurabh Makol wrote:
> Hello Tomcat expert,
> 
> I am facing a performance issue for one of the application that I am
> hosting. My apologies for reaching out to y'all as I know this group is
> tomcat issue but thought if anyone has ever come across this strange issue.
> 
> We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
> On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.
> 
> The issue is that when I run JMeter(from my local machine) with 20
> concurrent user it pegs the CPU at 100% on the server even though I have
> set memory_limit = 128M in my php file.
> 
> Is their a way to reduce the CPU usage. Any advice would be appreciated.
> 

As Mark indicated, this is definitely not the right list for that kind of question.
Try the Apache httpd Users List instead.

But just as a first and totally unsubstantiated impression from the scarce data above : 
isn't 2 GB of RAM a bit low (not to say miserly) for what you have running there ?

Windows Server 2008 on its own already uses a good chunk of that.
Then you have a MySQL server.
And then you have potentially 20 Apache + PHP processes (or threads), at 128 MB each : 
128MB * 20 = 2.5 GB.
Your server is probably spending more time swapping stuff in and out of memory, than at 
doing any useful work.
Have you even looked at a display in the Task Manager yet ?

Note that for any further discussion, you should really go to the httpd list, or a Windows 
list.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [OT] Re: Apache perfomance issue

Posted by Saurabh Makol <sa...@gmail.com>.
Understood. Thanks gain for your help.


On Tue, Apr 1, 2014 at 12:12 PM, Mark Eggers <it...@yahoo.com> wrote:

> Replies inline:
>
>
> On 4/1/2014 8:53 AM, Saurabh Makol wrote:
>
>> Hello Tomcat expert,
>>
>> I am facing a performance issue for one of the application that I am
>> hosting. My apologies for reaching out to y'all as I know this group is
>> tomcat issue but thought if anyone has ever come across this strange
>> issue.
>>
>> We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
>> On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.
>>
>>
> There is no Tomcat, there is no Java. This is not the right mailing list.
>
>
>  The issue is that when I run JMeter(from my local machine) with 20
>> concurrent user it pegs the CPU at 100% on the server even though I have
>> set memory_limit = 128M in my php file.
>>
>>
> This has no impact on CPU performance. If a script exceeds your memory
> limit, you will get an error.
>
>
>  Is their a way to reduce the CPU usage. Any advice would be appreciated.
>>
>>
> http://www.php.net/manual/en/book.xhprof.php
> http://www.xdebug.org/docs/profiler
>
>
>  Thanks,
>> Saurabh
>>
>>
> And no, I am not a good resource for these tools.
>
> /mde/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

[OT] Re: Apache perfomance issue

Posted by Mark Eggers <it...@yahoo.com>.
Replies inline:

On 4/1/2014 8:53 AM, Saurabh Makol wrote:
> Hello Tomcat expert,
>
> I am facing a performance issue for one of the application that I am
> hosting. My apologies for reaching out to y'all as I know this group is
> tomcat issue but thought if anyone has ever come across this strange issue.
>
> We have an environment which  is 64 bit Windows Server 2008 R2 having 2GB.
> On this server we have Apache 2.4/ PHP 5.5.9 running with MySQL database.
>

There is no Tomcat, there is no Java. This is not the right mailing list.

> The issue is that when I run JMeter(from my local machine) with 20
> concurrent user it pegs the CPU at 100% on the server even though I have
> set memory_limit = 128M in my php file.
>

This has no impact on CPU performance. If a script exceeds your memory 
limit, you will get an error.

> Is their a way to reduce the CPU usage. Any advice would be appreciated.
>

http://www.php.net/manual/en/book.xhprof.php
http://www.xdebug.org/docs/profiler


> Thanks,
> Saurabh
>

And no, I am not a good resource for these tools.

/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org