org.apache.catalina.util.SessionIdGenerator createSecureRandom consumes a lot of time, how to avoid it?

2013-07-11 Thread Wan, Jian Ming (Jian Ming)
Some time tomcat took a long time to start up. From the log, I can see. What shall I do? Jul 10, 2013 1:01:12 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [25,121] milliseconds.

Re: WebSockets Thread Safety question

2013-07-11 Thread Darryl Miles
Martin Gainty wrote: use java.util.Collections.synchronizedList or even better use a ConcurrentLinkedQueue class (with offer()/peek()/poll() APIs), as I suspect you never need to access the middle elements in the ordered list directly, so why carry this extra java.util.List API

Re: org.apache.catalina.util.SessionIdGenerator createSecureRandom consumes a lot of time, how to avoid it?

2013-07-11 Thread Daniel Mikusa
Try taking a look at Entropy Source here. http://wiki.apache.org/tomcat/HowTo/FasterStartUp Dan On Jul 11, 2013, at 3:16 AM, Wan, Jian Ming (Jian Ming) jian_ming@alcatel-lucent.com wrote: Some time tomcat took a long time to start up. From the log, I can see. What shall I do? Jul

[Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread Stefan Magnus Landrø
Hi there, We're developing a web service application that will have to handle mulitpart requests/responses of up 10 MB. I've looked at the config reference found here http://tomcat.apache.org/tomcat-7.0-doc/config/http.html but I'm not sure which values to tune. Probably the buffers, right?

Re: [Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread Konstantin Kolinko
2013/7/11 Stefan Magnus Landrø stefan.lan...@gmail.com: Hi there, We're developing a web service application that will have to handle mulitpart requests/responses of up 10 MB. I've looked at the config reference found here http://tomcat.apache.org/tomcat-7.0-doc/config/http.html but I'm

Re: [Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread chris derham
Stefan, but I'm not sure which values to tune. Probably the buffers, right? Any pointers would be great. If you want to tune an application, first you need to create a repeatable test load using any tool you like. Then measure the application under load, and identify where there are problems.

Re: [OT] WEB-INF

2013-07-11 Thread Tim Funk
Its a best practice to keep your jsp's inside of WEB-INF. Since WEB-INF/ is not allowed to be requested by the browser - its a simple enforcement mechanism to prevent users from direct access to calling jsps. (Since it may be common to have jsp's as snippets for header / footers etc -- and there

Re: Internal Server Error - Read

2013-07-11 Thread Antonio Vidal Ferrer
Hi Arnab It seems that you have a misconfigured worker.properties file in apache. Be sure to have the same AJP13 port configured in tomcat, and in the worker.properties file. If that doesn't work, then, send workers.properties file, and the connectors section from server.xml to try to identify

Re: [Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread Stefan Magnus Landrø
No. We're using apache cxf. It works ok but io seems to consume a lot of CPU. Den 11. juli 2013 kl. 15:39 skrev Konstantin Kolinko knst.koli...@gmail.com: 2013/7/11 Stefan Magnus Landrø stefan.lan...@gmail.com: Hi there, We're developing a web service application that will have to handle

Re: [Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread Stefan Magnus Landrø
Den 11. juli 2013 kl. 15:44 skrev chris derham ch...@derham.me.uk: Stefan, but I'm not sure which values to tune. Probably the buffers, right? Any pointers would be great. If you want to tune an application, first you need to create a repeatable test load using any tool you like.

Re: roleNested seems to not be working in tomcat 6

2013-07-11 Thread Travis Bowen
Thank you that does work but it takes a very long time since there are 10's of thousands of groups and many have thousands of users. Using that search means that both the uniqueMember and uniqueGroup are searched initially instead of just searching for users member ship first then searching for

RE: [OT] WEB-INF

2013-07-11 Thread Leo Donahue - RDSA IT
-Original Message- From: Tim Funk [mailto:funk...@apache.org] Subject: Re: [OT] WEB-INF Its a best practice to keep your jsp's inside of WEB-INF. Since WEB-INF/ is not allowed to be requested by the browser - its a simple enforcement mechanism to prevent users from direct access to

Re: [Tomcat 7.x] Tuning the connector for large requests / response

2013-07-11 Thread chris derham
On Thu, Jul 11, 2013 at 11:35 AM, Stefan Magnus Landrø stefan.lan...@gmail.com wrote: Den 11. juli 2013 kl. 15:44 skrev chris derham ch...@derham.me.uk: Stefan, but I'm not sure which values to tune. Probably the buffers, right? Any pointers would be great. If you want to tune an

Re: How to handle CONNECT ... HTTP 1.1 400 in localhost_access_log

2013-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 7/9/13 8:16 AM, Mark Thomas wrote: On 09/07/2013 12:54, Howard W. Smith, Jr. wrote: On Tue, Jul 9, 2013 at 2:18 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com]

Re: tomcat reset one connection after it receive the request from the client;

2013-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jian Ming, On 7/9/13 1:54 AM, Wan, Jian Ming (Jian Ming) wrote: Let me describe it; in one connection client send request to tomcat, and tomcat response to it, every thing works well, until packet 11716, in this packet a complete request is send

Re: [OT] WEB-INF

2013-07-11 Thread André Warnier
Leo Donahue - RDSA IT wrote: -Original Message- From: Tim Funk [mailto:funk...@apache.org] Subject: Re: [OT] WEB-INF Its a best practice to keep your jsp's inside of WEB-INF. Since WEB-INF/ is not allowed to be requested by the browser - its a simple enforcement mechanism to prevent

Re: Expected Delay when Switching to New Version of Application Using Parallel Deployment (Tomcat 7.0.27)

2013-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeremy, On 7/9/13 9:58 AM, Majors, Jeremy wrote: On 7/8/13 10:52 PM, Christopher Schultz ch...@christopherschultz.net wrote: Jeremy, On 7/5/13 11:24 AM, Majors, Jeremy wrote: For a simple web application, what is the expected delay when

Re: roleNested seems to not be working in tomcat 6

2013-07-11 Thread Felix Schumacher
Am 11.07.2013 16:42, schrieb Travis Bowen: Thank you that does work but it takes a very long time since there are 10's of thousands of groups and many have thousands of users. Using that search means that both the uniqueMember and uniqueGroup are searched initially instead of just searching

Re: roleNested seems to not be working in tomcat 6

2013-07-11 Thread Travis Bowen
Thanks for submitting the feature request. I don't have any access to the directory server as it is managed by another group, so I have to use what's there. I will check with the group that manages it to see if they can do anything with indexing. Thanks, Travis From: Felix Schumacher

Re: [OT] ssl client certificate authentication

2013-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 7/10/13 7:39 AM, Mark Thomas wrote: On 10/07/2013 12:25, Jan Vávra wrote: Hi all. I've studied the documentation at http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support and I have several questions on it. 1. While

Re: [OT] ssl client certificate authentication

2013-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 7/11/13 2:04 PM, Christopher Schultz wrote: Mark, On 7/10/13 7:39 AM, Mark Thomas wrote: On 10/07/2013 12:25, Jan Vávra wrote: Hi all. I've studied the documentation at

tomcat7 tldScanJar warning

2013-07-11 Thread Chris Cheshire
I am working on migrating from TC6 to 7, and noticed in the log file the info messages about jars being needlessly scanned. Did all my googling and stuff and added all the jars mentioned to the catalina.properties file. All the warnings are gone, but it has done absolutely nothing to improve

Re: Moving Tomcat to work externally.

2013-07-11 Thread john Matlock
You say: Remove the ROOT directory from Tomcat's webapps directory, replacing it with your webapp renamed to ROOT.war (or, if it's already an expanded .war file, put it in the ROOT directory under webapps). Do I understand that you are telling me to put the whole web application into the

RE: Moving Tomcat to work externally.

2013-07-11 Thread Caldarale, Charles R
From: john Matlock [mailto:johndmatl...@gmail.com] Subject: Re: Moving Tomcat to work externally. Remove the ROOT directory from Tomcat's webapps directory, replacing it with your webapp renamed to ROOT.war (or, if it's already an expanded .war file, put it in the ROOT directory under

Application won't start

2013-07-11 Thread Thomas Edison
Hi all, *Context:* I'm trying to install the Pig Lipstick tool from Netflix, which uses Tomcat. Here is the source code. https://github.com/Netflix/Lipstick I followed the instruction on this page: https://github.com/Netflix/Lipstick/wiki/Getting-Started Unfortunately, after I deploy the war

Re: Moving Tomcat to work externally.

2013-07-11 Thread Mark Eggers
On 7/11/2013 3:06 PM, Caldarale, Charles R wrote: From: john Matlock [mailto:johndmatl...@gmail.com] Subject: Re: Moving Tomcat to work externally. Remove the ROOT directory from Tomcat's webapps directory, replacing it with your webapp renamed to ROOT.war (or, if it's already an expanded

RE: Application won't start

2013-07-11 Thread Caldarale, Charles R
From: Thomas Edison [mailto:justdoit.thomas.edi...@gmail.com] Subject: Application won't start *Is there a way I can check the log to see what went wrong?* I checked the log file in CATALINA_BASE, but it didn't tell much. There should be several log files in Tomcat's logs directory; you'll

Re: Moving Tomcat to work externally.

2013-07-11 Thread Mark Eggers
Comments mostly inline. Lots at the end - channeling James Fenimore Cooper. On 7/11/2013 3:26 PM, Mark Eggers wrote: On 7/11/2013 3:06 PM, Caldarale, Charles R wrote: From: john Matlock [mailto:johndmatl...@gmail.com] Subject: Re: Moving Tomcat to work externally. Remove the ROOT directory

Security Issue in Tomcat

2013-07-11 Thread Chanaka Dharmarathna
Hi All, I'm using Tomcat 7.0.40 for hosted application. I have not configured any user accounts for tomcat (admin, manager, user etc.). Recently my deployed web application was damaged. Restarting tomcat recovered it back. But it seems someone tried to access my tomcat and delete some files(I