AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
Interesting. If the problem was too many sockets in CLOSE_WAIT, consider looking at the connectionLinger setting on your AJP connector's in Tomcat. Mark Mhh.. I haven't heard about the options before.. But it sound like a great idea.. Default is -1. So what would be a good time, one minute?

AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
sry I was wrong default is -1 what menas it is disabled, so I'm fine..?!? Interesting. If the problem was too many sockets in CLOSE_WAIT, consider looking at the connectionLinger setting on your AJP connector's in Tomcat. Mark Mhh.. I haven't heard about the options before.. But it sound

AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
hey, Yes. Whether this is the java that runs tomcat is not immediately evident. But it also seems that they concern port numbers like 7009, 9009 etc. which must be your AJP Connectors, so let's assume the CLOSE-WAITs all involve Tomcat. The first observation hat I would make is that this

Re: AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread André Warnier
David Kumar wrote: hey, Yes. Whether this is the java that runs tomcat is not immediately evident. But it also seems that they concern port numbers like 7009, 9009 etc. which must be your AJP Connectors, so let's assume the CLOSE-WAITs all involve Tomcat. The first observation hat I would

AW: AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
Hey André, According to vmtools the server is boring most times.. What do you mean, boring ? (like German langweilig ?). -- Jep prety idle.. :-) If you have 2000+ connections there in one state or another, that should mean that the system is usually pretty busy, I would think. On my

Re: AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread André Warnier
David Kumar wrote: Attached you can find our configuration files, maybe you can find a / some misconfigurations? I'll have a look. Some notes : - according to the comments in your Apache config file, you are using the worker MPM. But are you sure ? what does /usr/sbin/apache2ctl -l say

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Rainer Jung
On 12.03.2013 11:58, David Kumar wrote: We got the connection_pool_timeout from here: https://community.jboss.org/wiki/OptimalModjk12Configuration I will have a look on the other recommended options Pick a source download of mod_jk. It contains an example configuration that should work

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Rainer Jung
On 14.03.2013 10:04, David Kumar wrote: Hey, thanks for note.. Attached you can find a new list. So, java is keeping these connections in close_wait. close_wait for an AJP connection seen from Tomcat means the other side - mod_jk - has closed the connection, but not Tomcat. This is often

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread André Warnier
Rainer Jung wrote: On 14.03.2013 10:04, David Kumar wrote: Hey, thanks for note.. Attached you can find a new list. So, java is keeping these connections in close_wait. close_wait for an AJP connection seen from Tomcat means the other side - mod_jk - has closed the connection, but not

AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
Mit freundlichen Grüßen David Kumar Softwareentwickler, B. Sc. Abteilung Infotech - Interaktiv TELESTAR-DIGITAL GmbH Am Weiher 14 D-56766 Ulmen Tel.: + 49 (0) 6592 / 712 -2826 Tel.: + 49 (0) 2676 / 9520 -183 Fax: + 49 (0) 6592 / 712 -2829 http://www.telestar.de/ -Ursprüngliche

AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
close_wait for an AJP connection seen from Tomcat means the other side - mod_jk - has closed the connection, but not Tomcat. This is often due to a shorter Timeout on the mod_jk side than on the Tomcat side. It is not a problem per se, but it is if it happens for too many connections for a too

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Rainer Jung
On 15.03.2013 11:47, André Warnier wrote: Rainer Jung wrote: On 14.03.2013 10:04, David Kumar wrote: Hey, thanks for note.. Attached you can find a new list. So, java is keeping these connections in close_wait. close_wait for an AJP connection seen from Tomcat means the other side -

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Rainer Jung
On 15.03.2013 11:57, David Kumar wrote: It could be, that your requests in Tomcat got stuck and Tomcat still is in the state of working on the requests, therefore keeping the connection open to send back stuff finally, whereas mod_jk has already timed out. To check for that, take a couöple of

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread Jan Vávra
Hello, I take care about an app that is a combination of Apache Server+php Drupal app and Apache Tomcat jsp app. Apache Server listens on the ports 80/443 and requests are reverse proxied to Apache Tomcat. Let's say that the tomcat app resides on/testca The apache server config will be

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread solar
Thanks to some advice on this forum, and a lot of independent study and experimentation, I have a php app on apache (localhost:80) pulling in a database driven bar code from a IDAutomation Servlet running on tomcat (localhost:8080). Looks like this - $bcode = $row['Bar Code'] ;

AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
Hey, Please please before restarting take two thread dumps. On Linux/Unix a kill -QUIT will do that (and write the result to STDOUT, which depending on your setup likely goes to catalina.out). The QUIT signal does *not* terminate the JVM, it just quickly writes out the stacks of all threads. The

Re: tomcat 6.0.35 in production maintaince

2013-03-15 Thread Daniel Mikusa
On Mar 14, 2013, at 6:00 PM, fachhoch wrote: I think one of my filters are involved in creating session , I tried in dev box calling the url called by load balancer ,and saw that a session is getting created every time its a new browser, so then I called a html file still session is

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread Jan Vávra
In this situation are both server exposed - Apache Server and Apache Tomcat. It can work. When you use reverse proxy only the Apache Server is exposed. So configuring a ssl certificate is only done once. On client computer/network there could be allowed only the standard http port 80 and not

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-15 Thread Thomas, Steve
-Original Message- From: Harris, Jeffrey E. [mailto:jeffrey.har...@mantech.com] Sent: Thursday, March 14, 2013 4:11 PM To: Tomcat Users List Subject: RE: Procrun and Tomcat service/OS shutdown on Windows -Original Message- From: Konstantin Kolinko

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-15 Thread Thomas, Steve
-Original Message- From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] Sent: Friday, March 15, 2013 12:11 AM To: Tomcat Users List Subject: Re: Procrun and Tomcat service/OS shutdown on Windows On Thu, Mar 14, 2013 at 12:00 PM, Thomas, Steve stho...@vocollect.comwrote: Running

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread solar
In this scenario, both tomcat and apache are running on the same workstation (doesn't have to be, just give the ip of the tomcat server in the script), and access is to intranet users only. Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com ---Original

AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread David Kumar
Hey Rainer, attached you can find a Threaddump. Just rename it to .zip. I'm not sure waht all the stuff at the dump means. but I'm sure you know.. :-) thanks Please please before restarting take two thread dumps. On Linux/Unix a kill -QUIT will do that (and write the result to STDOUT, which

Re: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Rainer Jung
On 15.03.2013 15:44, David Kumar wrote: Hey Rainer, attached you can find a Threaddump. Just rename it to .zip. I'm not sure waht all the stuff at the dump means. but I'm sure you know.. :-) It got stripped by the list. Can you post it somewhere and make the URL available? Regards, Rainer

Re: Standard or OCSP Native Lib?

2013-03-15 Thread Mladen Turk
On 03/15/2013 02:39 AM, Nick Williams wrote: Can anyone shed some light on when you would pick standard and when you would pick OCSP? I think that's usage is self explanatory. Use OCSP if you need OCSP :) Otherwise it'll just slow you down. Since the current implementation does not have

mail/Session resources lookup fail

2013-03-15 Thread Lau, Alex
I have a typical mail resource set up but my lookup always returns localhost as the smtp host. My webapp contect.xml looks like this: ?xml version=1.0 encoding=UTF-8? context Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=smtp.mydomain.com

Re: Tomcat jdbc pool connection failover

2013-03-15 Thread amit shah
On Wed, Mar 13, 2013 at 12:52 PM, André Warnier a...@ice-sa.com wrote: Rainer Frey wrote: On 12.03.2013, at 17:14, Christopher Schultz ch...@christopherschultz.net wrote: On 3/12/13 7:54 AM, amit shah wrote: I am using Oracle. Oracle JDBC Driver provides the Oracle Universal Connection

