The time here is due to the creation of a list of primes for session ID's (at least it is in tomcat) required for security. You can overide this, but it can result in a less secure session. This happens once and once only however, so many people when they bring up tomcat (or a similar server) will run a bootstrap servlet automatically to create a session so the user never sees the delay. sam ----- Original Message ----- From: "psalazar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 10:02 PM Subject: getSession(true) takes more than 20 seconds???? > Greetings, > > I have a servlet that when a request arrives, it makes a profile using > the header "User-Agent" (which contains the type of the client). But, > this process was taking too long and I thought it was my > ProfileFinder.getProfile() method! But, when I made some logs (I put it > below with the source), I saw that the time is "wasted" in the process > of retrieving of session object from request!!! > > How can it be?? 20 seconds to get (create) a session object?? The first > time I create a session object it takes 20 seconds!! > > I really, really appreciate any help on this.... > > My system: > -linux redhat 6.2 (kernel 2.2.18) > -tomcat3.2.1 > -jdk1.3.0 > -PII400 with 256MB > > thanks, > Pedro Salazar (my stuff is below) > <snip> ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
