Re: [OT] Re: Apache perfomance issue

2014-04-01 Thread Saurabh Makol
Understood. Thanks gain for your help.


On Tue, Apr 1, 2014 at 12:12 PM, Mark Eggers  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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Apache perfomance issue

2014-04-01 Thread Saurabh Makol
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: maxThread not set in Tomcat 7

2013-11-25 Thread Saurabh Makol
Understood, thanks.


On Mon, Nov 25, 2013 at 3:24 PM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Saurabh Makol [mailto:saurabh.ma...@gmail.com]
> > Subject: Re: maxThread not set in Tomcat 7
>
> > Even setting it as lower case doesn't make any difference:
>
> You already had it in lower case.  Read the doc (and the responses) more
> carefully; the attribute name is _not_ maxthreads.
>
>
> http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: maxThread not set in Tomcat 7

2013-11-25 Thread Saurabh Makol
Thanks all for your reply,

Even setting it as lower case doesn't make any difference:



It still shows me as default value which is 200.

However as per your suggestion I did notice this in the server logs

Nov 25, 2013 2:10:48 PM org.apache.catalina.startup.SetAllPropertiesRule
begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property
'maxthreads' to '250' did not find a matching property.

Do you guys anticipate that my server.xml is not well formed?



On Mon, Nov 25, 2013 at 2:48 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Chuck,
>
> On 11/25/13, 2:39 PM, Caldarale, Charles R wrote:
> >> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> >> Subject: Re: maxThread not set in Tomcat 7
> >
> >> I haven't tried it, but perhaps Tomcat is case-sensitive when it
> >> comes to XML attribute names.
> >
> > No perhaps about it - it's always case sensitive.
>
> I was too lazy to check, and didn't want to give bad advice with too
> much conviction ;)
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.15 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIbBAEBCAAGBQJSk6lwAAoJEBzwKT+lPKRYhCQP+OX7Elhp3s93S5OvPY8Njqsq
> jiXdIu8PvwuRaUSN/5RrmZgg7Pm6REXSx1w8+VyG42foLLY9GCLbBKKSQxJaf+rA
> LAnxA19+LVIek4qwVwTDYLWXBAeawQMgyw+22pCflgOLobkwviz/4qGy3f90hJ6n
> ZaiR4ycca6hesLja4JTw5Lc7jIsfAoK5X2qKZNwqxCEOxMz7Uh8e7vTugFRxRKDU
> fhKN81Pfd13k6711d/E2T4iSeLc+QcnFrzvKNrNJSOHgYVLEQv8AwIXhK2tpHpLn
> 1ICN7ghh++3b/fRh2uqnyo9hhNVFfYT1+uhNgSyNTXo+rciR2l5vWRV0+Ltnj5un
> naqRAZGCZc7+CL49ynf5f5c/Dpe142Cks3pceqFBjYR9SDHOPUMvF/yd8GO26DiQ
> 2nza89fPaX5pBz+CWYiaM2JvLm8AgxeySNByYegnwhfmL6o+SMGf12IJrTBe68Km
> gQ9hu5EP92O14YJPZCAAj5fXBoFZvhoW04EaH9Sp9ySP+fKhE5lJwBPU3aRQVyXH
> 8LZrBSgPMyis1f313JF3Qd5GeR8p35ZaGeXmX+r8UJ1XsL+JO2dNyS3Rk/xqQZvb
> 2kVahW7HmYTkTf5Rco2sg/4AxE/hxMaCX3DvWlVZ0YH+8nPGQppn98wZdMxhaSMT
> 4lktai5rn4eRBQi6CBI=
> =5SHj
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


maxThread not set in Tomcat 7

2013-11-25 Thread Saurabh Makol
Hello Tomcat experts,


I am running Tomcat 7 on Window Server 2008 and below in my connector
setting present in server.xml



The server gets started without any issue however when I go to the manager
site

http://127.0.0.1/manager/status

It still show the max thread as 200

"http-bio-127.0.0.1-80"

Max threads: 200 Current thread count: 1 Current thread busy: 1
Max processing time: 0 ms Processing time: 0.0 s Request count: 0 Error
count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB

After looking at this URL
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

It says that if nothing is set for maxThread in connector tag then it sets
it as 200 however in my case it is set as 250 but the manager console is
still showing it as 200

Am I missing something or not setting the property properly? Any
information would be very helpful?

Thanks,
Saurabh


Re: JDBC Connection over VPN

2012-05-07 Thread Saurabh Makol
Can you run

telnet  1521 from command prompt when you VPN into your
network?

On Mon, May 7, 2012 at 3:46 PM, Sanjeev Sharma <
sanjeev.sha...@buchanan-edwards.com> wrote:

> Using port 1521 in both cases, but it only fails for JDBC.
>
> -Original Message-
> From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
> Sent: Monday, May 07, 2012 3:43 PM
> To: 'Tomcat Users List'
> Subject: RE: JDBC Connection over VPN
>
> Could the VPN connection be utlizing the same port Tomcat or Oracle
> usually does? Like something at 8080?
>
> Not sure if that's the case; or conversely, does going into VPN block
> those ports?
>
>
> -Original Message-
> From: Sanjeev Sharma [mailto:sanjeev.sha...@buchanan-edwards.com]
> Sent: Monday, May 07, 2012 2:36 PM
> To: Tomcat Users List
> Subject: JDBC Connection over VPN
>
> Hi,
>
> Not sure if this is a Tomcat issue.  When I connect directly to a network
> and startup my tomcat 7, my JDBC connection to an Oracle 11g network works
> just fine, but if I tunnel into the same network, JDBC fails to connect to
> the database.  At the same time I'm able to make a connection to the same
> database using SQL Developer/SQL Plus.  My network people tell me that all
> ports are open to me and when they try to capture packets coming from me,
> they see nothing if I'm starting up my tomcat.  I'm not a Network or VPN
> expert, but as far as I know, at the application level it should behave
> just as if I'm connected directly to the network and shouldn't have to
> worry about which network adapter to use (built in or VPN), and shouldn't
> have to worry about routing.  I'm at a complete loss, so I'm just hoping
> there is magical tomcat setting which will fix my problem.  Any help would
> be appreciated .
>
> Thanks.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>


Re: how/where to put the application patch on tomcat ?

2010-12-16 Thread Saurabh Makol
Put  it in the lib folder of tomcat directory.

On Thu, Dec 16, 2010 at 2:11 PM, Fang Zhu  wrote:

>
>
>
>
>
> Does anyone has a idea --
>
> how/where to put appPatch.jar to the tomcat, so tomcat can load this
> appPatch.jar first,
> before those jars under /WEB-INF/lib/*.jar ?
>
> according to the document, we can specify the -Xbootclasspath/p
> appPatch.jar, but
> I have no idea how to make it work.
>
> Any help will highly appreicated!
>
> We start the tomcat this way:
>
> $JAVA_HOME/bin/java -Xms16m -Xmx32m
> -Djava.endorsed.dirs=/opt/apache-tomcat-5.5.26/common/endorsed
> -Duser.dir=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1 -classpath
> /opt/apache-tomcat-5.5.26/bin/bootstrap.jar:/opt/apache-tomcat-5.5.26/bin/commons-logging-api.jar
> -Dcatalina.base=/opt/apache-tomcat-5.5.26/servers/sandiego-dev1
> -Dcatalina.home=/opt/apache-tomcat-5.5.26
> -Djava.io.tmpdir=/opt/apache-tomcat-5.5.26/temp
> org.apache.catalina.startup.Bootstrap start
>