Re: Changing tomcat connection pool size through jmx

2013-03-15 Thread amit shah
It indeed works. Thanks ! On Fri, Mar 8, 2013 at 6:40 PM, Daniel Mikusa dmik...@vmware.com wrote: On Mar 7, 2013, at 10:11 PM, Amit wrote: I tried setting the 'maxActive' attribute by double clicking it and modifying the value but the new value does not get set. What happens? Do you get

Re: Standard or OCSP Native Lib?

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 10:21 AM, Mladen Turk wrote: Otherwise it'll just slow you down. That's what I was looking for. I didn't see any indication anywhere that OCSP came with a performance hit, so my thought was, why wouldn't you just always use the OCSP version? Thanks for clarifying this.

Re: tomcat 6.0.35 in production maintaince

2013-03-15 Thread Mark H. Wood
On Thu, Mar 14, 2013 at 07:13:20AM -0700, fachhoch wrote: every few seconds a new session is begin created from an ipaddress , I have no clue who owns that ipaddress , how can I find more about that ipaddress? 'whois'. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu There's an

Re: JNDI property roleSearchAsUser not working as expected

2013-03-15 Thread Felix Schumacher
Am 14.03.2013 15:54, schrieb Eugène Adell: I still wonder, why you are so reluctant to use a technical user. Especially since you have security concerns about the anonymous user. To find someone's roles, LDAP only requires a bind + a search in groups. It is a simple ldapsearch command for the

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/13/13 2:19 PM, Nicholas Williams wrote: On Wed, Mar 13, 2013 at 12:10 PM, Christopher Schultz ch...@christopherschultz.net wrote: You mean addWebapp methods? They seem fairly self-explanatory. Yes. I meant addWebapp methods. That

Re: Deadlock when using jetty 8 JDBCSessionManager and Tomcat 7 JDBC Connector

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Colin, On 3/14/13 3:41 PM, Colin Ingarfield wrote: (Sorry I cannot reply correctly b/c I was on the digest list) The deadlocked threads: Deadlock Detection: Found one Java-level deadlock: = qtp1840392480-3740:

Re: check load

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Fachhoch, On 3/14/13 5:30 PM, fachhoch wrote: is there any way I can check load on the server , my loadbabalncer calls a web resource to check if server is able to handle request , if time for repononse exceeds specified linit it launches a

Re: Running a binary program from a JSP

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tim, On 3/14/13 12:34 AM, Tim Gross wrote: I want to know if it is possible to execute a binary program (written in C) from within a JSP. I would like to do this on the server side, not the browser, in Tomcat6. If it is possible, can somebody

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 3/14/13 5:25 PM, Konstantin Kolinko wrote: 2013/3/15 Nick Williams nicho...@nicholaswilliams.net: I resolved the NullPointerException by calling tomcat.getService().setContainer(tomcat.getEngine()) between init() and start().

Re: Procrun and Tomcat service/OS shutdown on Windows

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Steve, On 3/14/13 1:21 PM, Thomas, Steve wrote: Thanks, Jeffrey. That may be a possibility for the long-term. --Steve Did you read Jeffrey's entire reply? He started by top-posting, but then wrote some much more informative comments at the end

Re: AW: AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 DAvid, On 3/13/13 3:01 PM, David Kumar wrote: Hey, right no we're having our Problem. I tried gc through jconsole -- no changes and still a lot CLOSE_WAIT. So it is not a GC Problem and disablereuse doesn't work either.. Any other ideas?

