Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
[...] > 3. Use a different random source with: >   JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom" >   in setenv.sh > Sorry for the misinformation. This actually works! I thought this was a typo at first, but this wasn't, you MUST use /dev/./urandom, /dev/urandom will not work. Duh. Referenc

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Mark Thomas
On 18/03/2011 14:21, Konstantin Kolinko wrote: > I understand your point, but the OP's stack trace is inside > nextBytes(), not inside createSecureRandom(). > > It might be that createSecureRandom() also has noticeable delay in > these circumstances. I just do not know. Ah. We need to call nextBy

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
2011/3/18 Mark Thomas : > On 18/03/2011 14:07, Konstantin Kolinko wrote: >> Just a note: Maybe it is worth to measure the time that the sessionId >> generation takes (looking at the stack trace in [1]) and print some >> warning if org.apache.catalina.util.SessionIdGenerator.getRandomBytes( >> ) >>

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 14:47, Caldarale, Charles R wrote: >> From: Francis GALIEGUE [mailto:f...@one2team.com] >> Subject: Re: Tomcat 7: manager application takes forever to deploy - or not > >> On a 30 seconds start sequence, I collected 3 traces and >> all look

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Mark Thomas
On 18/03/2011 14:07, Konstantin Kolinko wrote: > Just a note: Maybe it is worth to measure the time that the sessionId > generation takes (looking at the stack trace in [1]) and print some > warning if org.apache.catalina.util.SessionIdGenerator.getRandomBytes( > ) > or > org.apache.catalina.util.S

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
2011/3/18 Mark Thomas : > On 18/03/2011 13:38, Francis GALIEGUE wrote: >> On Fri, Mar 18, 2011 at 11:46, Mark Thomas wrote: >>> My guess is that something is hanging somewhere, probably on some sort >>> of network activity - although I can;t think what it might be. When it >>> seems to be slow, ta

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
>> >> 4) TRACE is not a valid level name. >> 1.  See JavaDoc for java.util.logging.Level. You want "FINE" or >> "FINEST". Do not forget to add ".level" to the property name: it is >> "packagename.level". Without the package ".level" (with a leading dot) >> states the default. It defaults to INFO. >

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Mark Thomas
On 18/03/2011 13:38, Francis GALIEGUE wrote: > On Fri, Mar 18, 2011 at 11:46, Mark Thomas wrote: >> My guess is that something is hanging somewhere, probably on some sort >> of network activity - although I can;t think what it might be. When it >> seems to be slow, take 2 or 3 thread dumps a coupl

RE: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Caldarale, Charles R
> From: Francis GALIEGUE [mailto:f...@one2team.com] > Subject: Re: Tomcat 7: manager application takes forever to deploy - or not > On a 30 seconds start sequence, I collected 3 traces and > all look like this one. You're waiting on /dev/random. As a workaround, set the

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 11:53, Konstantin Kolinko wrote: > 2011/3/18 Francis GALIEGUE : [...] > > 1) You are using HTTP connector only, no AJP, no HTTPS? > I use AJP, which has no address restriction. I don't use HTTPS. [...] > > 2) Take 3 thread dumps with several seconds between them -- to see

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
On Fri, Mar 18, 2011 at 11:46, Mark Thomas wrote: > On 18/03/2011 10:20, Francis GALIEGUE wrote: >> Sorry, keyboard error, so I'll continue here. >> >>> >>> How do I go about logging wh >> >> ...at the manager application is doing while it deploys? Note, I use >> the default Tomcat logging mechani

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
2011/3/18 Francis GALIEGUE : > Hello, > > Here is the environment: > > * Tomcat 7.0.x, where x is 8 or 11; > * RHEL 6, x86_64 ; > * 64bit Sun JVM 1.6.0.24 ; > * this is a VM on ESX, 2 vCPUs, 2 GB RAM; > > I build my own CATALINA_HOME, the difference between the bundled > tar.gz and my home are: > >

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Mark Thomas
On 18/03/2011 10:20, Francis GALIEGUE wrote: > Sorry, keyboard error, so I'll continue here. > >> >> How do I go about logging wh > > ...at the manager application is doing while it deploys? Note, I use > the default Tomcat logging mechanism. My guess is that something is hanging somewhere, prob

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Francis GALIEGUE
Sorry, keyboard error, so I'll continue here. > > How do I go about logging wh ...at the manager application is doing while it deploys? Note, I use the default Tomcat logging mechanism. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2t