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 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 Detection: >> >> Found

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), bu

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 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 m

Re: ThreadLocal variables and BIO/NIO/APR

2013-03-15 Thread Konstantin Kolinko
2013/3/16 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

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: 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 >> jar:url://C:/Users/Nicholas/Desktop

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

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 doc

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: 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: 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 tri

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 >> wrote: >>> You mean addWebapp methods? They seem fairly self-expla

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 somew

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: 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: 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 : > >> I resolved the NullPointerException by calling >> tomcat.getService().setContainer(tomcat.getEngine()) between >> init() and start(). Everything is working

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 > someb

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: 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

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 > wrote: >> You mean addWebapp methods? They seem fairly self-explanatory. > > Yes. I meant addWebapp methods. That was a typo. > > There

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: 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 a

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: 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 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 an error?

Re: Tomcat jdbc pool connection failover

2013-03-15 Thread amit shah
On Wed, Mar 13, 2013 at 12:52 PM, André Warnier 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 Con

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: My webapp web.xml has an entry like this: Resource reference to a factory for javax.mail.Session instances that may be used for sending electronic mai

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 enab

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, Rain

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: 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 Messa

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 wrote: > > Running Tomcat 7.0.23 or 7.0

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 [mailto:knst.koli...@gmail.

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 8

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 i

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 thread

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'] ;

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: 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ö

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 t

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

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 Nachr

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 Tomcat.

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

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 p

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"

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

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 m