Re: getSession(true) takes more than 20 seconds????

2001-07-18 Thread Endre Stølsvik

On Tue, 17 Jul 2001, psalazar wrote:

| How can it be?? 20 seconds to get (create) a session object?? The first
| time I create a session object it takes 20 seconds!!

bcoz it uses SecureRandom. It only happens the first time (first
getSession()), when the secure stuff initializes. God knows what it's
doing, but the next calls to random goes much faster, just try to log in
another user, and you'll see.

You can, for development sake, use another random class, you set this in
tomcat-conf.xml thingy.

|
| I really, really appreciate any help on this

Happy? ;)


-- 
Mvh,
Endre




Re: getSession(true) takes more than 20 seconds????

2001-07-18 Thread pedro salazar

Well, I shouldn't reply just for thanks, but, the relief you gave me here
compels me to do it!, since I'm trying to exhibit (and prove) the Java
technology (and other good partnerships as linux) to some people here...
Thank you very much! :-)

pedro salazar

[to all: forgive me this useless and somehow kind of spam in this heavy
distribution list]

- Original Message -
From: Endre Stølsvik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 8:30 AM
Subject: Re: getSession(true) takes more than 20 seconds


 On Tue, 17 Jul 2001, psalazar wrote:

 | How can it be?? 20 seconds to get (create) a session object?? The first
 | time I create a session object it takes 20 seconds!!

 bcoz it uses SecureRandom. It only happens the first time (first
 getSession()), when the secure stuff initializes. God knows what it's
 doing, but the next calls to random goes much faster, just try to log in
 another user, and you'll see.

 You can, for development sake, use another random class, you set this in
 tomcat-conf.xml thingy.

 |
 | I really, really appreciate any help on this

 Happy? ;)


 --
 Mvh,
 Endre





RE: getSession(true) AND SecureRandom

2001-03-08 Thread Randy Layman


The best thing I can think of right now is create a servlet that you
specify as a load-on-startup servlet.  That servlet's init method then makes
an http request to localhost for the correct webapp so that a session is
generated.

Randy

-Original Message-
From: Alfredo Solano Martinez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 9:39 PM
To: [EMAIL PROTECTED]
Subject: Re: getSession(true) AND SecureRandom


Then, is it possible to initialize SecureRandom at startup time? You know,
the only thing I'm asking for is not to have the first client waiting 20
seconds to have his/her page loaded :-)

Alfredo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: getSession(true) AND SecureRandom

2001-03-08 Thread Alfredo Solano Martinez

Hi again, just a couple of things about this little headache of mine :-) :

1. -It seems that SecureRandom initializes at startup time since Tomcat
3.2.2 (currently beta :- ( )

2.- So. what about that load-on-startup tag?? What are the possible
values it may have?

Thanks for the replies


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: getSession(true) AND SecureRandom

2001-03-08 Thread David Wall

 2.- So. what about that load-on-startup tag?? What are the possible
 values it may have?

Those are part of the standard for servlet 2.2, and accordingly they are
supposed to be set to a positive number, with the number indicating the
relative order that the servlets should be loaded on startup.

David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: getSession(true)

2001-03-07 Thread Randy Layman


It should only happen the first time you get a session.  Its because
initalizeing SecureRandom takes that long.  If you search the archives there
is a -D option that you can use to specify a different Random number
generator that might work faster, but be careful.  If someone can guess what
the valid session ids are at any given time, you open yourself up to very
large security attacks.

Randy

-Original Message-
From: Alfredo Solano Martinez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 8:26 PM
To: [EMAIL PROTECTED]
Subject: Re: getSession(true)


Hi again,

I'm in a Debian Linux 2.2 with Blackdown JDK1.3, in a PII-333. Anyway, i'll
try 3.2.1. Can you guys please tell me your times? I'll apreciate it in
order to choose the server the app will be later on.

Thx


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: getSession(true) AND SecureRandom

2001-03-07 Thread Alfredo Solano Martinez

Then, is it possible to initialize SecureRandom at startup time? You know,
the only thing I'm asking for is not to have the first client waiting 20
seconds to have his/her page loaded :-)

Alfredo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: getSession(true)

2001-03-06 Thread T. Park

I haven't seen this sort of delay on 3.2.1 - what environment are you running
tomcat in?

My response time is around a second (as far as I can tell) - I'm using JDK
1.3.0 on Windows NT 4.0 on
an Intel 550Mhz PIII laptop.

-Thom

Alfredo Solano Martinez wrote:

 Greetings,

 does anyone please know why Tomcat (3.2)  takes 20 seconds to create a
 session? ( God, this LONG time makes the connection pooling absurd! )

 Thx in advance

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

--
http://www.borland.com/newsgroups
http://www.borland.com/devsupport/disclaim.html



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: getSession(true)

2001-03-06 Thread Alfredo Solano Martinez

Hi again,

I'm in a Debian Linux 2.2 with Blackdown JDK1.3, in a PII-333. Anyway, i'll
try 3.2.1. Can you guys please tell me your times? I'll apreciate it in
order to choose the server the app will be later on.

Thx


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]