Re: AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 3/14/13 11:02 AM, André Warnier wrote: But this is the request/response connection, so I doubt that there would be a bug there, otherwise we'd have problems reports filling this list every day. Might there be that there is somewhere

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 2:15 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/13/13 2:19 PM, Nicholas Williams wrote: On Wed, Mar 13, 2013 at 12:10 PM, Christopher Schultz ch...@christopherschultz.net wrote: You mean addWebapp methods? They seem

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/15/13 3:56 PM, Nick Williams wrote: I tried using a JAR URL. (If I remember correctly, it ended up looking something like jar:url://C:/Users/Nicholas/Desktop/Project/target/Test.jar!/Test.war. That doesn't look right. I tried

Re: tomcat 6.0.35 in production maintaince

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eugène, On 3/14/13 10:40 AM, Eugène Adell wrote: Sure, you can block any IP by configuring a VALVE in the main config file (server.xml) : http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_Address_Filter This requires a

Re: tomcat 6.0.35 in production maintaince

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Fachhoch, On 3/14/13 8:01 AM, fachhoch wrote: I added all my jsp with %@ page session=false % still session count is increasing , is there any session listner which will debug all session creation ,time ,ipaddress etc and session

Re: SSL Best Practices

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeffrey, On 3/15/13 4:02 PM, Jeffrey D. Fisher wrote: I am looking for a published best practice on editing the SERVER.XML configuration file to use SSL/HTTPS. The key are imported into the keystore. Any input is appreciated. What

Re: Unix domain socket leak using NIO connector

2013-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lucian, On 3/15/13 4:03 PM, Lucian I wrote: We are seeing a leak of Unix domain sockets in Tomcat 7.0.26 configured to run with Http11NioProtocol connector. This is running in Ubuntu Linux 12.04.1 LTS with OpenJDK 6u24. The leak is about 15

Re: Embedded Tomcat JavaDoc Not Complete

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 3:15 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nick, On 3/15/13 3:56 PM, Nick Williams wrote: I tried using a JAR URL. (If I remember correctly, it ended up looking something like

ThreadLocal variables and BIO/NIO/APR

2013-03-15 Thread Nick Williams
I know, I know. Don't use ThreadLocals. I've seen it on this list at least 100 times. But avoiding ThreadLocal variables can be hard: 1) Spring Framework uses ThreadLocals for things like the RequestContext. You can't just turn that off. 2) Spring Security uses ThreadLocals for things like the

Re: ThreadLocal variables and BIO/NIO/APR

2013-03-15 Thread Konstantin Kolinko
2013/3/16 Nick Williams nicho...@nicholaswilliams.net: I know, I know. Don't use ThreadLocals. I've seen it on this list at least 100 times. But avoiding ThreadLocal variables can be hard: 1) Spring Framework uses ThreadLocals for things like the RequestContext. You can't just turn that

Re: ThreadLocal variables and BIO/NIO/APR

2013-03-15 Thread Mark Thomas
On 15/03/2013 20:53, Nick Williams wrote: If I understand this correctly (which I may not), BIO dedicates a thread to a request from beginning to end and then recycles that thread only when the request has completed (which is perfect), but NIO and APR do not do that. More than one request may

Re: Unix domain socket leak using NIO connector

2013-03-15 Thread Lucian I
Hi Christopher, My bad for not seeing the response to the similar question posted last year. Using lsof: $ lsof | grep tomcat7 | grep socket | head -2 java 1341 tomcat7 74u unix 0x88007a26a3c0 0t0 16985 socket java 1341 tomcat7 98u unix 0x88007a26a3c0 0t0

Re: ThreadLocal variables and BIO/NIO/APR

2013-03-15 Thread Nick Williams
On Mar 15, 2013, at 4:05 PM, Mark Thomas wrote: On 15/03/2013 20:53, Nick Williams wrote: If I understand this correctly (which I may not), BIO dedicates a thread to a request from beginning to end and then recycles that thread only when the request has completed (which is perfect), but NIO

Re: Deadlock when using jetty 8 JDBCSessionManager and Tomcat 7 JDBC Connector

2013-03-15 Thread Colin Ingarfield
On Fri, Mar 15, 2013 at 2:21 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Colin, On 3/14/13 3:41 PM, Colin Ingarfield wrote: (Sorry I cannot reply correctly b/c I was on the digest list) The deadlocked threads: Deadlock