Re: tomcat 5 - apache 2 - ldap

2005-09-12 Thread sudip shrestha
But, you will run into problems if you use JNDIRealm with SSL (ldap with ssl 
- Container Managed Security)use mozilla-java sdk if you prefer to do 
this way.
http://www.mozilla.org/directory

On 7/27/05, Nili Adoram <[EMAIL PROTECTED]> wrote:
> 
> What about single sign-on for web applications and PHP?
> 
> Does tomcat delegate credentials back to Apache so Apache would not
> authenticate again?
> 
> Thanks
> Nili
> 
> On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy
> <[EMAIL PROTECTED]> wrote:
> 
> > If you use
> > Form-based authentication (login page) then tomcat needs to do it...
> >
> > Regards
> > Guru
> >
> > -Original Message-
> > From: Raghupathy,Gurumoorthy
> > [mailto:[EMAIL PROTECTED]
> >
> > Sent: 27 July 2005 13:02
> > To: 'Tomcat Users List'
> > Subject: RE: tomcat 5 - apache 2 - ldap
> >
> >
> > Ask tomcat  Because if sometime you change the webserver ( in the
> > worst
> > case ) then you don't need to change anything :)
> >
> > Tomcat has good support for OpenLdap ... ( I have been using it for > 1
> > year
> > )
> >
> > Guru
> >
> >
> > -Original Message-
> > From: Nili Adoram [mailto:[EMAIL PROTECTED]
> > Sent: 27 July 2005 12:54
> > To: tomcat-user@jakarta.apache.org
> > Subject: tomcat 5 - apache 2 - ldap
> >
> >
> > Hi,
> >
> > I need to setup the following system:
> >
> > - Tomcat 5.5.9
> > - Apache 2 (using mod_jk)
> > - Redhat 7.3
> > - User authentication against Ldap (using OpenLdap)
> > - Single sign-on (e.g. if the user is authenticated for entering a web
> > application he will not have to authenticate again when browsing a PHP
> > page)
> > - Form-based authentication (login page)
> >
> > I still need to figure out the following:
> >
> > - Should Tomcat or Apache do ldap authentication ?
> > - How are credentials passed between Tomcat and Apache (to ensure
> > single
> > sign-on) ?
> >
> > Your help is appreciated.
> >
> 
> 
> 
> --
> Nili Adoram ([EMAIL PROTECTED])
> SEMPRE Team, R&D
> Qlusters Inc.
> 972-3-6081976
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Nili Adoram

What about single sign-on for web applications and PHP?

Does tomcat delegate credentials back to Apache so Apache would not  
authenticate again?


Thanks
Nili

On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy  
<[EMAIL PROTECTED]> wrote:



If you use
Form-based authentication (login page) then tomcat needs to do it...

Regards
Guru

-Original Message-
From: Raghupathy,Gurumoorthy  
[mailto:[EMAIL PROTECTED]


Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap


Ask tomcat  Because if sometime you change the webserver ( in the  
worst

case ) then you don't need to change anything :)

Tomcat has good support for OpenLdap ... ( I have been using it for > 1  
year

)

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED]
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure  
single

sign-on) ?

Your help is appreciated.





--
Nili Adoram ([EMAIL PROTECTED])
SEMPRE Team, R&D
Qlusters Inc.
972-3-6081976

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



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
If you use
Form-based authentication (login page) then tomcat needs to do it...

Regards
Guru

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap


Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for > 1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

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

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

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



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for > 1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

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

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



Re: Tomcat 5.X & Cocoon

2005-06-03 Thread Jason Bainbridge
On 6/3/05, Omar Adobati <[EMAIL PROTECTED]> wrote:
> Good Morning to all,
>   I need to know if anyone can run cocoon on Tomcat 5.x.
> Reading on the official site of cocoon it seems to not be possible to
> run cocoon on Tomcat 5.x. This came from the fact that I cant find an
> help in how to do this on the site.
> 
> Does anyone can help me?

First Google result for Tomcat 5.5 cocoon is:
http://www.devx.com/opensource/Article/27102/1954?pf=true

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: Tomcat 5 and STRUTS

2005-06-02 Thread David Short
Nope.  I'm using Struts and Tomcat 5.5.x without issue.  Just follow the
Struts documentation. 

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 02, 2005 9:00 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5 and STRUTS

Hi.

I am getting a new server and want to install the tomcat 5 instead of the
4.1.

I am using STRUTS!!!

Does that give any major problems

Soren, DK
Nolas Consulting




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





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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-09 Thread Jeffrey
Thanks for the advice. I will try your suggestions. I
noticed that from the server status view of the tomcat
manager, I saw some thread with the status 'S' has the
time of '24685295'. Does it mean the thread has hang
there for more than 6 hours (close to 7 hours)?



--- Parsons Technical Services
<[EMAIL PROTECTED]> wrote:

> I think that would be the direction I would take.
> 
> If you need more proof:
> 
> Sniff the connection to the server to confirm the
> lack of available 
> connections. So far it is pointing in that
> direction.
> 
> Another test you might do is create a connection
> from a known IP, close the 
> browser and monitor the connection status. If it is
> hanging open then start 
> digging.
> 
> I think you may also be experiencing  an issue of
> clickatosis. It occurs 
> when the client doesn't think the page is responding
> quick enough and since 
> more is better after 10 or 20 clicks they decide to
> wait or give up. Mean 
> while for each click they cause a request which can
> bog things down. 
> Wrapping this with the held connections you can get
> a scenario as such:
> 
> Client hits site.
> No or slow response.
> Clicks again. Or several times.
> Often closes browser and tries over.
> This creates a new connection request.
> Snowballs from there.
> 
> Think about this, do you really get over a 100k
> users in six hours? Or even 
> 100k page requests? That's a lot of traffic. If the
> client machines abandons 
> the connection before the server, then establishes a
> new one, it compound 
> the problem.
> 
> Find a way to have the OS let Apache handle the
> connection timeout and get 
> it down to a reasonable time.
> 
> Since you are inheriting this, there may be a reason
> that the connection 
> timeout is set so high. If the original creator of
> this wanted the user to 
> be able to sit on a page for a long time without
> losing the session and 
> connection thus causing the user to have to
> re-authenticate. But then there 
> is a trade off. which you are experiencing right
> now.
> 
> Get the time down until the complaint about having
> to re-login get too high 
> or until the connection speed delay is acceptable.
> 
> Just my $0.015
> 
> Doug
> - Original Message - 
> From: "Jeffrey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> 
> Sent: Saturday, May 07, 2005 1:05 PM
> Subject: Re: Tomcat 5 slow, it's in production,
> please help!
> 
> 
> > It seems that, at least in most cases, the main
> menu
> > page after a login is loaded slow. After that
> other
> > pages are loaded pretty quick. Does that mean once
> a
> > connection is established, browser and server
> > communication is ok. If that is the case, maybe I
> > should look more at the connection timeout at the
> OS
> > level (solaris 5.6) since I see a lot of TIME_WAIT
> at
> > the machine using the 'netstat -n' command.
> >
> >
> > --- Jeffrey <[EMAIL PROTECTED]> wrote:
> >
> >> Please see the answer embedded below.
> >>
> >> --- Parsons Technical Services
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >> > 127421 over what period of time?
> >> It's about 6 hours. But most of them are at the
> >> first
> >> hour or so.
> >> >
> >> > Without a profile it is impossible to say if
> >> Tomcat
> >> > can handle the load. But
> >> > if the memory consumption and the CPU usage is
> low
> >> > (as noted) it is fairly
> >> > safe to say that Tomcat itself is not the
> bottle
> >> > neck.
> >> >
> >> > Quick question, why are you using Apache?
> >>
> >> I am using Apache SSL for SSL connections. It is
> the
> >> original setup by someone else.
> >>
> >> >
> >> > Also what is the time out for the connection in
> >> > Apache?
> >>
> >> Apache's Timeout value is 300.
> MaxKeepAliveRequests
> >> is
> >> 100 and KeepAliveTimeout is 15
> >> >
> >> > Do you get this slow reaction if you are
> hitting
> >> > Tomcat directly?
> >>
> >> I did get the slow reaction if I hit Tomcat
> directly
> >> at port 8080 to the same webapp. But the tomcat
> >> manager web pages seem show up fairly quick.
> >>
> >> >
> >> > I may be repeating something that was covered
> >> > because I have not been
> >> >

Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
I think that would be the direction I would take.
If you need more proof:
Sniff the connection to the server to confirm the lack of available 
connections. So far it is pointing in that direction.

Another test you might do is create a connection from a known IP, close the 
browser and monitor the connection status. If it is hanging open then start 
digging.

I think you may also be experiencing  an issue of clickatosis. It occurs 
when the client doesn't think the page is responding quick enough and since 
more is better after 10 or 20 clicks they decide to wait or give up. Mean 
while for each click they cause a request which can bog things down. 
Wrapping this with the held connections you can get a scenario as such:

Client hits site.
No or slow response.
Clicks again. Or several times.
Often closes browser and tries over.
This creates a new connection request.
Snowballs from there.
Think about this, do you really get over a 100k users in six hours? Or even 
100k page requests? That's a lot of traffic. If the client machines abandons 
the connection before the server, then establishes a new one, it compound 
the problem.

Find a way to have the OS let Apache handle the connection timeout and get 
it down to a reasonable time.

Since you are inheriting this, there may be a reason that the connection 
timeout is set so high. If the original creator of this wanted the user to 
be able to sit on a page for a long time without losing the session and 
connection thus causing the user to have to re-authenticate. But then there 
is a trade off. which you are experiencing right now.

Get the time down until the complaint about having to re-login get too high 
or until the connection speed delay is acceptable.

Just my $0.015
Doug
- Original Message - 
From: "Jeffrey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Saturday, May 07, 2005 1:05 PM
Subject: Re: Tomcat 5 slow, it's in production, please help!


It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at the OS
level (solaris 5.6) since I see a lot of TIME_WAIT at
the machine using the 'netstat -n' command.
--- Jeffrey <[EMAIL PROTECTED]> wrote:
Please see the answer embedded below.
--- Parsons Technical Services
<[EMAIL PROTECTED]> wrote:
> 127421 over what period of time?
It's about 6 hours. But most of them are at the
first
hour or so.
>
> Without a profile it is impossible to say if
Tomcat
> can handle the load. But
> if the memory consumption and the CPU usage is low
> (as noted) it is fairly
> safe to say that Tomcat itself is not the bottle
> neck.
>
> Quick question, why are you using Apache?
I am using Apache SSL for SSL connections. It is the
original setup by someone else.
>
> Also what is the time out for the connection in
> Apache?
Apache's Timeout value is 300. MaxKeepAliveRequests
is
100 and KeepAliveTimeout is 15
>
> Do you get this slow reaction if you are hitting
> Tomcat directly?
I did get the slow reaction if I hit Tomcat directly
at port 8080 to the same webapp. But the tomcat
manager web pages seem show up fairly quick.
>
> I may be repeating something that was covered
> because I have not been
> reading this thread in detail. So sorry if already
> asked and answered.
>
>
> Doug
>
>
>
> ----- Original Message - 
> From: "Jeffrey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> 
> Sent: Saturday, May 07, 2005 10:44 AM
> Subject: Re: Tomcat 5 slow, it's in production,
> please help!
>
>
> > This website has many JSP pages of which each
has
> many
> > JSPF included. I wonder whether or not the
system
> is
> > not be able to handle this kind of  setting. But
> > strange thing is that when we experienced the
> > slowness, I looked at the usage of CPU and find
> that
> > almost 90% of the CPU is idle.
> >
> > Do anyone know what kind of load a tomcat can
> handle.
> > I am thinking that maybe a load balancer will
> help.
> > But I am still puzzled by the fact of low CPU
> usage at
> > the time of slowness.
> >
> > From the server status view in tomcat manager, I
> can
> > see 's Request count: 127421'
> >
> > --- Jeffrey <[EMAIL PROTECTED]> wrote:
> >> I have a apache/tomcat environment that has
some
> >> problems recently. The environment has the
> >> following:
> >> 1.  Apache 1.3
> >> 2.  Tomcat 5.0.28 (Max memory 384mb)
> >> 3.  JDK 1.4.2_06
> >>
> >> My apache has 

Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at the OS
level (solaris 5.6) since I see a lot of TIME_WAIT at
the machine using the 'netstat -n' command.


--- Jeffrey <[EMAIL PROTECTED]> wrote:

> Please see the answer embedded below.
> 
> --- Parsons Technical Services
> <[EMAIL PROTECTED]> wrote:
> 
> > 127421 over what period of time?
> It's about 6 hours. But most of them are at the
> first
> hour or so.
> > 
> > Without a profile it is impossible to say if
> Tomcat
> > can handle the load. But 
> > if the memory consumption and the CPU usage is low
> > (as noted) it is fairly 
> > safe to say that Tomcat itself is not the bottle
> > neck.
> > 
> > Quick question, why are you using Apache?
> 
> I am using Apache SSL for SSL connections. It is the
> original setup by someone else.
> 
> > 
> > Also what is the time out for the connection in
> > Apache?
> 
> Apache's Timeout value is 300. MaxKeepAliveRequests
> is
> 100 and KeepAliveTimeout is 15
> > 
> > Do you get this slow reaction if you are hitting
> > Tomcat directly?
> 
> I did get the slow reaction if I hit Tomcat directly
> at port 8080 to the same webapp. But the tomcat
> manager web pages seem show up fairly quick.
> 
> > 
> > I may be repeating something that was covered
> > because I have not been 
> > reading this thread in detail. So sorry if already
> > asked and answered.
> > 
> > 
> > Doug
> > 
> > 
> > 
> > - Original Message - 
> > From: "Jeffrey" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List"
> > 
> > Sent: Saturday, May 07, 2005 10:44 AM
> > Subject: Re: Tomcat 5 slow, it's in production,
> > please help!
> > 
> > 
> > > This website has many JSP pages of which each
> has
> > many
> > > JSPF included. I wonder whether or not the
> system
> > is
> > > not be able to handle this kind of  setting. But
> > > strange thing is that when we experienced the
> > > slowness, I looked at the usage of CPU and find
> > that
> > > almost 90% of the CPU is idle.
> > >
> > > Do anyone know what kind of load a tomcat can
> > handle.
> > > I am thinking that maybe a load balancer will
> > help.
> > > But I am still puzzled by the fact of low CPU
> > usage at
> > > the time of slowness.
> > >
> > > From the server status view in tomcat manager, I
> > can
> > > see 's Request count: 127421'
> > >
> > > --- Jeffrey <[EMAIL PROTECTED]> wrote:
> > >> I have a apache/tomcat environment that has
> some
> > >> problems recently. The environment has the
> > >> following:
> > >> 1.  Apache 1.3
> > >> 2.  Tomcat 5.0.28 (Max memory 384mb)
> > >> 3.  JDK 1.4.2_06
> > >>
> > >> My apache has MaxClient set to 256 (apache
> > default).
> > >> The maxThread for tomcat is 500. The site is a
> > >> database driven site.
> > >>
> > >> It seems working fine when load is low. But
> when
> > >> there
> > >> are more than 150 threads (from the sever
> status
> > >> view
> > >> of the tomcat manager), it's response time is
> > very
> > >> slow (5 - 10 minutes). I have tested the
> database
> > >> connections, they seem responding fairly well.
> > >>
> > >> Interesting thing is that most of time the slow
> > >> response time only happens when a user login.
> > Once
> > >> the
> > >> user login and get the main menu page, the user
> > will
> > >> get a good response time. Is it related to
> > KeepAlive
> > >> connections.
> > >>
> > >> Another strange thing is that many threads
> always
> > >> show
> > >> up in the server status view on the tomcat html
> > >> manager page even though I am sure the request
> > has
> > >> gone (I tested this by making a request, then
> > close
> > >> the browser).
> > >>
> > >> My CPU usage is low when the slowdown is
> > experienced
> > >> (Using the top command on th

Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
Please see the answer embedded below.

--- Parsons Technical Services
<[EMAIL PROTECTED]> wrote:

> 127421 over what period of time?
It's about 6 hours. But most of them are at the first
hour or so.
> 
> Without a profile it is impossible to say if Tomcat
> can handle the load. But 
> if the memory consumption and the CPU usage is low
> (as noted) it is fairly 
> safe to say that Tomcat itself is not the bottle
> neck.
> 
> Quick question, why are you using Apache?

I am using Apache SSL for SSL connections. It is the
original setup by someone else.

> 
> Also what is the time out for the connection in
> Apache?

Apache's Timeout value is 300. MaxKeepAliveRequests is
100 and KeepAliveTimeout is 15
> 
> Do you get this slow reaction if you are hitting
> Tomcat directly?

I did get the slow reaction if I hit Tomcat directly
at port 8080 to the same webapp. But the tomcat
manager web pages seem show up fairly quick.

> 
> I may be repeating something that was covered
> because I have not been 
> reading this thread in detail. So sorry if already
> asked and answered.
> 
> 
> Doug
> 
> 
> 
> - Original Message - 
> From: "Jeffrey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> 
> Sent: Saturday, May 07, 2005 10:44 AM
> Subject: Re: Tomcat 5 slow, it's in production,
> please help!
> 
> 
> > This website has many JSP pages of which each has
> many
> > JSPF included. I wonder whether or not the system
> is
> > not be able to handle this kind of  setting. But
> > strange thing is that when we experienced the
> > slowness, I looked at the usage of CPU and find
> that
> > almost 90% of the CPU is idle.
> >
> > Do anyone know what kind of load a tomcat can
> handle.
> > I am thinking that maybe a load balancer will
> help.
> > But I am still puzzled by the fact of low CPU
> usage at
> > the time of slowness.
> >
> > From the server status view in tomcat manager, I
> can
> > see 's Request count: 127421'
> >
> > --- Jeffrey <[EMAIL PROTECTED]> wrote:
> >> I have a apache/tomcat environment that has some
> >> problems recently. The environment has the
> >> following:
> >> 1.  Apache 1.3
> >> 2.  Tomcat 5.0.28 (Max memory 384mb)
> >> 3.  JDK 1.4.2_06
> >>
> >> My apache has MaxClient set to 256 (apache
> default).
> >> The maxThread for tomcat is 500. The site is a
> >> database driven site.
> >>
> >> It seems working fine when load is low. But when
> >> there
> >> are more than 150 threads (from the sever status
> >> view
> >> of the tomcat manager), it's response time is
> very
> >> slow (5 - 10 minutes). I have tested the database
> >> connections, they seem responding fairly well.
> >>
> >> Interesting thing is that most of time the slow
> >> response time only happens when a user login.
> Once
> >> the
> >> user login and get the main menu page, the user
> will
> >> get a good response time. Is it related to
> KeepAlive
> >> connections.
> >>
> >> Another strange thing is that many threads always
> >> show
> >> up in the server status view on the tomcat html
> >> manager page even though I am sure the request
> has
> >> gone (I tested this by making a request, then
> close
> >> the browser).
> >>
> >> My CPU usage is low when the slowdown is
> experienced
> >> (Using the top command on this solaris box which
> has
> >> old solaris operating system 2.6? with 1GB
> memory.
> >>
> >> I set the session timeout time to 5 minutes, but
> in
> >> the session view of tomcat manager, I see message
> >> "30
> >> - <40 minutes:136 sessions". How a session that
> is
> >> more than 30 minutes is still there. Maybe I
> don't
> >> understand this message correctly.
> >>
> >> Please advice. This is a production machine.
> Helps
> >> are
> >> greatly appreciated.
> >>
> >> Thanks.
> >>
> >> Jeffrey.
> >>
> >>
> >>
> >> Discover Yahoo!
> >> Get on-the-go sports scores, stock quotes, news
> and
> >> more. Check it out!
> >> http://discover.yahoo.com/mobile.html
> >>
> >>
> >
>
-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>
> >>
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> > 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
127421 over what period of time?
Without a profile it is impossible to say if Tomcat can handle the load. But 
if the memory consumption and the CPU usage is low (as noted) it is fairly 
safe to say that Tomcat itself is not the bottle neck.

Quick question, why are you using Apache?
Also what is the time out for the connection in Apache?
Do you get this slow reaction if you are hitting Tomcat directly?
I may be repeating something that was covered because I have not been 
reading this thread in detail. So sorry if already asked and answered.

Doug

- Original Message - 
From: "Jeffrey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Saturday, May 07, 2005 10:44 AM
Subject: Re: Tomcat 5 slow, it's in production, please help!


This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of  setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.
Do anyone know what kind of load a tomcat can handle.
I am thinking that maybe a load balancer will help.
But I am still puzzled by the fact of low CPU usage at
the time of slowness.
From the server status view in tomcat manager, I can
see 's Request count: 127421'
--- Jeffrey <[EMAIL PROTECTED]> wrote:
I have a apache/tomcat environment that has some
problems recently. The environment has the
following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06
My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site.
It seems working fine when load is low. But when
there
are more than 150 threads (from the sever status
view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.
Interesting thing is that most of time the slow
response time only happens when a user login. Once
the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections.
Another strange thing is that many threads always
show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).
My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.
I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message
"30
- <40 minutes:136 sessions". How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.
Please advice. This is a production machine. Helps
are
greatly appreciated.
Thanks.
Jeffrey.

Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and
more. Check it out!
http://discover.yahoo.com/mobile.html

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of  setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.

Do anyone know what kind of load a tomcat can handle.
I am thinking that maybe a load balancer will help.
But I am still puzzled by the fact of low CPU usage at
the time of slowness.

>From the server status view in tomcat manager, I can
see 's Request count: 127421'

--- Jeffrey <[EMAIL PROTECTED]> wrote:
> I have a apache/tomcat environment that has some
> problems recently. The environment has the
> following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
> 
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site. 
> 
> It seems working fine when load is low. But when
> there
> are more than 150 threads (from the sever status
> view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
> 
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once
> the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections. 
> 
> Another strange thing is that many threads always
> show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
> 
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
> 
> I set the session timeout time to 5 minutes, but in
> the session view of tomcat manager, I see message
> "30
> - <40 minutes:136 sessions". How a session that is
> more than 30 minutes is still there. Maybe I don't
> understand this message correctly.
> 
> Please advice. This is a production machine. Helps
> are
> greatly appreciated.
> 
> Thanks.
> 
> Jeffrey.
> 
> 
>   
> Discover Yahoo! 
> Get on-the-go sports scores, stock quotes, news and
> more. Check it out! 
> http://discover.yahoo.com/mobile.html
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Tony
As a wild guess
Browser drops the connection immediately without notice
After 5 minutes, tomcat decides to drop the connection
After 30 minutes or so, Solaris finally finishes dropping the connection.
Gives a strange meaning to "Keep-Alive" ;)

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 07, 2005 9:21 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.

I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that parameter is not
honored by the operating system?


--- [EMAIL PROTECTED] wrote:
> I think some of the problem is at the OS level
> 
> You can set a session time at the tomcat level, but
> the default solaris TCP timeouts are hours long.   I
> hope you used the ndd commands to set the TCP
> parameters for short web sessions.
> 
> Also, Solaris 2.6 has a bad thread model and there
> are numerous patches required to run it with  any
> recent Java 2 distributions.   To use the 1.4.xxx
> JVM would require about a dozen patches.
> 
> It would be way better to try to get Solaris 10
> installed on this box  -- It handles the ndd setting
> for you and is way faster on the same hardware. 
> [even solaris 8...]
> 
> 
>  -- Original message
> --
> From: <[EMAIL PROTECTED]>
> > What does "netstat -nt" show?
> > You may have enough connections going that old
> ones 
> > have to time out before you can establish a new
> one.
> > 
> > -Original Message-
> > From: Jeffrey [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 06, 2005 2:16 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat 5 slow, it's in production, please
> help!
> > 
> > 
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the
> following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> > 
> > My apache has MaxClient set to 256 (apache
> default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site. 
> > 
> > It seems working fine when load is low. But when
> there
> > are more than 150 threads (from the sever status
> view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> > 
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once
> the
> > user login and get the main menu page, the user
> will
> > get a good response time. Is it related to
> KeepAlive
> > connections. 
> > 
> > Another strange thing is that many threads always
> show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then
> close
> > the browser).
> > 
> > My CPU usage is low when the slowdown is
> experienced
> > (Using the top command on this solaris box which
> has
> > old solaris operating system 2.6? with 1GB memory.
> > 
> > I set the session timeout time to 5 minutes, but
> in
> > the session view of tomcat manager, I see message
> "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> > 
> > Please advice. This is a production machine. Helps
> are
> > greatly appreciated.
> > 
> > Thanks.
> > 
> > Jeffrey.
> > 
> > 
> > 
> > Discover Yahoo! 
> > Get on-the-go sports scores, stock quotes, news
> and more. Check it out! 
> > http://discover.yahoo.com/mobile.html
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.

I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that parameter is not
honored by the operating system?


--- [EMAIL PROTECTED] wrote:
> I think some of the problem is at the OS level
> 
> You can set a session time at the tomcat level, but
> the default solaris TCP timeouts are hours long.   I
> hope you used the ndd commands to set the TCP
> parameters for short web sessions.
> 
> Also, Solaris 2.6 has a bad thread model and there
> are numerous patches required to run it with  any
> recent Java 2 distributions.   To use the 1.4.xxx
> JVM would require about a dozen patches.
> 
> It would be way better to try to get Solaris 10
> installed on this box  -- It handles the ndd setting
> for you and is way faster on the same hardware. 
> [even solaris 8...]
> 
> 
>  -- Original message
> --
> From: <[EMAIL PROTECTED]>
> > What does "netstat -nt" show?
> > You may have enough connections going that old
> ones 
> > have to time out before you can establish a new
> one.
> > 
> > -Original Message-
> > From: Jeffrey [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 06, 2005 2:16 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat 5 slow, it's in production, please
> help!
> > 
> > 
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the
> following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> > 
> > My apache has MaxClient set to 256 (apache
> default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site. 
> > 
> > It seems working fine when load is low. But when
> there
> > are more than 150 threads (from the sever status
> view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> > 
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once
> the
> > user login and get the main menu page, the user
> will
> > get a good response time. Is it related to
> KeepAlive
> > connections. 
> > 
> > Another strange thing is that many threads always
> show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then
> close
> > the browser).
> > 
> > My CPU usage is low when the slowdown is
> experienced
> > (Using the top command on this solaris box which
> has
> > old solaris operating system 2.6? with 1GB memory.
> > 
> > I set the session timeout time to 5 minutes, but
> in
> > the session view of tomcat manager, I see message
> "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> > 
> > Please advice. This is a production machine. Helps
> are
> > greatly appreciated.
> > 
> > Thanks.
> > 
> > Jeffrey.
> > 
> > 
> > 
> > Discover Yahoo! 
> > Get on-the-go sports scores, stock quotes, news
> and more. Check it out! 
> > http://discover.yahoo.com/mobile.html
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Michael Echerer
Oto Bossert wrote:
> Yoo,
> 
> Yes switch to jk2 is faster!
But unsupported! Development of mod_jk1.x is going on, but not jk2. I
wouldn't advise anyone to select something uncontinued.
I set the session timeout time to 5 minutes, but
>>>
>>>in
>>>
the session view of tomcat manager, I see message
>>>
>>>"30
>>>
- <40 minutes:136 sessions". How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.
Check whether you session-timeout is really set correctly. You can set
the timeout in the default web.xml for all apps, but you could override
it in the webapps web.xml, too. Maybe there it's still set too high.


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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Oto Bossert
Yoo,

Yes switch to jk2 is faster!

set parameters in OPT_CATALINA with -server Xmx=? and Xms=?

Sorry values depend on your available memory on the server, parameters
could be different with your version, check or google for correct parameters,
should improve performance...

Another option could be your code, have a good look at it and try to optimize...

Greetings O.

On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> I use just mod_jk, not jk2 I believe. I do have
> connectionTimeout="2" set to AJP connector in
> server.xml
> 
> Is there any performance issues with jk? Should I
> switch to jk2?
> 
> Thanks.
> 
> --- e <[EMAIL PROTECTED]> wrote:
> > What JK version do you use?  To quote Mladen:
> >
> > "You are probably using prefork mpm, so there is no
> > way to
> > control the number of connections to Tomcat in any
> > way, trough
> > mod_jk. You can limit it only by setting MaxClients
> > in the httpd.conf
> > to the maximum number desired.
> > Because of pre-forking mechanism each child process
> > will eventually
> > establish a single connection to Tomcat, thus the
> > number of connections
> > will rise from StartServers to MaxClients.
> >
> > So there are two solutions for prefork.
> > 1. Make maxThreads==MaxClients
> > 2. Add connectionTimeout="2" to AJP connector."
> >
> > On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> > > I have a apache/tomcat environment that has some
> > > problems recently. The environment has the
> > following:
> > > 1.  Apache 1.3
> > > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > > 3.  JDK 1.4.2_06
> > >
> > > My apache has MaxClient set to 256 (apache
> > default).
> > > The maxThread for tomcat is 500. The site is a
> > > database driven site.
> > >
> > > It seems working fine when load is low. But when
> > there
> > > are more than 150 threads (from the sever status
> > view
> > > of the tomcat manager), it's response time is very
> > > slow (5 - 10 minutes). I have tested the database
> > > connections, they seem responding fairly well.
> > >
> > > Interesting thing is that most of time the slow
> > > response time only happens when a user login. Once
> > the
> > > user login and get the main menu page, the user
> > will
> > > get a good response time. Is it related to
> > KeepAlive
> > > connections.
> > >
> > > Another strange thing is that many threads always
> > show
> > > up in the server status view on the tomcat html
> > > manager page even though I am sure the request has
> > > gone (I tested this by making a request, then
> > close
> > > the browser).
> > >
> > > My CPU usage is low when the slowdown is
> > experienced
> > > (Using the top command on this solaris box which
> > has
> > > old solaris operating system 2.6? with 1GB memory.
> > >
> > > I set the session timeout time to 5 minutes, but
> > in
> > > the session view of tomcat manager, I see message
> > "30
> > > - <40 minutes:136 sessions". How a session that is
> > > more than 30 minutes is still there. Maybe I don't
> > > understand this message correctly.
> > >
> > > Please advice. This is a production machine. Helps
> > are
> > > greatly appreciated.
> > >
> > > Thanks.
> > >
> > > Jeffrey.
> > >
> > > Discover Yahoo!
> > > Get on-the-go sports scores, stock quotes, news
> > and more. Check it out!
> > > http://discover.yahoo.com/mobile.html
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Peter Lin
it sounds like the problem is caused by a large number of connections
dying holding things up.

peter

On 5/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> 153 ESTABLISHED connections to port 443
> 553 connections to port 443 in the process of dying.
> 1420 connections total  (Assuming I'm reading the output of wc correctly;)
> 
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc
> 6934851   55442
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc
> 101 7077980
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc
> 6104270   47590
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc
>   3  21 237
> [EMAIL PROTECTED] tony]$ cat netstat.txt |wc
>14209929  112098
> 
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep 
> ESTABLISHED|wc
> 5123584   40960
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
>  25 1751950
> [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
> 5533871   43222
> [EMAIL PROTECTED] tony]$  cat netstat.txt |grep 129.93.1.146.443|grep 
> ESTABLISHED|wc
> 1531071   12242
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 06, 2005 7:00 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Tomcat 5 slow, it's in production, please help!
> 
> I think some of the problem is at the OS level
> 
> You can set a session time at the tomcat level, but the default solaris TCP
> timeouts are hours long.   I hope you used the ndd commands to set the TCP
> parameters for short web sessions.
> 
> Also, Solaris 2.6 has a bad thread model and there are numerous patches
> required to run it with  any recent Java 2 distributions.   To use the
> 1.4.xxx JVM would require about a dozen patches.
> 
> It would be way better to try to get Solaris 10 installed on this box  -- It
> handles the ndd setting for you and is way faster on the same hardware.
> [even solaris 8...]
> 
>  -- Original message --
> From: <[EMAIL PROTECTED]>
> > What does "netstat -nt" show?
> > You may have enough connections going that old ones
> > have to time out before you can establish a new one.
> >
> > -Original Message-
> > From: Jeffrey [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 06, 2005 2:16 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat 5 slow, it's in production, please help!
> >
> >
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> >
> > My apache has MaxClient set to 256 (apache default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site.
> >
> > It seems working fine when load is low. But when there
> > are more than 150 threads (from the sever status view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> >
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once the
> > user login and get the main menu page, the user will
> > get a good response time. Is it related to KeepAlive
> > connections.
> >
> > Another strange thing is that many threads always show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then close
> > the browser).
> >
> > My CPU usage is low when the slowdown is experienced
> > (Using the top command on this solaris box which has
> > old solaris operating system 2.6? with 1GB memory.
> >
> > I set the session timeout time to 5 minutes, but in
> > the session view of tomcat manager, I see message "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> >
> > Please advice. This is a production machine. Helps are
> > greatly appreciated.
> >
> > Thanks.
> >
> > Jeffrey.
> >
> >
> >
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news and more. Check it out!
> > http://discover.yahoo.com/mobile.html
> >
> > --

RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony

153 ESTABLISHED connections to port 443
553 connections to port 443 in the process of dying.
1420 connections total  (Assuming I'm reading the output of wc correctly;)

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc
6934851   55442
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc
101 7077980
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc
6104270   47590
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc
  3  21 237
[EMAIL PROTECTED] tony]$ cat netstat.txt |wc
   14209929  112098

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep 
ESTABLISHED|wc
5123584   40960
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
 25 1751950
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
5533871   43222
[EMAIL PROTECTED] tony]$  cat netstat.txt |grep 129.93.1.146.443|grep 
ESTABLISHED|wc
1531071   12242

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 7:00 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


I think some of the problem is at the OS level

You can set a session time at the tomcat level, but the default solaris TCP
timeouts are hours long.   I hope you used the ndd commands to set the TCP
parameters for short web sessions.

Also, Solaris 2.6 has a bad thread model and there are numerous patches
required to run it with  any recent Java 2 distributions.   To use the
1.4.xxx JVM would require about a dozen patches.

It would be way better to try to get Solaris 10 installed on this box  -- It
handles the ndd setting for you and is way faster on the same hardware.
[even solaris 8...]


 -- Original message --
From: <[EMAIL PROTECTED]>
> What does "netstat -nt" show?
> You may have enough connections going that old ones
> have to time out before you can establish a new one.
>
> -Original Message-
> From: Jeffrey [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 06, 2005 2:16 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 5 slow, it's in production, please help!
>
>
> I have a apache/tomcat environment that has some
> problems recently. The environment has the following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
>
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site.
>
> It seems working fine when load is low. But when there
> are more than 150 threads (from the sever status view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
>
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections.
>
> Another strange thing is that many threads always show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
>
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
>
> I set the session timeout time to 5 minutes, but in
> the session view of tomcat manager, I see message "30
> - <40 minutes:136 sessions". How a session that is
> more than 30 minutes is still there. Maybe I don't
> understand this message correctly.
>
> Please advice. This is a production machine. Helps are
> greatly appreciated.
>
> Thanks.
>
> Jeffrey.
>
>
>
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread howarddy3
I think some of the problem is at the OS level

You can set a session time at the tomcat level, but the default solaris TCP 
timeouts are hours long.   I hope you used the ndd commands to set the TCP 
parameters for short web sessions.

Also, Solaris 2.6 has a bad thread model and there are numerous patches 
required to run it with  any recent Java 2 distributions.   To use the 1.4.xxx 
JVM would require about a dozen patches.

It would be way better to try to get Solaris 10 installed on this box  -- It 
handles the ndd setting for you and is way faster on the same hardware.  [even 
solaris 8...]


 -- Original message --
From: <[EMAIL PROTECTED]>
> What does "netstat -nt" show?
> You may have enough connections going that old ones 
> have to time out before you can establish a new one.
> 
> -Original Message-
> From: Jeffrey [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 06, 2005 2:16 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 5 slow, it's in production, please help!
> 
> 
> I have a apache/tomcat environment that has some
> problems recently. The environment has the following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
> 
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site. 
> 
> It seems working fine when load is low. But when there
> are more than 150 threads (from the sever status view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
> 
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections. 
> 
> Another strange thing is that many threads always show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
> 
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
> 
> I set the session timeout time to 5 minutes, but in
> the session view of tomcat manager, I see message "30
> - <40 minutes:136 sessions". How a session that is
> more than 30 minutes is still there. Maybe I don't
> understand this message correctly.
> 
> Please advice. This is a production machine. Helps are
> greatly appreciated.
> 
> Thanks.
> 
> Jeffrey.
> 
> 
>   
> Discover Yahoo! 
> Get on-the-go sports scores, stock quotes, news and more. Check it out! 
> http://discover.yahoo.com/mobile.html
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:39 PM
To: Jeffrey; Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


There are certainly people here who understand this much better than I, but

ESTABLISHED these connections are doing something or are capable of 
doing
something

TIME WAIT   these connections are in the process of dying
CLOSE WAIT
FIN WAIT 2

They can't do anything useful but do occupy space until they are finally
gone.
If the browser just goes away and doesn't end the connection, the server has
to wait
for a while before ending it and waiting for responses that never come.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:10 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


Thanks for reply. With "netstat -n", I got numerous
records. Please see the attached file if the following
is hard to see.


TCP
   Local AddressRemote AddressSwind Send-Q
Rwind Recv-Q  State
  - --
- -- ---
129.93.1.146.33544   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33572   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33573   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
127.0.0.1.33692  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33692  32768  0
32768  0 ESTABLISHED
127.0.0.1.33694  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33694  32768  0
32768  0 ESTABLISHED
127.0.0.1.33710  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED

[snip]  too much stuff  [snip]

129.93.1.146.443 164.119.68.37.2826   64186  0
 8760  0 TIME_WAIT
129.93.1.146.443 24.27.148.239.2308   16365  0
 8760  0 ESTABLISHED
129.93.1.146.443 164.119.68.37.2919   65535  0
 8658  0 ESTABLISHED
129.93.1.146.36485   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.8007   127.0.0.1.36488  32768  0
32768  0 TIME_WAIT
129.93.1.146.36487   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
129.93.1.146.443 65.31.230.130.1206   11368  0
 8760  0 FIN_WAIT_2
129.93.1.146.443 65.31.230.12.60763   17520   1087
 8760  0 ESTABLISHED
129.93.1.146.443 129.93.120.170.1460  17520  0
 8658  0 ESTABLISHED
129.93.1.146.36489   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.36336  127.0.0.1.8009   32768  0
32768  0 TIME_WAIT
129.93.1.146.443 24.252.59.10.392316365  0
 8760  0 ESTABLISHED
129.93.1.146.443 69.20.197.189.11999112  0
 9016  0 ESTABLISHED
127.0.0.1.36491  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.36491  32768  0
32768  0 ESTABLISHED
129.93.1.146.443 24.208.93.36.955425200  0
 8682  0 ESTABLISHED

--- [EMAIL PROTECTED] wrote:
> What does "netstat -nt" show?
> You may have enough connections going that old ones
> have to time out before you can establish a new one.
>
> -Original Message-
> From: Jeffrey [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 06, 2005 2:16 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 5 slow, it's in production, please
> help!
>
>
> I have a apache/tomcat environment that has some
> problems recently. The environment has the
> following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
>
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site.
>
> It seems working fine when load is low. But when
> there
> are more than 150 threads (from the sever status
> view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
>
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once
> the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections.
>
> Another strange thing is that many threads always
> show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
>
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
>
> I set the session timeout time to 5 minut

Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Jeffrey
I use just mod_jk, not jk2 I believe. I do have
connectionTimeout="2" set to AJP connector in
server.xml

Is there any performance issues with jk? Should I
switch to jk2?

Thanks.

--- e <[EMAIL PROTECTED]> wrote:
> What JK version do you use?  To quote Mladen:
> 
> "You are probably using prefork mpm, so there is no
> way to
> control the number of connections to Tomcat in any
> way, trough
> mod_jk. You can limit it only by setting MaxClients
> in the httpd.conf
> to the maximum number desired.
> Because of pre-forking mechanism each child process
> will eventually
> establish a single connection to Tomcat, thus the
> number of connections
> will rise from StartServers to MaxClients.
> 
> So there are two solutions for prefork.
> 1. Make maxThreads==MaxClients
> 2. Add connectionTimeout="2" to AJP connector."
> 
> On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the
> following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> > 
> > My apache has MaxClient set to 256 (apache
> default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site.
> > 
> > It seems working fine when load is low. But when
> there
> > are more than 150 threads (from the sever status
> view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> > 
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once
> the
> > user login and get the main menu page, the user
> will
> > get a good response time. Is it related to
> KeepAlive
> > connections.
> > 
> > Another strange thing is that many threads always
> show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then
> close
> > the browser).
> > 
> > My CPU usage is low when the slowdown is
> experienced
> > (Using the top command on this solaris box which
> has
> > old solaris operating system 2.6? with 1GB memory.
> > 
> > I set the session timeout time to 5 minutes, but
> in
> > the session view of tomcat manager, I see message
> "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> > 
> > Please advice. This is a production machine. Helps
> are
> > greatly appreciated.
> > 
> > Thanks.
> > 
> > Jeffrey.
> > 
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news
> and more. Check it out!
> > http://discover.yahoo.com/mobile.html
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Jeffrey
I actually have the reloadable set to true for my
webapps. I will change it to false. Thanks for the
remind. 

What optimal java parameters in your mind are
important ?

Thanks for taking look at this.

--- Oto Bossert <[EMAIL PROTECTED]> wrote:
> Yoo,
> 
> Probably you already looked at it but :
> 
> 1) Make sure not to use reloadable in context
> descriptions.
> 2) Start tomcat with optimal java parameters,
> concerning memory heap and stack
> 3) Make sure that connections to database are
> minimal, do requery if
> answer is always the
> same...
> 
> Good luck,
> 
> Greetings O. 
> 
> On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the
> following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> > 
> > My apache has MaxClient set to 256 (apache
> default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site.
> > 
> > It seems working fine when load is low. But when
> there
> > are more than 150 threads (from the sever status
> view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> > 
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once
> the
> > user login and get the main menu page, the user
> will
> > get a good response time. Is it related to
> KeepAlive
> > connections.
> > 
> > Another strange thing is that many threads always
> show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then
> close
> > the browser).
> > 
> > My CPU usage is low when the slowdown is
> experienced
> > (Using the top command on this solaris box which
> has
> > old solaris operating system 2.6? with 1GB memory.
> > 
> > I set the session timeout time to 5 minutes, but
> in
> > the session view of tomcat manager, I see message
> "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> > 
> > Please advice. This is a production machine. Helps
> are
> > greatly appreciated.
> > 
> > Thanks.
> > 
> > Jeffrey.
> > 
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news
> and more. Check it out!
> > http://discover.yahoo.com/mobile.html
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread e
What JK version do you use?  To quote Mladen:

"You are probably using prefork mpm, so there is no way to
control the number of connections to Tomcat in any way, trough
mod_jk. You can limit it only by setting MaxClients in the httpd.conf
to the maximum number desired.
Because of pre-forking mechanism each child process will eventually
establish a single connection to Tomcat, thus the number of connections
will rise from StartServers to MaxClients.

So there are two solutions for prefork.
1. Make maxThreads==MaxClients
2. Add connectionTimeout="2" to AJP connector."

On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> I have a apache/tomcat environment that has some
> problems recently. The environment has the following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
> 
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site.
> 
> It seems working fine when load is low. But when there
> are more than 150 threads (from the sever status view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
> 
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections.
> 
> Another strange thing is that many threads always show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
> 
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
> 
> I set the session timeout time to 5 minutes, but in
> the session view of tomcat manager, I see message "30
> - <40 minutes:136 sessions". How a session that is
> more than 30 minutes is still there. Maybe I don't
> understand this message correctly.
> 
> Please advice. This is a production machine. Helps are
> greatly appreciated.
> 
> Thanks.
> 
> Jeffrey.
> 
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Oto Bossert
Yoo, 

Sorry bas typo, in 3) I meant, do NOT requery ;)

Greetings O.


On 5/6/05, Oto Bossert <[EMAIL PROTECTED]> wrote:
> Yoo,
> 
> Probably you already looked at it but :
> 
> 1) Make sure not to use reloadable in context descriptions.
> 2) Start tomcat with optimal java parameters, concerning memory heap and stack
> 3) Make sure that connections to database are minimal, do requery if
> answer is always the
> same...
> 
> Good luck,
> 
> Greetings O.
> 
> On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> > I have a apache/tomcat environment that has some
> > problems recently. The environment has the following:
> > 1.  Apache 1.3
> > 2.  Tomcat 5.0.28 (Max memory 384mb)
> > 3.  JDK 1.4.2_06
> >
> > My apache has MaxClient set to 256 (apache default).
> > The maxThread for tomcat is 500. The site is a
> > database driven site.
> >
> > It seems working fine when load is low. But when there
> > are more than 150 threads (from the sever status view
> > of the tomcat manager), it's response time is very
> > slow (5 - 10 minutes). I have tested the database
> > connections, they seem responding fairly well.
> >
> > Interesting thing is that most of time the slow
> > response time only happens when a user login. Once the
> > user login and get the main menu page, the user will
> > get a good response time. Is it related to KeepAlive
> > connections.
> >
> > Another strange thing is that many threads always show
> > up in the server status view on the tomcat html
> > manager page even though I am sure the request has
> > gone (I tested this by making a request, then close
> > the browser).
> >
> > My CPU usage is low when the slowdown is experienced
> > (Using the top command on this solaris box which has
> > old solaris operating system 2.6? with 1GB memory.
> >
> > I set the session timeout time to 5 minutes, but in
> > the session view of tomcat manager, I see message "30
> > - <40 minutes:136 sessions". How a session that is
> > more than 30 minutes is still there. Maybe I don't
> > understand this message correctly.
> >
> > Please advice. This is a production machine. Helps are
> > greatly appreciated.
> >
> > Thanks.
> >
> > Jeffrey.
> >
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news and more. Check it out!
> > http://discover.yahoo.com/mobile.html
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Oto Bossert
Yoo,

Probably you already looked at it but :

1) Make sure not to use reloadable in context descriptions.
2) Start tomcat with optimal java parameters, concerning memory heap and stack
3) Make sure that connections to database are minimal, do requery if
answer is always the
same...

Good luck,

Greetings O. 

On 5/6/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> I have a apache/tomcat environment that has some
> problems recently. The environment has the following:
> 1.  Apache 1.3
> 2.  Tomcat 5.0.28 (Max memory 384mb)
> 3.  JDK 1.4.2_06
> 
> My apache has MaxClient set to 256 (apache default).
> The maxThread for tomcat is 500. The site is a
> database driven site.
> 
> It seems working fine when load is low. But when there
> are more than 150 threads (from the sever status view
> of the tomcat manager), it's response time is very
> slow (5 - 10 minutes). I have tested the database
> connections, they seem responding fairly well.
> 
> Interesting thing is that most of time the slow
> response time only happens when a user login. Once the
> user login and get the main menu page, the user will
> get a good response time. Is it related to KeepAlive
> connections.
> 
> Another strange thing is that many threads always show
> up in the server status view on the tomcat html
> manager page even though I am sure the request has
> gone (I tested this by making a request, then close
> the browser).
> 
> My CPU usage is low when the slowdown is experienced
> (Using the top command on this solaris box which has
> old solaris operating system 2.6? with 1GB memory.
> 
> I set the session timeout time to 5 minutes, but in
> the session view of tomcat manager, I see message "30
> - <40 minutes:136 sessions". How a session that is
> more than 30 minutes is still there. Maybe I don't
> understand this message correctly.
> 
> Please advice. This is a production machine. Helps are
> greatly appreciated.
> 
> Thanks.
> 
> Jeffrey.
> 
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony
What does "netstat -nt" show?
You may have enough connections going that old ones 
have to time out before you can establish a new one.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 2:16 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5 slow, it's in production, please help!


I have a apache/tomcat environment that has some
problems recently. The environment has the following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06

My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site. 

It seems working fine when load is low. But when there
are more than 150 threads (from the sever status view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.

Interesting thing is that most of time the slow
response time only happens when a user login. Once the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections. 

Another strange thing is that many threads always show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).

My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.

I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message "30
- <40 minutes:136 sessions". How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.

Please advice. This is a production machine. Helps are
greatly appreciated.

Thanks.

Jeffrey.



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

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

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



Re: Tomcat 5 and SSL Configuration

2005-04-29 Thread jejones
I do not know the answer to your question. Sorry.
-jrj
Bruce Perryman wrote:
Cool. I think other CAs have the same policy. How many
times can you revoke/renew with Verisign? Is it only
once?
 

 

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


Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread Bruce Perryman
Cool. I think other CAs have the same policy. How many
times can you revoke/renew with Verisign? Is it only
once?

BTW, it appears a DSA encrypted server will cause a
Netscape browser to throw an exception. Apparently
Netscape only handles RSA. There are probably other
clients & servers that will cause the same
incompatibility problem with a DSA encrypted server.
Since it is apparent, I guess, that it's too much
trouble to change the default keyalg to RSA in the
keytool command, the language should be much stronger
in the tomcat and ssl instructions to specify RSA
encryption.

Thanks for your input.

--- [EMAIL PROTECTED] wrote:
> 
>   You can revoke/renew with verisign for NO CHARGE
> within 30days.  
> FWIW:  We specify RSA.
> 
> Bruce Perryman wrote:
> 
> >Thanks Mark, and all others, for your help.
> >
> >As I mentioned, we did get this to work. The only
> >problem was that we didn't specify the keyalg param
> >nor rsa so the default is dsa. 
> >
> >I posted another question "Is DSA OK", but no one
> >seems to know. It appears that DSA doesn't handle
> >encryption, but I'm not sure also it seems that
> there
> >can be compatiblity issues between RSA and DSA. But
> >since I've already gotten the cert from the CA, I
> may
> >be screwed.
> >
> >Any ideas?
> >--- Mark Thomas <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Bruce,
> >>
> >>Sorry. Don't know. I have only ever got it working
> >>using RSA. However, 
> >>when I did this I got so many things wrong the
> first
> >>20 or so times I 
> >>tried it it could have been anything stopping it
> >>working.
> >>
> >>Mark
> >>
> >>Bruce Perryman wrote:
> >>
> >>
> >>>Thanks,
> >>>
> >>>It worked, the only problem is that we failed to
> >>>specify the RSA algorithm.
> >>>
> >>>Are we screwed for using DSA?
> >>>
> >>>--- Mark Thomas <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>  
> >>>
> The following steps should work (although I have
> only ever done this 
> using my own CA).
> 
> 1. Create tomcat key in your own keystore
> 2. Create CSR
> 3. Submit CSR
> 4. Get response
> 5. Import CA's root cert to cacerts
> (%JAVA_HOME%\jre\lib\security\cacerts)
> 6. Import new cert to same keystore as 1 (use
> same
> alias & trustcacerts 
> option)
> 7. Restart Tomcat
> 
> HTH
> 
> Mark
> 
> 
> >>
> >>
> >>
>
>-
> >  
> >
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >__
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> >http://mail.yahoo.com 
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >  
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread jejones
 You can revoke/renew with verisign for NO CHARGE within 30days.  
FWIW:  We specify RSA.

Bruce Perryman wrote:
Thanks Mark, and all others, for your help.
As I mentioned, we did get this to work. The only
problem was that we didn't specify the keyalg param
nor rsa so the default is dsa. 

I posted another question "Is DSA OK", but no one
seems to know. It appears that DSA doesn't handle
encryption, but I'm not sure also it seems that there
can be compatiblity issues between RSA and DSA. But
since I've already gotten the cert from the CA, I may
be screwed.
Any ideas?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
 

Bruce,
Sorry. Don't know. I have only ever got it working
using RSA. However, 
when I did this I got so many things wrong the first
20 or so times I 
tried it it could have been anything stopping it
working.

Mark
Bruce Perryman wrote:
   

Thanks,
It worked, the only problem is that we failed to
specify the RSA algorithm.
Are we screwed for using DSA?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
 

The following steps should work (although I have
only ever done this 
using my own CA).

1. Create tomcat key in your own keystore
2. Create CSR
3. Submit CSR
4. Get response
5. Import CA's root cert to cacerts
(%JAVA_HOME%\jre\lib\security\cacerts)
6. Import new cert to same keystore as 1 (use same
alias & trustcacerts 
option)
7. Restart Tomcat

HTH
Mark
   

   

-
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

 


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


Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread Bruce Perryman
Thanks Mark, and all others, for your help.

As I mentioned, we did get this to work. The only
problem was that we didn't specify the keyalg param
nor rsa so the default is dsa. 

I posted another question "Is DSA OK", but no one
seems to know. It appears that DSA doesn't handle
encryption, but I'm not sure also it seems that there
can be compatiblity issues between RSA and DSA. But
since I've already gotten the cert from the CA, I may
be screwed.

Any ideas?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
> Bruce,
> 
> Sorry. Don't know. I have only ever got it working
> using RSA. However, 
> when I did this I got so many things wrong the first
> 20 or so times I 
> tried it it could have been anything stopping it
> working.
> 
> Mark
> 
> Bruce Perryman wrote:
> > Thanks,
> > 
> > It worked, the only problem is that we failed to
> > specify the RSA algorithm.
> > 
> > Are we screwed for using DSA?
> > 
> > --- Mark Thomas <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>The following steps should work (although I have
> >>only ever done this 
> >>using my own CA).
> >>
> >>1. Create tomcat key in your own keystore
> >>2. Create CSR
> >>3. Submit CSR
> >>4. Get response
> >>5. Import CA's root cert to cacerts
> >>(%JAVA_HOME%\jre\lib\security\cacerts)
> >>6. Import new cert to same keystore as 1 (use same
> >>alias & trustcacerts 
> >>option)
> >>7. Restart Tomcat
> >>
> >>HTH
> >>
> >>Mark
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread Lapo TIN
and if I would like to store the certificate on a PKCS11 usb token ?
I did every steps:
1) generation of keypair on the usb token
"keytool -genkey -alias lapo -keystore NONE -storetype PKCS11 -keyalg 
"RSA" -validity 365"

2) request a certificate sign, it export a csr file on disk
"keytool -certreq -alias lapo -keystore NONE -storetype PKCS11 -file 
lapo_certreq.csr"

3) I give the file to the CA, CA signs with openssl, and generates the file 
lapo_cert.cer

4) then I would like to import the signed certificate on PKCS11 keystore to 
update it but it needs the root CA certificate in the PKCS11 Keystor to 
rebuild the chain.. in fact it says:
"keytool -import -alias lapo -keystore NONE -storetype PKCS11 -file 
lapo_cert.cer "
java error "impossibile stabilire la catena dalla risposta"

so first I try to import the CA certificate but it says  error again
"keytool -import -alias root -keystore NONE -storetype PKCS11 -file 
cacert.cer "
"trusted certificates may only be set by token initialization application"

I tried with many different model of usb token... same errors...
why ?!?!?

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 28, 2005 8:44 PM
Subject: Re: Tomcat 5 and SSL Configuration


Here is the complete steps to generate a cert for the Tomcat Webserver. I 
am listing the commands that I used, your keystore directory _will_ vary.

keytool -genkey -keyalg RSA -alias tomcat –keystore 
password is "changeit"
then
keytool -certreq -keyalg RSA -alias tomcat –keystore 
 -file 

then once you receive the cert back from VERISIGN...
IF it's the first cert this server has had, you'll need to download a
chaincert from the following locations depending on who you purchase the
cert from:
For Verisign.com go to:
http://www.verisign.com/support/install/intermediate.html
For Trustcenter.de go to:
http://www.trustcenter.de/certservices/cacerts/en/en.htm#server
For Thawte.com go to:
http://www.thawte.com/certs/trustmap.html
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore 
 -trustcacerts -file 


And finally import your new Certificate (It must be in X509 format):
keytool -import -alias tomcat -keystore 
 -trustcacerts -file 


Jeff
-jrj
Mark Thomas wrote:
Bruce,
Sorry. Don't know. I have only ever got it working using RSA. However, 
when I did this I got so many things wrong the first 20 or so times I 
tried it it could have been anything stopping it working.

Mark
Bruce Perryman wrote:
Thanks,
It worked, the only problem is that we failed to
specify the RSA algorithm.
Are we screwed for using DSA?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:

The following steps should work (although I have
only ever done this using my own CA).
1. Create tomcat key in your own keystore
2. Create CSR
3. Submit CSR
4. Get response
5. Import CA's root cert to cacerts
(%JAVA_HOME%\jre\lib\security\cacerts)
6. Import new cert to same keystore as 1 (use same
alias & trustcacerts option)
7. Restart Tomcat
HTH
Mark


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


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


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


Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread jejones
Here is the complete steps to generate a cert for the Tomcat Webserver. 
I am listing the commands that I used, your keystore directory _will_ vary.

keytool -genkey -keyalg RSA -alias tomcat –keystore 
password is "changeit"
then
keytool -certreq -keyalg RSA -alias tomcat –keystore 
 -file 

then once you receive the cert back from VERISIGN...
IF it's the first cert this server has had, you'll need to download a
chaincert from the following locations depending on who you purchase the
cert from:
For Verisign.com go to:
http://www.verisign.com/support/install/intermediate.html
For Trustcenter.de go to:
http://www.trustcenter.de/certservices/cacerts/en/en.htm#server
For Thawte.com go to:
http://www.thawte.com/certs/trustmap.html
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore  -trustcacerts 
-file 

And finally import your new Certificate (It must be in X509 format):
keytool -import -alias tomcat -keystore  
-trustcacerts -file 

Jeff
-jrj
Mark Thomas wrote:
Bruce,
Sorry. Don't know. I have only ever got it working using RSA. However, 
when I did this I got so many things wrong the first 20 or so times I 
tried it it could have been anything stopping it working.

Mark
Bruce Perryman wrote:
Thanks,
It worked, the only problem is that we failed to
specify the RSA algorithm.
Are we screwed for using DSA?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:

The following steps should work (although I have
only ever done this using my own CA).
1. Create tomcat key in your own keystore
2. Create CSR
3. Submit CSR
4. Get response
5. Import CA's root cert to cacerts
(%JAVA_HOME%\jre\lib\security\cacerts)
6. Import new cert to same keystore as 1 (use same
alias & trustcacerts option)
7. Restart Tomcat
HTH
Mark


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


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


Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread Mark Thomas
Bruce,
Sorry. Don't know. I have only ever got it working using RSA. However, 
when I did this I got so many things wrong the first 20 or so times I 
tried it it could have been anything stopping it working.

Mark
Bruce Perryman wrote:
Thanks,
It worked, the only problem is that we failed to
specify the RSA algorithm.
Are we screwed for using DSA?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:

The following steps should work (although I have
only ever done this 
using my own CA).

1. Create tomcat key in your own keystore
2. Create CSR
3. Submit CSR
4. Get response
5. Import CA's root cert to cacerts
(%JAVA_HOME%\jre\lib\security\cacerts)
6. Import new cert to same keystore as 1 (use same
alias & trustcacerts 
option)
7. Restart Tomcat

HTH
Mark

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


Re: Tomcat 5 and SSL Configuration

2005-04-28 Thread Bruce Perryman
Thanks,

It worked, the only problem is that we failed to
specify the RSA algorithm.

Are we screwed for using DSA?

--- Mark Thomas <[EMAIL PROTECTED]> wrote:

> The following steps should work (although I have
> only ever done this 
> using my own CA).
> 
> 1. Create tomcat key in your own keystore
> 2. Create CSR
> 3. Submit CSR
> 4. Get response
> 5. Import CA's root cert to cacerts
> (%JAVA_HOME%\jre\lib\security\cacerts)
> 6. Import new cert to same keystore as 1 (use same
> alias & trustcacerts 
> option)
> 7. Restart Tomcat
> 
> HTH
> 
> Mark
> 
> Bruce Perryman wrote:
> > Thanks for responding!
> > 
> > Yes, I do have a backup, but I should have
> mentioned
> > that there were several attempts to get this
> working.
> > One of the first attempts ommitted step #5, but I
> had
> > the same result.
> > I used step #5 in an attempt to remove the old and
> > then insert the new. But that didn't work either.
> > 
> > One other thing that I noticed is that my previous
> > (expired) keystore had 2 certs in it one was a
> root
> > trusted cert entry and the tomcat key entry.
> > 
> > This time, in one of my initial attempts, the
> tomcat
> > alias was the only entry and it was the trusted
> cert
> > entry.
> > 
> > Does this have anything to do with the problem?
> > --- Mark Thomas <[EMAIL PROTECTED]> wrote:
> > 
> >>Bruce,
> >>
> >>You should not have done step 5. This deleted your
> >>private key. I hope 
> >>you have a backup ;)
> >>
> >>Mark
> >>
> >>Bruce Perryman wrote:
> >>
> >>>Hello,
> >>>
> >>>I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat
> 9.
> >>>
> >>>My SSL certificate expired and I received a new
> >>
> >>one
> >>
> >>>but haven't been able to get the new one to work.
> 
> >>>
> >>>Here are the steps that I used to get the
> >>
> >>certificate
> >>
> >>>and import it into my keystore:
> >>>
> >>>[1] keytool -genkey -alias tomcat
> >>> -keyalg RSA -keystore .keystore
> >>>[2] keytool -certreq -alias tomcat
> >>> -keystore .keystore -file tomcat.csr
> >>>[3] Submit tomcat.csr to Entrust and then
> >>> retrieve entrust_ssl_ca.cer  (We used
> >>> cut and paste, not file download.)
> >>>[4] shut down Tomcat
> >>>[5] keytool -delete -alias tomcat
> >>>  -keystore .keystore
> >>>[6] keytool import -trustcacerts
> >>> -alias tomcat -file entrust_ssl_ca.cer
> >>> -keystore .keystore
> >>>[7] restart tomcat
> >>>Instead of [6], we also tried:
> >>>[6a] keytool import -alias tomcat
> >>>  -file entrust_ssl_ca.cer -keystore
> .keystore
> >>>
> >>>When I restart Tomcat and view my page, I get the
> >>>message that the page cannot be displayed.
> >>>
> >>>In my catalina.out file, I see the following
> >>
> >>severe
> >>
> >>>error msg:
> >>>
> >>>Endpoint [SSL: ServerSocket[addr= ]] ignored
> >>>exception: java.net.SocketException: SSL
> handshake
> >>>errorjavax.net.ssl.SSLException: No available
> >>>certificate corresponds to the SSL cipher suites
> >>
> >>which
> >>
> >>>are enabled.
> >>>
> >>>Does anyone know what I'm doing wrong? I don't
> >>
> >>have
> >>
> >>>the exact steps that I performed with my previous
> >>>certificate, but the above steps are what I used
> >>
> >>for
> >>
> >>>the newly issued certificate.
> >>>
> >>>Thanks, in advance, for your help.
> >>>
> >>>
> >>>   
> >>>__ 
> >>>Do you Yahoo!? 
> >>>Yahoo! Mail - 250MB free storage. Do more. Manage
> >>
> >>less. 
> >>
> >>>http://info.mail.yahoo.com/mail_250
> >>>
> >>>
> >>
> >
>
-
> > 
> >>>To unsubscribe, e-mail:
> >>
> >>[EMAIL PROTECTED]
> >>
> >>>For additional commands, e-mail:
> >>
> >>[EMAIL PROTECTED]
> >>
> >>>
> >>>
> >>
> >>
> >
>
-
> > 
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Mark Thomas
The following steps should work (although I have only ever done this 
using my own CA).

1. Create tomcat key in your own keystore
2. Create CSR
3. Submit CSR
4. Get response
5. Import CA's root cert to cacerts (%JAVA_HOME%\jre\lib\security\cacerts)
6. Import new cert to same keystore as 1 (use same alias & trustcacerts 
option)
7. Restart Tomcat

HTH
Mark
Bruce Perryman wrote:
Thanks for responding!
Yes, I do have a backup, but I should have mentioned
that there were several attempts to get this working.
One of the first attempts ommitted step #5, but I had
the same result.
I used step #5 in an attempt to remove the old and
then insert the new. But that didn't work either.
One other thing that I noticed is that my previous
(expired) keystore had 2 certs in it one was a root
trusted cert entry and the tomcat key entry.
This time, in one of my initial attempts, the tomcat
alias was the only entry and it was the trusted cert
entry.
Does this have anything to do with the problem?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
Bruce,
You should not have done step 5. This deleted your
private key. I hope 
you have a backup ;)

Mark
Bruce Perryman wrote:
Hello,
I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat 9.
My SSL certificate expired and I received a new
one
but haven't been able to get the new one to work. 

Here are the steps that I used to get the
certificate
and import it into my keystore:
[1] keytool -genkey -alias tomcat
-keyalg RSA -keystore .keystore
[2] keytool -certreq -alias tomcat
-keystore .keystore -file tomcat.csr
[3] Submit tomcat.csr to Entrust and then
retrieve entrust_ssl_ca.cer  (We used
cut and paste, not file download.)
[4] shut down Tomcat
[5] keytool -delete -alias tomcat
 -keystore .keystore
[6] keytool import -trustcacerts
-alias tomcat -file entrust_ssl_ca.cer
-keystore .keystore
[7] restart tomcat
Instead of [6], we also tried:
[6a] keytool import -alias tomcat
 -file entrust_ssl_ca.cer -keystore .keystore
When I restart Tomcat and view my page, I get the
message that the page cannot be displayed.
In my catalina.out file, I see the following
severe
error msg:
Endpoint [SSL: ServerSocket[addr= ]] ignored
exception: java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException: No available
certificate corresponds to the SSL cipher suites
which
are enabled.
Does anyone know what I'm doing wrong? I don't
have
the exact steps that I performed with my previous
certificate, but the above steps are what I used
for
the newly issued certificate.
Thanks, in advance, for your help.
		
__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage
less. 

http://info.mail.yahoo.com/mail_250


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


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


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


Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Bruce Perryman
Thanks for responding!

Yes, I do have a backup, but I should have mentioned
that there were several attempts to get this working.
One of the first attempts ommitted step #5, but I had
the same result.
I used step #5 in an attempt to remove the old and
then insert the new. But that didn't work either.

One other thing that I noticed is that my previous
(expired) keystore had 2 certs in it one was a root
trusted cert entry and the tomcat key entry.

This time, in one of my initial attempts, the tomcat
alias was the only entry and it was the trusted cert
entry.

Does this have anything to do with the problem?
--- Mark Thomas <[EMAIL PROTECTED]> wrote:
> Bruce,
> 
> You should not have done step 5. This deleted your
> private key. I hope 
> you have a backup ;)
> 
> Mark
> 
> Bruce Perryman wrote:
> > Hello,
> > 
> > I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat 9.
> > 
> > My SSL certificate expired and I received a new
> one
> > but haven't been able to get the new one to work. 
> > 
> > Here are the steps that I used to get the
> certificate
> > and import it into my keystore:
> > 
> > [1] keytool -genkey -alias tomcat
> >  -keyalg RSA -keystore .keystore
> > [2] keytool -certreq -alias tomcat
> >  -keystore .keystore -file tomcat.csr
> > [3] Submit tomcat.csr to Entrust and then
> >  retrieve entrust_ssl_ca.cer  (We used
> >  cut and paste, not file download.)
> > [4] shut down Tomcat
> > [5] keytool -delete -alias tomcat
> >   -keystore .keystore
> > [6] keytool import -trustcacerts
> >  -alias tomcat -file entrust_ssl_ca.cer
> >  -keystore .keystore
> > [7] restart tomcat
> > Instead of [6], we also tried:
> > [6a] keytool import -alias tomcat
> >   -file entrust_ssl_ca.cer -keystore .keystore
> > 
> > When I restart Tomcat and view my page, I get the
> > message that the page cannot be displayed.
> > 
> > In my catalina.out file, I see the following
> severe
> > error msg:
> > 
> > Endpoint [SSL: ServerSocket[addr= ]] ignored
> > exception: java.net.SocketException: SSL handshake
> > errorjavax.net.ssl.SSLException: No available
> > certificate corresponds to the SSL cipher suites
> which
> > are enabled.
> > 
> > Does anyone know what I'm doing wrong? I don't
> have
> > the exact steps that I performed with my previous
> > certificate, but the above steps are what I used
> for
> > the newly issued certificate.
> > 
> > Thanks, in advance, for your help.
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Mail - 250MB free storage. Do more. Manage
> less. 
> > http://info.mail.yahoo.com/mail_250
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5 and SSL Configuration

2005-04-25 Thread Mark Thomas
Bruce,
You should not have done step 5. This deleted your private key. I hope 
you have a backup ;)

Mark
Bruce Perryman wrote:
Hello,
I'm using TC 5.0.19 and j2sdk1.4.2_04 on RedHat 9.
My SSL certificate expired and I received a new one
but haven't been able to get the new one to work. 

Here are the steps that I used to get the certificate
and import it into my keystore:
[1] keytool -genkey -alias tomcat
 -keyalg RSA -keystore .keystore
[2] keytool -certreq -alias tomcat
 -keystore .keystore -file tomcat.csr
[3] Submit tomcat.csr to Entrust and then
 retrieve entrust_ssl_ca.cer  (We used
 cut and paste, not file download.)
[4] shut down Tomcat
[5] keytool -delete -alias tomcat
  -keystore .keystore
[6] keytool import -trustcacerts
 -alias tomcat -file entrust_ssl_ca.cer
 -keystore .keystore
[7] restart tomcat
Instead of [6], we also tried:
[6a] keytool import -alias tomcat
  -file entrust_ssl_ca.cer -keystore .keystore
When I restart Tomcat and view my page, I get the
message that the page cannot be displayed.
In my catalina.out file, I see the following severe
error msg:
Endpoint [SSL: ServerSocket[addr= ]] ignored
exception: java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException: No available
certificate corresponds to the SSL cipher suites which
are enabled.
Does anyone know what I'm doing wrong? I don't have
the exact steps that I performed with my previous
certificate, but the above steps are what I used for
the newly issued certificate.
Thanks, in advance, for your help.
		
__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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


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


Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Mark Leone
I agree with Trond. And since I wrote my reply rather quickly I want to 
make sure I'm clear. You only need to put in common/lib any jar files 
that both Tomcat and Axis need, which certainly does not include 
axis.jar and the other jars that come with the Axis distribution. I 
thought that maybe Axis needed access to the jar file that contains 
class HttpServlet, because I remember the installation instructions 
aaying that certian other jar files had to be on the classpath; but I 
checked and it doesn't look like axis needs to see HttpServlet.

Other than needing access to an XML parser, I don't think there's much 
the Axis server needs beyond what you already have in Tomcat. You should 
be able to just drop Axis in to Tomcat and have it run almost 
immediately, unless you have a non-standard configuration.

Maybe apache SOAP required it, but it seems doubtful. It seems like the 
reported error is more of a Tomcat problem. If you install Axis and get 
the same error, please report back to us.

Trond G. Ziarkowski wrote:
I also would recommend Axis, but if you put the jar files in 
common/lib you will not be able to reload your app. At least that 
happened to me with axis 1.1 under 5.0.28... That also breaks the 
"rule" that the app should be as self-contained as possible to make it 
as portable as possible.

Trond
Mark Leone wrote:
Apache SOAP is the original apache SOAP implementation. I recommend 
you check out apache Axis, its successor. I have Axis 1.2 (formerly 
ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x 
for over a year. Just make sure that the jar files that Axis needs 
are in the common/lib directory (if Tomcat needs them also). Not sure 
if HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am "playing around" with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating?
Thanks for your patience and bye,
Kris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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

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


Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Trond G. Ziarkowski
I also would recommend Axis, but if you put the jar files in common/lib 
you will not be able to reload your app. At least that happened to me 
with axis 1.1 under 5.0.28... That also breaks the "rule" that the app 
should be as self-contained as possible to make it as portable as possible.

Trond
Mark Leone wrote:
Apache SOAP is the original apache SOAP implementation. I recommend 
you check out apache Axis, its successor. I have Axis 1.2 (formerly 
ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x 
for over a year. Just make sure that the jar files that Axis needs are 
in the common/lib directory (if Tomcat needs them also). Not sure if 
HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am "playing around" with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating?
Thanks for your patience and bye,
Kris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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


Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Mark Leone
Apache SOAP is the original apache SOAP implementation. I recommend you 
check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) 
running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a 
year. Just make sure that the jar files that Axis needs are in the 
common/lib directory (if Tomcat needs them also). Not sure if 
HttpServlet is in that catagory, but worth a try.

Kristian Rink wrote:
Hi all;
being into the state of having to check out several SOAP
implementations to decide which one to be used for a certain project, I
currently (for the first time) am "playing around" with Tomcat and
Apache SOAP, trying to get a simple SOAP service up and running...
Actually, I'm not very close to that, right now, getting stuck in the
very first stage of getting Tomcat to work with Apache-SOAP:
* Tomcat itself is up and running.
* http://localhost:8080/soap/ works
* Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up
with an error message like this:
---snip---
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass
(URLClassLoader.java:260) java.net.URLClassLoader.access$100
(URLClassLoader.java:56) java.net.URLClassLoader$1.run
(URLClassLoader.java:195) java.security.AccessController.doPrivileged
(Native Method) java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
---snip---
Googling for that error left me pretty helpless since I by now tried
several hints regarding problems with Apache SOAP on top of Tomcat 4.x,
but none of these worked. So, can anyone enlighten me on where to tweak
to make the SOAP package find the javax.servlet package? System I'm
running:
Debian unstable
Tomcat 5.5.9
JDK 1.5.0
Apache SOAP 2.3.1
Additionally: Are there any other implementations of SOAP for Tomcat
that might be worth investigating? 

Thanks for your patience and bye,
Kris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


RE: tomcat 5 not deploying my war

2005-04-01 Thread David Owens
If you had a webapp there before, the problem may be that it cannot
undeploy the previous one because one of the jar or resource files is
locked.  If this is the case, you can turn on anti jar locking.

Hope this helps.

|)ave

-Original Message-
From: teknokrat [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 3:24 AM
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 not deploying my war

I place my war in the webapps directory. tomcat 5.5.7 creates the 
directory and maybe a few others but it does not complete the job. 
Reloading etc does not fix this. there are no error messages given. 
Anyone have a clue what could be going on here?

thanks


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


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



Re: Tomcat 5/Apache 2 in-process

2005-03-30 Thread Mladen Turk
Faine, Mark wrote:
Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2
using mod_jk?  Does anyone know of a howto on this?  I've read the docs,
I've searched the web, I have it working using AJP13 but I have had no luck
on getting it to work in-process.  I don't even know where to start.
Forget the in-process.
The JNI connector is deprecated, and the reasons are many.
On of the major is that it can work only on WIN32 Apache and IIS.
Also bringing JVM in the same address space as web server, makes
you server unusable in case of OutOfMemory errors, etc...
There is a project called tomcat-native that will eventually bring
faster connections to WS<->TC by using unix sockets or windows named
pipes, and still offer the process isolation.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5-5.7 make reload classes?

2005-03-27 Thread Antony Paul
I think it is inthe  element(in 4.1.x) which is configured for lesson1.


On Fri, 25 Mar 2005 14:26:30 -0600, Scott Purcell
<[EMAIL PROTECTED]> wrote:
> First time using the manager application. I deployed a war file into my 
> webapps, and all is good. Problem is, if I update class file in newly created 
> webapp, it does not recompile automatically like my old 4x did. I had to do a 
> "reload" from the manager to see the changes.
> 
> If my new webapp is called "lesson1" where do I set the reload="true"?
> 
> Thanks,
> 
> Scott K Purcell | Developer | VERTIS |
> 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
> 314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com 
> 
> 
> Vertis is the premier provider of targeted advertising, media, and
> marketing services that drive consumers to marketers more effectively.
> 
> 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Tomcat 5 on VPS service stops, FIXED.

2005-03-23 Thread Stanczak Group
Well surprise, surprise, I moved to a dedicated server and it works 
great now. It even uses less memory. Can someone say, Tomcat doesn't 
work on VPS's?

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 on VPS service stops, still no luck.

2005-03-19 Thread Stanczak Group
Well I still can't seem to get this server running on my vps. They show 
that they have no limits that would keep me from running this. It's a RH 
9 machine and I put the "export LD_ASSUME_KERNEL=2.4.1" in the 
catalina.sh. I can't seem to even keep one running. I'm using 
jdk1.5.0_02. The only error I've found it here 
http://www.codedemons.net/pb/?show=2963 , but I don't see this error 
anymore. Does that have anything to do with the export of that variable? 
Anyway, I need serious help. I just can't seem to figure out why if 
won't stay running. I've got it where it will run for maybe an hour or 
so, but that's it. I think I'm going to start from scratch on it.

Stanczak Group wrote:
I'm having a strange issue with my Tomcat 5 server. I have two 
instances of Tomcat 5 running on my VPS system I pay for. For some 
reason just the Tomcat services just stop. I can't find any errors 
that tell me why it just stops. This is the fifth time I've re-started 
them today. The systems are running RedHat. I'm at a loss trying to 
understand why these services just stop. One of them has a startup 
script so if the machine reboots it should start back up. I start the 
service with -Xmx64m -server and I'm using jdk 1.5.0_01. The history 
of this problem is that the last few days has been the worse, but it's 
had these shutdown issues from the start. One of the services has a 
cron that shuts down one of the services and erased the web app the 
copies a fresh one back, not sure that matters in this issue. If 
anyone has had this problem or has suggestions on solving it please 
let me know.

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 on VPS service stops

2005-03-18 Thread Stanczak Group
I was just trying to start the second tomcat server and then access the 
servlet a few minutes after it started and got this error:

-bash: fork: Cannot allocate memory
Any thoughts on this?
Caldarale, Charles R wrote:
From: Stanczak Group [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 5 on VPS service stops
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I thought when Tomcat ran out of ram it left a log entry? 
   

Tomcat never got started - the JVM didn't initialize far enough to even 
start loading Tomcat.
 

Hum, well, you think increasing ram will help?
   

No, just change the -Xmx parameter to something reasonable, say at least 
256m.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 on VPS service stops

2005-03-18 Thread Stanczak Group

Caldarale, Charles R wrote:
From: Stanczak Group [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 5 on VPS service stops
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I thought when Tomcat ran out of ram it left a log entry? 
   

Tomcat never got started - the JVM didn't initialize far enough to even start loading Tomcat.
 

How could it not be started. I could access one of my servlets on it. Or 
does that just mean that had loaded and the rest was still loading?

 

Hum, well, you think increasing ram will help?
   

No, just change the -Xmx parameter to something reasonable, say at least 
256m.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 on VPS service stops

2005-03-18 Thread Stanczak Group

Caldarale, Charles R wrote:
From: Stanczak Group [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 5 on VPS service stops
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I thought when Tomcat ran out of ram it left a log entry? 
   

Tomcat never got started - the JVM didn't initialize far enough to even 
start loading Tomcat.
 

Hum, well, you think increasing ram will help?
   

No, just change the -Xmx parameter to something reasonable, say at least 256m.
 

Ok, I've upped the -Xmx256m. Hope that works. I took out all the other 
params. I had -Xms48m -Xmx128m -Xss1m -server -Xincgc -Xrs but now I 
just have -Xmx256m -server. Does that look ok or do you see any params I 
should add or added back?

- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: Stanczak Group [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat 5 on VPS service stops
> 
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> 
> I thought when Tomcat ran out of ram it left a log entry? 

Tomcat never got started - the JVM didn't initialize far enough to even start 
loading Tomcat.

> Hum, well, you think increasing ram will help?

No, just change the -Xmx parameter to something reasonable, say at least 256m.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Tomcat 5 on VPS service stops

2005-03-17 Thread Stanczak Group
That give me another question. Why on this RH Linux system when issuing 
the java command I get:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
That's why I put the -Xmx64m. Now I just changed it to this:
/usr/java/jdk1.5.0_02/bin/java -Xms48m -Xmx64m -Xss1m -server -Xincgc -Xrs
I thought when Tomcat ran out of ram it left a log entry? Hum, well, you 
think increasing ram will help? The thing is, both of these services are 
not used much.

Caldarale, Charles R wrote:
From: samsher khan [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 5 on VPS service stops
But I don't think memory is any problem I have more
than 500 mb ram on my system
   

But by setting -Xmx64m, you're limiting the Java heap to only 64 MB, and 
that has to be partitioned into eden space, two tenured spaces, and the 
permanent generation.  How much real memory you have is immaterial in this case.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Justin Stanczak
Stanczak Group
812-735-3600
"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke
.....__.
./  _/....._/..|_.....
/...\../.__.\./\...__\/.._.\./._..\
\\_\..\..___/|...|..\..|.(..<_>.|.<_>..)
.\__../\___.._\__|../__|..\/.\/..
\/.\/.\/..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: samsher khan [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat 5 on VPS service stops
> 
> But I don't think memory is any problem I have more
> than 500 mb ram on my system

But by setting -Xmx64m, you're limiting the Java heap to only 64 MB, and that 
has to be partitioned into eden space, two tenured spaces, and the permanent 
generation.  How much real memory you have is immaterial in this case.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: Tomcat 5 on VPS service stops

2005-03-17 Thread samsher khan
Thanks Chuck for the reply
But I don't think memory is any problem I have more
than 500 mb ram on my system
--- "Caldarale, Charles R"
<[EMAIL PROTECTED]> wrote:
> > From: Stanczak Group
> [mailto:[EMAIL PROTECTED]
> > Subject: Tomcat 5 on VPS service stops
> > 
> > I start the service with -Xmx64m -server and I'm
> using 
> > jdk 1.5.0_01.
> 
> That's not much memory for Tomcat to play with.  You
> might want to set -verbose:gc to see if you've
> fallen into a continuous GC mode, or possibly
> completely run out of memory.  Since Tomcat
> generates a lot of classes, it's pretty easy to
> exhaust the permanent generation space.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
> OTHERWISE PROPRIETARY MATERIAL and is thus for use
> only by the intended recipient. If you received this
> in error, please contact the sender and delete the
> e-mail and its attachments from all computers.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: Stanczak Group [mailto:[EMAIL PROTECTED]
> Subject: Tomcat 5 on VPS service stops
> 
> I start the service with -Xmx64m -server and I'm using 
> jdk 1.5.0_01.

That's not much memory for Tomcat to play with.  You might want to set 
-verbose:gc to see if you've fallen into a continuous GC mode, or possibly 
completely run out of memory.  Since Tomcat generates a lot of classes, it's 
pretty easy to exhaust the permanent generation space.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Tomcat 5 Service Windows

2005-03-17 Thread David Gladstone
yes of course i am telling it to use a different server.xml
my config looks like this
-config c:\config\server.xml
-dave
Caldarale, Charles R wrote:
From: David Gladstone [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5 Service Windows
I am currently using tomcat 5.0.27 on Windows Xp and am 
trying to point the service to a specific server.xml.

Are you saying you want to use a server.xml other than the one in 
%CATALINA_HOME%\conf?

I am currently using jvm.

Well, that's a good start. (Sorry, couldn't resist. :-)

What am i doing wrong

Try looking at the registry entries to see if they make any sense.  (The key is 
HKLM\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters on 
5.0.19; I've switched to 5.5.7 for most stuff, so I've never installed 5.0.27 
as a Windows service.)
 - Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 Service Windows

2005-03-16 Thread Caldarale, Charles R
> From: David Gladstone [mailto:[EMAIL PROTECTED]
> Subject: Tomcat 5 Service Windows
> 
> I am currently using tomcat 5.0.27 on Windows Xp and am 
> trying to point the service to a specific server.xml.

Are you saying you want to use a server.xml other than the one in 
%CATALINA_HOME%\conf?

> I am currently using jvm.

Well, that's a good start. (Sorry, couldn't resist. :-)

> What am i doing wrong

Try looking at the registry entries to see if they make any sense.  (The key is 
HKLM\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters on 
5.0.19; I've switched to 5.5.7 for most stuff, so I've never installed 5.0.27 
as a Windows service.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Bernard
Thanks Wolfgang!
Sorry about my previous email - I found my mistake.

Regards,

Bernard

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



Re: Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Bernard
Thanks Wolfgang!

Still problems.

I downloaded from
http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/
the latest file:
commons-daemon-20050316.zip

autoconf worked fine.
./configure worked fine.
make failed with many errors.

How to fix this? Is it worth it? When is the next version coming out?

The errors are below.
I cross-posted to the commons-dev list because I used a nightly build.

Many thanks,

Bernard


# ./configure
*** Current host ***
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Java compilation tools ***
checking for javac... NONE
checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac
checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac)
works... yes
checking for jar... NONE
checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar
*** Host support ***
checking C flags dependant on host system type... ok
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
[EMAIL PROTECTED] jsvc-src]# make
make -C native all
make[1]: Entering directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c arguments.c -o arguments.o
arguments.c: In function `arguments':
arguments.c:231: warning: unused variable `temp'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c debug.c -o debug.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
dso-dlfcn.c:51: warning: function declaration isn't a prototype
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:22:17: jni.h: No such file or directory
java.c:35: parse error before '*' token
java.c:35: warning: type defaults to `int' in declaration of `jvm'
java.c:35: warning: data definition has no type or storage class
java.c:36: parse error before '*' token
java.c:36: warning: type defaults to `int' in declaration of `env'
java.c:36: warning: data definition has no type or storage class
java.c:37: parse error before "cls"
java.c:37: warning: type defaults to `int' in declaration of `cls'
java.c:37: warning: initialization makes integer from pointer without
a cast
java.c:37: warning: data definition has no type or storage class
java.c:42: parse error before '*' token
java.c:42: warning: function declaration isn't a prototype
java.c: In function `shutdown':
java.c:43: `reload' undeclared (first use in this function)
java.c:43: (Each undeclared identifier is reported only once
java.c:43: for each function it appears in.)
java.c: At top level:
java.c:49: warning: function declaration isn't a prototype
java.c: In function `java_init':
java.c:91: warning: implicit declaration of function `jint'
java.c:91: `symb' undeclared (first use in this function)
java.c:91: `JavaVM' undeclared (first use in this function)
java.c:91: parse error before ',' token
java.c:92: `JNINativeMethod' undeclared (first use in this function)
java.c:93: `JavaVMOption' undeclared (first use in this function)
java.c:93: `opt' undeclared (first use in this function)
java.c:95: `JavaVMInitArgs' undeclared (first use in this function)
java.c:95: parse error before "arg"
java.c:97: parse error before "ret"
java.c:120: warning: implicit declaration of function `dso_error'
java.c:166: `arg' undeclared (first use in this function)
java.c:166: `JNI_VERSION_1_2' 

Re: Tomcat 5 shutdown issue with jsvc commons daemon

2005-03-16 Thread Wolfgang Hackl
Hi Bernhard!
Bernard wrote:
I get the following error:
"jsvc.exec error: Service exit with a return value of 143"
There was a Thread here in December called "Session restart replication 
when using jsvc". Bill Barker recommended to use CVS HEAD of the 
commons-daemon.

Kind regards
Wolfgang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 - Apache2 & SSL with mod_proxy

2005-03-13 Thread Robin Johnson
I know this is a pretty old post, but I'll respond to it anyways so the 
solution shows up in the archives:

All you have to do is set scheme="https" and proxyPort="443" and the 
connector will properly redirect your connections using https.

HTH,
Robin
Kris Reese wrote:
Apache 2.0.52
Tomcat 5.5
openSSL 9.7e
I've successfully been able to install all three components with the 
following attributes:
I've successfully connected Tomcat to Apache via the mod_proxy 
module instead of using the JK2 connector
I've also successfully integrated openSSL into apache, so that I 
can have a secure connection via HTTPS.

So far, I'm only using the examples that shipped with Tomcat for 
testing purposes (i.e. /jsp-examples).

My problem is when I try to access /jsp-examples via HTTPS.  It always 
redirects back to port 80, thus I lose my secure connection.  I have a 
feeling this is due to the "proxyPort="80" as defined in server.xml.  
If I change proxyPort to 443, it appends :443 at the end of my URL 
instead of using https.  My ultimate goal is to have a webserver that 
only runs on port 443 which has a login.jsp page as the "index" page 
so people can login securely.

I've read I need to use SSLProxyEngine and have attempted to 
implement.  My configuration is as follows:

httpd.conf (from none other than apache2)
---

ServerName www.mysite.com
DocumentRoot /usr/local/apache2/htdocs
   SSLProxyEngine on
   
 ProxyRequests On
 ProxyPass /jsp-examples http://129.17.66.193:8082/jsp-examples
 ProxyPass /*.jsp http://129.17.66.193:8082
   

server.xml (from none other than Tomcat)
---
   
   
   
   
  enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" />

   
   
  maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
  enableLookups="false" acceptCount="100" 
connectionTimeout="2"
  proxyPort="80" disableUploadTimeout="true" />

.
With this configuration, If I attempt to lauch 
https://myserver.com/jsp-examples, it redirects me to 
http://myserver.com/jsp-examples and I lose my secure connection.  
Based on my error_log file, I see that I need to enable SSLProxyEngine:
[Tue Jan 18 14:40:02 2005] [error] SSL Proxy requested for 
myserver.com:80 but not enabled [Hint: SSLProxyEngine]
[Tue Jan 18 14:40:02 2005] [error] proxy: failed to enable ssl support 
for 129.17.66.193:8082 (k001gxb-0010)

As you can see, I added this directive above in my config files, but 
it's either in the wrong place or there's a missing piece.

I don't want port 80 open at all.  I want everything to run through 
HTTPS.  Can you help me in getting the configuration so that all data 
transfered is through HTTPS?

This is on an Enterprise SUN E450 server running Solaris Sparc 9 btw.
- - - - - - - - - - - - - - - - - - - - -
Thank you,
Kristian T Reese

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


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


RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
The registry settings are only available when you use the Windows installer to 
install Tomcat though.

I think you can modify the service.bat if you manually install the Tomcat 
service manually. We change this line :

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions 
"-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 128 --JvmMx 256

As you can see, the --JvmMs 128 --JvmMx 256 options can be set. 

Allistair.

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: 08 March 2005 17:19
> To: Tomcat Users List
> Subject: RE: Tomcat 5 java.lang.outOfMemory
> 
> 
> > Francesco Pellegrini wrote:
> > 
> > Tomcat 5 was installed with Services.
> >
> > I have changed in catalina.bat :
> > set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"
> 
> If you're running Tomcat as a Windows service, I don't think 
> the environment variables have any effect.  Instead, there 
> are registry settings you can adjust.  On my XP system, I 
> have to update JavaOptions under the key:
>   HKLM\SOFTWARE\Apache Software Foundation\Tomcat Service 
> Manager\Tomcat5\Parameters
> 
> I would presume the same registry key is used for Win2K.
> 
> You might want to consider running Tomcat from the command 
> line until you're satisfied with the results, and then switch 
> to running it as a service.  It's easier (and safer) to 
> change .bat file settings then the registry.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is thus for use only by the intended 
> recipient. If you received this in error, please contact the 
> sender and delete the e-mail and its attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Caldarale, Charles R
> Francesco Pellegrini wrote:
> 
> Tomcat 5 was installed with Services.
>
> I have changed in catalina.bat :
> set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"

If you're running Tomcat as a Windows service, I don't think the environment 
variables have any effect.  Instead, there are registry settings you can 
adjust.  On my XP system, I have to update JavaOptions under the key:
HKLM\SOFTWARE\Apache Software Foundation\Tomcat Service 
Manager\Tomcat5\Parameters

I would presume the same registry key is used for Win2K.

You might want to consider running Tomcat from the command line until you're 
satisfied with the results, and then switch to running it as a service.  It's 
easier (and safer) to change .bat file settings then the registry.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
Hi,

The latest and greatest of course. Be warned that upgrading to Tomcat 5.5 
series however comes with some additional "work" like Java 5.0, slight variance 
in how to configure data sources, logging and so on, so you may want to go with 
5.0.28 or 30 for now.

Allistair.

> -Original Message-
> From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
> Sent: 08 March 2005 16:49
> To: Tomcat Users List
> Subject: R: Tomcat 5 java.lang.outOfMemory
> 
> 
> Thanks for your answers,
> 
> I want to upgrade Tomcat, but wich version can I use?
> 
> Thanks.
> 
> -Messaggio originale-
> Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
> Inviato: martedì 8 marzo 2005 17.46
> A: Tomcat Users List
> Oggetto: RE: Tomcat 5 java.lang.outOfMemory
> 
> 
> Hi,
> 
> The answer is not always to throw more memory at your application.
> 
> The best answer is to test whether you actually need more 
> memory or whether
> you are leaking it somehow.
> 
> So find a profiler, get it to talk to Tomcat, and then run 
> your JSP and
> watch the method call tree, heap monitor and hot spots etc... 
> You will need
> to grab something like JProfiler, JProbe or others ... they 
> usually know how
> to connect to Tomcat 5 for you, it's not too hard.
> 
> Also, you may want to upgrade your Tomcat I think 5.0.19 had 
> an issue anyway
> with memory, and finally you'll want to ensure when dealing 
> with database
> connectivity that you are freeing up resources like result 
> sets and so on
> with close() calls (depending on what you are doing).
> 
> Allistair.
> 
> > -Original Message-
> > From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
> > Sent: 08 March 2005 16:39
> > To: Tomcat-User-ML
> > Subject: Tomcat 5 java.lang.outOfMemory
> >
> >
> > Hi all,
> >
> > I have an environment with Tomcat 5.0.19 and java 1.4.02, on
> > windows 2000
> > server platform.
> >
> > Tomcat 5 was installed with Services.
> >
> > I have changed in catalina.bat :
> >
> > set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"
> >
> >
> > Usually the sistem works fine, but  when I try to find a lot
> > of data  (in
> > the database) using jsp, i got this error:
> >
> >
> > javax.servlet.ServletException
> >
> > org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
> > n(PageContextI
> > mpl.java:867)
> >
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > PageContextImp
> > l.java:800)
> >
> > org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
> > visconsumi_jsp
> > .java:810)
> >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > Wrapper.java:3
> > 11)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > .java:301)
> >
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >
> > root cause
> >
> > java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
> > advanceFrancesco.
> >
> >
> 
> 
> 
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
Hi,

The answer is not always to throw more memory at your application.

The best answer is to test whether you actually need more memory or whether you 
are leaking it somehow. 

So find a profiler, get it to talk to Tomcat, and then run your JSP and watch 
the method call tree, heap monitor and hot spots etc... You will need to grab 
something like JProfiler, JProbe or others ... they usually know how to connect 
to Tomcat 5 for you, it's not too hard.

Also, you may want to upgrade your Tomcat I think 5.0.19 had an issue anyway 
with memory, and finally you'll want to ensure when dealing with database 
connectivity that you are freeing up resources like result sets and so on with 
close() calls (depending on what you are doing).

Allistair.

> -Original Message-
> From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
> Sent: 08 March 2005 16:39
> To: Tomcat-User-ML
> Subject: Tomcat 5 java.lang.outOfMemory
> 
> 
> Hi all,
> 
> I have an environment with Tomcat 5.0.19 and java 1.4.02, on 
> windows 2000
> server platform.
> 
> Tomcat 5 was installed with Services.
> 
> I have changed in catalina.bat :
> 
> set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"
> 
> 
> Usually the sistem works fine, but  when I try to find a lot 
> of data  (in
> the database) using jsp, i got this error:
> 
> 
> javax.servlet.ServletException
> 
> org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
> n(PageContextI
> mpl.java:867)
> 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:800)
> 
> org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
> visconsumi_jsp
> .java:810)
>   
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:3
> 11)
>   
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:301)
>   
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> root cause
> 
> java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
> advanceFrancesco.
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Christoph Kutzinski
Solution a: Increase the heap memory further
Solution b: Decrease the memory usage of your application
Francesco Pellegrini wrote:
Hi all,
I have an environment with Tomcat 5.0.19 and java 1.4.02, on windows 2000
server platform.
Tomcat 5 was installed with Services.
I have changed in catalina.bat :
set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"
Usually the sistem works fine, but  when I try to find a lot of data  (in
the database) using jsp, i got this error:
javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)
org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(visconsumi_jsp
.java:810)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
advanceFrancesco.
 


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


Re: Tomcat 5 / SSL / Digsigtrust Certificate...

2005-03-07 Thread John Urban
I figured it out.
I was importing the new signed cert to a new alias in my keystore, 
rather than the original key I generated when I created the keystore.

And, Netscape's CA Chain certs work with JBoss/Tomcat5.
John Urban wrote:
I have sent my CSR and been approved and received my SSL Web server 
certificate from Digsigtrust. I have having problems getting the SSL 
certificate to install properly. I have tried every conceivable 
combinations to getting my browser to NOT pop up the Security Alart 
dialog. Most documentation I've read seems to tell me to import the CA 
chain to my keystore first, then my signed certificate from 
Digsigtrust. I've had no success.

My issue seems to be obtaining the correct Chain certificate from 
Digsigtrust. Can someone advise me which is the closet server to 
Tomcat 5:

• Apache + Mod/Open SSL
• Apache Raven
• Microsoft Internet Information Server 5 and 6
• Microsoft Internet Information Server 4
• iPlanet Enterprise Server 4.1
• Domino 4.6 and Higher
• Netscape Enterprise Server 3.6.1
• Stronghold 3.0
• Others/Misc
This should be a step in the right direction.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Tomcat 5 / SSL / Digsigtrust Certificate...

2005-03-05 Thread John Urban
I have sent my CSR and been approved and received my SSL Web server 
certificate from Digsigtrust. I have having problems getting the SSL 
certificate to install properly. I have tried every conceivable 
combinations to getting my browser to NOT pop up the Security Alart 
dialog. Most documentation I've read seems to tell me to import the CA 
chain to my keystore first, then my signed certificate from Digsigtrust. 
I've had no success.

My issue seems to be obtaining the correct Chain certificate from 
Digsigtrust. Can someone advise me which is the closet server to Tomcat 5:

• Apache + Mod/Open SSL
• Apache Raven
• Microsoft Internet Information Server 5 and 6
• Microsoft Internet Information Server 4
• iPlanet Enterprise Server 4.1
• Domino 4.6 and Higher
• Netscape Enterprise Server 3.6.1
• Stronghold 3.0
• Others/Misc
This should be a step in the right direction.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
there have been a few articles, check onjava.com for example, asynch will 
result in a faster response time, but doesn't guarantee
that the session gets replicated for the next request.

Filip

- Original Message -
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 3:43 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically


hmm
is there any difference in performance with pooled vs async?  The OS is
HPUX 11

Filip Hanik - Dev wrote:

>ah, you might be having problems with the java.nio package, (TCP)
>as the conf below you are mentioning, are using those settings.
>asynch doesn't require an ack message, and some VM's on some platforms have 
>problems sending data back on a NIO channel.
>linux had this issue unless you set LD_ASSUME_KERNEL for example,
>
>Filip
>
>- Original Message -
>From: "Micky Williamson" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" 
>Sent: Thursday, February 10, 2005 2:44 PM
>Subject: Re: Tomcat 5 cluster spins out of control periodically
>
>
>Filip,
>thanks for the information.
>I did notice that on our test servers, it doesn't happen as frequently.
>And in the production server.xml we had:
>  
>className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
>replicationMode="pooled"/>
>
>In the test one it was:
>
>  
>className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
>replicationMode="asynchronous"/>
>
>What is the better way?
>
>
>Filip Hanik - Dev wrote:
>
>
>
>>probably is the multi cast receiver that freaks out.
>>This can happen if the network cable is unplugged. I will add in a sleep on 
>>the receiver so that even in this case it wont freak
>>out.
>>
>>so in the scenario above, its a known problem, checking in a fix right now.
>>if you do provide a dump however, we will know more.
>>or even better, profiling it.
>>
>>Filip
>>
>>- Original Message -
>>From: "Micky Williamson" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" 
>>Sent: Thursday, February 10, 2005 1:24 PM
>>Subject: Re: Tomcat 5 cluster spins out of control periodically
>>
>>
>>No,
>>not using Apache to front end.
>>Haven't done any thread dumps...yet.
>>
>>I just was throwing feelers out to see if there is any history of this.
>>
>>
>>Tim Funk wrote:
>>
>>
>>
>>
>>
>>>Are you using apache in front of tomcat?
>>>Have you done thread dumps when in a good state vs a 100% cpu state?
>>>Sounds like an inifinite loop.
>>>
>>>-Tim
>>>
>>>Micky Williamson wrote:
>>>
>>>
>>>
>>>
>>>
>>>>I have two machines running Tomcat 5.0 with java 1.4.
>>>>Both are clustered together. Every once in a while, one or the other
>>>>just starts spinning out of control and clocking wall time.
>>>>
>>>>This is on hp ux version 11.  New machines, lots of resources (16
>>>>Gig of RAM)
>>>>
>>>>
>>>>
>>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>

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


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



Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
hmm
is there any difference in performance with pooled vs async?  The OS is 
HPUX 11

Filip Hanik - Dev wrote:
ah, you might be having problems with the java.nio package, (TCP)
as the conf below you are mentioning, are using those settings.
asynch doesn't require an ack message, and some VM's on some platforms have 
problems sending data back on a NIO channel.
linux had this issue unless you set LD_ASSUME_KERNEL for example,
Filip
- Original Message - 
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 2:44 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically

Filip,
thanks for the information.
I did notice that on our test servers, it doesn't happen as frequently.
And in the production server.xml we had:
 
   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
   replicationMode="pooled"/>

In the test one it was:
 
   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
   replicationMode="asynchronous"/>

What is the better way?
Filip Hanik - Dev wrote:
 

probably is the multi cast receiver that freaks out.
This can happen if the network cable is unplugged. I will add in a sleep on the 
receiver so that even in this case it wont freak
out.
so in the scenario above, its a known problem, checking in a fix right now.
if you do provide a dump however, we will know more.
or even better, profiling it.
Filip
- Original Message -
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 1:24 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:

   

Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state?
Sounds like an inifinite loop.
-Tim
Micky Williamson wrote:
  

 

I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other
just starts spinning out of control and clocking wall time.
This is on hp ux version 11.  New machines, lots of resources (16
Gig of RAM)


   

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

 

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

   

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

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


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
ah, you might be having problems with the java.nio package, (TCP)
as the conf below you are mentioning, are using those settings.
asynch doesn't require an ack message, and some VM's on some platforms have 
problems sending data back on a NIO channel.
linux had this issue unless you set LD_ASSUME_KERNEL for example,

Filip

- Original Message - 
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 2:44 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically


Filip,
thanks for the information.
I did notice that on our test servers, it doesn't happen as frequently.
And in the production server.xml we had:
  

In the test one it was:

  

What is the better way?


Filip Hanik - Dev wrote:

>probably is the multi cast receiver that freaks out.
>This can happen if the network cable is unplugged. I will add in a sleep on 
>the receiver so that even in this case it wont freak
>out.
>
>so in the scenario above, its a known problem, checking in a fix right now.
>if you do provide a dump however, we will know more.
>or even better, profiling it.
>
>Filip
>
>- Original Message -
>From: "Micky Williamson" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" 
>Sent: Thursday, February 10, 2005 1:24 PM
>Subject: Re: Tomcat 5 cluster spins out of control periodically
>
>
>No,
>not using Apache to front end.
>Haven't done any thread dumps...yet.
>
>I just was throwing feelers out to see if there is any history of this.
>
>
>Tim Funk wrote:
>
>  
>
>>Are you using apache in front of tomcat?
>>Have you done thread dumps when in a good state vs a 100% cpu state?
>>Sounds like an inifinite loop.
>>
>>-Tim
>>
>>Micky Williamson wrote:
>>
>>
>>
>>>I have two machines running Tomcat 5.0 with java 1.4.
>>>Both are clustered together. Every once in a while, one or the other
>>>just starts spinning out of control and clocking wall time.
>>>
>>>This is on hp ux version 11.  New machines, lots of resources (16
>>>Gig of RAM)
>>>  
>>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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

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



Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
Filip,
thanks for the information.
I did notice that on our test servers, it doesn't happen as frequently.
And in the production server.xml we had:
 
   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
   replicationMode="pooled"/>

In the test one it was:
 
   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
   replicationMode="asynchronous"/>

What is the better way?
Filip Hanik - Dev wrote:
probably is the multi cast receiver that freaks out.
This can happen if the network cable is unplugged. I will add in a sleep on the 
receiver so that even in this case it wont freak
out.
so in the scenario above, its a known problem, checking in a fix right now.
if you do provide a dump however, we will know more.
or even better, profiling it.
Filip
- Original Message -
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 1:24 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:
 

Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state?
Sounds like an inifinite loop.
-Tim
Micky Williamson wrote:
   

I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other
just starts spinning out of control and clocking wall time.
This is on hp ux version 11.  New machines, lots of resources (16
Gig of RAM)
 

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

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

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


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
probably is the multi cast receiver that freaks out.
This can happen if the network cable is unplugged. I will add in a sleep on the 
receiver so that even in this case it wont freak
out.

so in the scenario above, its a known problem, checking in a fix right now.
if you do provide a dump however, we will know more.
or even better, profiling it.

Filip

- Original Message -
From: "Micky Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 10, 2005 1:24 PM
Subject: Re: Tomcat 5 cluster spins out of control periodically


No,
not using Apache to front end.
Haven't done any thread dumps...yet.

I just was throwing feelers out to see if there is any history of this.


Tim Funk wrote:

> Are you using apache in front of tomcat?
> Have you done thread dumps when in a good state vs a 100% cpu state?
> Sounds like an inifinite loop.
>
> -Tim
>
> Micky Williamson wrote:
>
>> I have two machines running Tomcat 5.0 with java 1.4.
>> Both are clustered together. Every once in a while, one or the other
>> just starts spinning out of control and clocking wall time.
>>
>> This is on hp ux version 11.  New machines, lots of resources (16
>> Gig of RAM)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
No,
not using Apache to front end.
Haven't done any thread dumps...yet.
I just was throwing feelers out to see if there is any history of this.
Tim Funk wrote:
Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state? 
Sounds like an inifinite loop.

-Tim
Micky Williamson wrote:
I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other 
just starts spinning out of control and clocking wall time.

This is on hp ux version 11.  New machines, lots of resources (16  
Gig of RAM)

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

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


Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Tim Funk
Are you using apache in front of tomcat?
Have you done thread dumps when in a good state vs a 100% cpu state? Sounds 
like an inifinite loop.

-Tim
Micky Williamson wrote:
I have two machines running Tomcat 5.0 with java 1.4.
Both are clustered together. Every once in a while, one or the other 
just starts spinning out of control and clocking wall time.

This is on hp ux version 11.  New machines, lots of resources (16  Gig 
of RAM)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 - Datasource Connection Pooling

2005-01-24 Thread Trond G. Ziarkowski
Hi!
1)My problem is my working directory is different. I use ant to create 
war file and then i manually stop the server - delete existing war file 
/ existing directory (This is due to some Win TomCat problem .??..). 
Then i deploy it using TomCat Manager. It automatically creates META-INF 
file for me, i do not have META-INF inside my working directory. So 
where i can put my context.xml ?
 

You have already answered this yourself, META-INF/ directory of your war 
file.
The only way to avoid the META-INF directory is to not use a war file, 
as a war file simply is a jar file, and the META-INF is part of the jar 
file specification.

2) What shall i put inside context.xml and what shall i put inside 
server.xml / web/xml ?
 

The example pages: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html 
tells you exactly what to put in each file. You just have to read them 
one more time and keep focused.
I'll give you some hints as well:
- Leave server.xml the way it was before you started tampering with it.
- Copy CATALINA_HOME/conf///yourapp.xml, to your 
context.xml file, and add your resource specification inside the 
 as in the examples. Then include context.xml in your war file 
in the META-INF dir. Your app must be running for the yourapp.xml file 
to exist as it is deleted when you undeploy your app.
- In web.xml you need to add a  as you can see from the 
examples

Good luck
Trond
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 architectural questions

2005-01-19 Thread Tim Funk
nio is used for clustering to replicate HttpSessions to other nodes in the 
cluster. nio is not used for talking to the web browser.

-Tim
T K wrote:
I grep'ed through the tomcat 5.5.4 sources and found
nio under org.apache.catalina.cluster - what's up with
that? Not currently in use?
tia
--- Tim Funk <[EMAIL PROTECTED]> wrote:

There is no nio in tomcat.
-Tim
T K wrote:

Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many
threads
are typically in use?
4) Are there any articles on performance diffs
between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
apart from JSP2.0 and JMX support?
7) Are any of the T5 versions as widely deployed
at
ASP's as 4.1.x?

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



		
__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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

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


Re: Tomcat 5 architectural questions

2005-01-19 Thread T K
I grep'ed through the tomcat 5.5.4 sources and found
nio under org.apache.catalina.cluster - what's up with
that? Not currently in use?

tia

--- Tim Funk <[EMAIL PROTECTED]> wrote:

> There is no nio in tomcat.
> 
> -Tim
> 
> T K wrote:
> 
> > Hi,
> > 
> > 1) Is T5.0 nio based?
> > 2) Is T5.5 nio based?
> > 3) For the version that's nio based, how many
> threads
> > are typically in use?
> > 4) Are there any articles on performance diffs
> between
> > the two versions?
> > 5) Why would one want to use one over the other?
> > 6) Why would one want to use any of them over 4.1
> > apart from JSP2.0 and JMX support?
> > 7) Are any of the T5 versions as widely deployed
> at
> > ASP's as 4.1.x?
> >  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Tomcat 5 architectural questions

2005-01-13 Thread Tim Funk
There is no nio in tomcat.
-Tim
T K wrote:
Hi,
1) Is T5.0 nio based?
2) Is T5.5 nio based?
3) For the version that's nio based, how many threads
are typically in use?
4) Are there any articles on performance diffs between
the two versions?
5) Why would one want to use one over the other?
6) Why would one want to use any of them over 4.1
apart from JSP2.0 and JMX support?
7) Are any of the T5 versions as widely deployed at
ASP's as 4.1.x?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 startup crash, please help

2004-12-29 Thread Ben Souther
There is actually a listing in Bugzilla this.
Would you mind adding your findings to it?
http://issues.apache.org/bugzilla/show_bug.cgi?id=30052
If this is a jsvc bug, your data might help to find it.

That's a pretty old Linux distribution.
I remember having trouble with Sun's jdk on either RH7.0 or RH7.1
There was a fairly buggy release of the gclib libraries in one of them.
Are you able to try your app on a more recent Linux distribution for
comparison?










On Wed, 2004-12-29 at 01:30, Michael Kastner wrote:
> Hello Jacob,
> 
> thanks for your reply,
> 
> Jacob Kjome schrieb:
>  > A stack trace or some other error report would help.  It's a bit vague
>  > when you simply describe it.  Show the evidence and you will be more
>  > likely to get assistance.
> 
> that's what I did yesterday, but got no response at all. Then I figured 
> I might have given too much information on the problem.
> 
> So, here's the information on the problem:
> 
> configuration: tomcat 5.0.28
> redhat linux 7.1
> vm: 1.4.2_03
> 
> I'm trying to install tomcat 5.0. Everything works fine as far as using 
> the startup and shutdown scripts provided.
> 
> However, when I try to start the server as a linux daemon with jsvc, the 
> server crashes.
> 
> The catalina.out-log says:
> 
> 
> 
> 
> Another exception has been detected while we were handling last error.
> 
> 
> Dumping information about last error:
> ERROR REPORT FILE = (N/A)
> PC= 0x400b0646
> SIGNAL= 11
> FUNCTION NAME = (N/A)
> OFFSET= 0x
> LIBRARY NAME  = (N/A)
> Please check ERROR REPORT FILE for further information, if there is any.
> Good bye.
> pure virtual method called
> jsvc.exec error: Service exit with a return value of 255
> 
> 
> 
> But then again, if I remove the ajp connector entry in server.xml, jsvc 
> and the tomcat just work fine.
> 
> If I try to start the server again after it has crashed once, the 
> catalina.out-log says:
> 
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x400B0646
> Function=(null)+0x400B0646
> Library=/lib/i686/libc.so.6
> 
> 
> 
> NOTE: We are unable to locate the function name symbol for the error
>just occurred. Please refer to release documentation for possible
>reason and solutions.
> 
> 
> 
> 
> 
> 
> Current Java thread:
>  at 
> org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
>  at 
> org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown 
> Source)
>  at 
> org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source)
>  at 
> org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:132)
>  at 
> org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
>  at org.apache.commons.modeler.Registry.load(Registry.java:819)
>  at 
> org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
>  at 
> org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
>  at 
> org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
>  at 
> org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
>  at 
> org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
>  at 
> org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
>  at 
> org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
>  at 
> org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1514)
>  at 
> org.apache.catalina.core.StandardService.start(StandardService.java:489)
>  - locked <0x44cc7428> (a [Lorg.apache.catalina.Connector;)
>  at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
>  - locked <0x44ce5510> (a [Lorg.apache.catalina.Service;)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at 
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
> 
> 
> 

Re: Tomcat 5 startup crash, please help

2004-12-28 Thread Michael Kastner
Hello Jacob,
thanks for your reply,
Jacob Kjome schrieb:
> A stack trace or some other error report would help.  It's a bit vague
> when you simply describe it.  Show the evidence and you will be more
> likely to get assistance.
that's what I did yesterday, but got no response at all. Then I figured 
I might have given too much information on the problem.

So, here's the information on the problem:
configuration: tomcat 5.0.28
   redhat linux 7.1
   vm: 1.4.2_03
I'm trying to install tomcat 5.0. Everything works fine as far as using 
the startup and shutdown scripts provided.

However, when I try to start the server as a linux daemon with jsvc, the 
server crashes.

The catalina.out-log says:


Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC= 0x400b0646
SIGNAL= 11
FUNCTION NAME = (N/A)
OFFSET= 0x
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
pure virtual method called
jsvc.exec error: Service exit with a return value of 255

But then again, if I remove the ajp connector entry in server.xml, jsvc 
and the tomcat just work fine.

If I try to start the server again after it has crashed once, the 
catalina.out-log says:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x400B0646
Function=(null)+0x400B0646
Library=/lib/i686/libc.so.6

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.


Current Java thread:
at 
org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
at 
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown 
Source)
at 
org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:132)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
at 
org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
at 
org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
at 
org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1514)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:489)
- locked <0x44cc7428> (a [Lorg.apache.catalina.Connector;)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
- locked <0x44ce5510> (a [Lorg.apache.catalina.Service;)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)

Does anyone have a clue?
To me, this looks like a problem with jsvc and ajp.
I do have another instance of tomcat running on this system, but I've 
changed the port numbers.

Any hint or help is very much appreciated.
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 startup crash, please help

2004-12-28 Thread Jacob Kjome
A stack trace or some other error report would help.  It's a bit vague when 
you simply describe it.  Show the evidence and you will be more likely to 
get assistance.

Jake
At 06:54 AM 12/29/2004 +0100, you wrote:
>Hello,
>
>I am desperate, for I have been trying to find a solution to this
>problem for two weeks now. Can anybody help me with this?
>
>Tomcat 5 crashes as it is starting up using jsvc. It does not crash if I
>start Tomcat 5 as a regular application. It could be connected to struts
>and database connections, since it seems to be starting fine until the
>applications initialize the connections.
>
>Any hint or help is very much appreciated
>
>Michael Kastner
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  

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


Re: Tomcat 5, jk2, Apache 2 and mixed name/IP virtual hosts

2004-12-21 Thread g . lams
Troy Davis <[EMAIL PROTECTED]> wrote on 21/12/2004 17.07.40:

> Hello,
> 
> I've got a Tomcat 5 / Apache 2 / jk2 server which has been serving 
> several different virtual hosts which share a common IP address. I now 
> need to implement my first SSL-protected website on this machine, and I 
> am working under the assumption that this site must have a dedicated IP 
> address in order for SSL to work. First of all, is this assumption 
> correct?
Yes, should be
see http://httpd.apache.org/docs-2.0/vhosts/name-based.html
"Name-based virtual hosting cannot be used with SSL secure servers because 
of the nature of the SSL protocol. "

Gaël

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



RE : RE : Tomcat 5 and Realm problem

2004-12-16 Thread VAN DER MARLIERE FREDERIC
I did not remember of this point of the specification.
I'll try to do another way.

Thanks a lot for your answer.
Fred.

-Message d'origine-
De : Ben Souther [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 15 décembre 2004 17:45
À : Tomcat Users List
Objet : Re: RE : Tomcat 5 and Realm problem


On Wed, 2004-12-15 at 10:44, VAN DER MARLIERE FREDERIC wrote:
> Not far. I do use IE and htpts. And I turned off cookies but in 
> server.xml file. I meet to many problems when I use session cookies 
> and none with encoded URL. Any idea of the way to use realm 
> authentication (FORM method) with cookies turned off?
> 
If there is, it probably won't be very portable.
Here's a quote from the serlet specs:

SRV.12.5.3.1   Login Form Notes
Form based login and URL based session tracking can be problematic to
implement. Form based login should be used only when sessions are being
maintained by cookies or by SSL session information.
 













Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message 
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the "message") are confidential and intended 
solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.



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



AW: RE : Tomcat 5 and Realm problem

2004-12-15 Thread Martin Grüneberg
Hello Ben,

On my System (w2k IE6) with Cookies turned off FORM based login
fails even with SSL session information in IE
firefox has no problem with that. :-(

Martin  

> -Ursprüngliche Nachricht-
> Von: Ben Souther [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 15. Dezember 2004 17:45
> An: Tomcat Users List
> Betreff: Re: RE : Tomcat 5 and Realm problem
> 
> On Wed, 2004-12-15 at 10:44, VAN DER MARLIERE FREDERIC wrote:
> > Not far. I do use IE and htpts. And I turned off cookies 
> but in server.xml
> > file. I meet to many problems when I use session cookies 
> and none with
> > encoded URL. 
> > Any idea of the way to use realm authentication (FORM 
> method) with cookies
> > turned off?
> > 
> If there is, it probably won't be very portable.
> Here's a quote from the serlet specs:
> 
> SRV.12.5.3.1   Login Form Notes
> Form based login and URL based session tracking can be problematic to
> implement.
> Form based login should be used only when sessions are being 
> maintained
> by cookies or by SSL session information.
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.1471 from 11.12.2004
Virus news: www.antiviruslab.com


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



Re: RE : Tomcat 5 and Realm problem

2004-12-15 Thread Ben Souther
On Wed, 2004-12-15 at 10:44, VAN DER MARLIERE FREDERIC wrote:
> Not far. I do use IE and htpts. And I turned off cookies but in server.xml
> file. I meet to many problems when I use session cookies and none with
> encoded URL. 
> Any idea of the way to use realm authentication (FORM method) with cookies
> turned off?
> 
If there is, it probably won't be very portable.
Here's a quote from the serlet specs:

SRV.12.5.3.1   Login Form Notes
Form based login and URL based session tracking can be problematic to
implement.
Form based login should be used only when sessions are being maintained
by cookies or by SSL session information.
 











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


RE : Tomcat 5 and Realm problem

2004-12-15 Thread VAN DER MARLIERE FREDERIC
Not far. I do use IE and htpts. And I turned off cookies but in server.xml
file. I meet to many problems when I use session cookies and none with
encoded URL. 
Any idea of the way to use realm authentication (FORM method) with cookies
turned off?

-Message d'origine-
De : Martin Grüneberg [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 15 décembre 2004 08:52
À : 'Tomcat Users List'
Objet : AW: Tomcat 5 and Realm problem


Hi Frederic,

you are using IE and https? I got the same error and can't find a proper
solution for it. I bet you have turned of cookies in IE. Turn them on (allow
session-cookies) and it will work again. 

Greetings
Martin  

-Ursprüngliche Nachricht-
Von: VAN DER MARLIERE FREDERIC [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 14. Dezember 2004 18:41
An: [EMAIL PROTECTED]
Betreff: Tomcat 5 and Realm problem

Hi,

I'm developping a web app in wich I want the users to authenticate via
Realm. I first used BASIC authentication méthod and everything worked fine.
But when I want to use the FORM one, I get the following message when login
and password are correct (if not, I get the error page I configured in
web.xml):

The time allowed for the login process has been exceeded. If you wish to
continue you must either click back twice and re-click the link you
requested or close and re-open your browser

My web.xml looks like:





  protection index
  /
  GET



  myRole




FORM

  /login.jsp
  /error.jsp




myRole


And login.jsp looks like:

  
  
  

  
  
  

  



Does someone have any idea about the origin of my problem ?

Thanks.
Fred.



Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires. Toute
utilisation ou diffusion non autorisee est interdite.Tout message
electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales
declinent toute responsabilite au titre de ce message s'il a ete altere,
deforme ou falsifie. This message and any attachments ( the "message") are
confidential and intended solely for the addressees. Any unauthorised use or
dissemination is prohibited.E-mails are susceptible to alteration. Neither
CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for
the message if altered, changed or falsified.





Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.1471 from 11.12.2004
Virus news: www.antiviruslab.com




Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message 
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the "message") are confidential and intended 
solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.



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


Re: Tomcat 5 and Realm problem

2004-12-14 Thread Quinton Delpeche
On Tuesday 14 December 2004 19:40, VAN DER MARLIERE FREDERIC wrote:
> Hi,

Hello,

> The time allowed for the login process has been exceeded. If you wish to
> continue you must either click back twice and re-click the link you
> requested or close and re-open your browser

I had a similar problem like this a while ago, using a PostgresQL DB server on 
a Linux machine, it turned out that I had all three versions of the JDBC 
Driver in my common/lib and server/lib directory.

Once I removed the other two versions, this problem went away.

> Does someone have any idea about the origin of my problem ?

My suggestion would be to check your versions of the JDBC Driver you are using 
and make sure it is the correct version and working correctly.

> Thanks.
> Fred.

Regards

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

"It's Fabulous!  We haven't seen anything like it in the last half an
hour!"
-- Macy's


pgpewjkEbfWew.pgp
Description: PGP signature


RE: tomcat 5 and UTF-8 encoding

2004-12-07 Thread Shapira, Yoav

Hi,
There are tons of other such stories in the archives of this list and of
Bugzilla.  Nothing new here.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 07, 2004 4:04 AM
>To: Tomcat Users List
>Subject: RE: tomcat 5 and UTF-8 encoding
>
>someone else had a similar issue with hebrew and you can read what
happened
>here:
>
>http://issues.apache.org/bugzilla/show_bug.cgi?id=32500
>
>Allistair.
>
>> -Original Message-
>> From: Peter Johnson [mailto:[EMAIL PROTECTED]
>> Sent: 07 December 2004 03:41
>> To: Tomcat Users List
>> Subject: Re: tomcat 5 and UTF-8 encoding
>>
>>
>> Sarah,
>>
>> I recall a post a week or so ago regarding the contentType
>> string losing
>> the space after the ;
>>
>> This may be causing the issue.
>>
>> PJ
>>
>> Sarah wrote:
>>
>> >Hi,
>> >   I need to use jsp to display some data in Japanese
>> character from MS SQL server database.  I have already set
>> the encoding in jsp to be:
>> >
>> ><%@ page language="java" contentType="text/html; charset=UTF-8" %> >
>
>> >If I use tomcat version 5.0.18, then the japanese character
>> is displayed correctly.  However, if I use 5.0.28 or 5.5.4,
>> the characters are something like "???".  If I right click
>> the html page generated from jsp on the above versions, I can
>> see the encoding to be Western instead of "UTF-8" like what
>> happened with 5.0.18.  Does anyone know what cause this
>> problem and if any configuration of Tomcat needs to be made.
>> Thank you very much for your help.
>> >
>> >
>> >Sarah
>> >
>> >
>> >-
>> >Do you Yahoo!?
>> > Read only the mail you want - Yahoo! Mail SpamGuard.
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



RE: tomcat 5 and UTF-8 encoding

2004-12-07 Thread Allistair Crossley
someone else had a similar issue with hebrew and you can read what happened 
here:

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500

Allistair.

> -Original Message-
> From: Peter Johnson [mailto:[EMAIL PROTECTED]
> Sent: 07 December 2004 03:41
> To: Tomcat Users List
> Subject: Re: tomcat 5 and UTF-8 encoding
> 
> 
> Sarah,
> 
> I recall a post a week or so ago regarding the contentType 
> string losing 
> the space after the ;
> 
> This may be causing the issue.
> 
> PJ
> 
> Sarah wrote:
> 
> >Hi,
> >   I need to use jsp to display some data in Japanese 
> character from MS SQL server database.  I have already set 
> the encoding in jsp to be:
> > 
> ><%@ page language="java" contentType="text/html; charset=UTF-8" %> > > 
> >If I use tomcat version 5.0.18, then the japanese character 
> is displayed correctly.  However, if I use 5.0.28 or 5.5.4, 
> the characters are something like "???".  If I right click 
> the html page generated from jsp on the above versions, I can 
> see the encoding to be Western instead of "UTF-8" like what 
> happened with 5.0.18.  Does anyone know what cause this 
> problem and if any configuration of Tomcat needs to be made.  
> Thank you very much for your help.
> > 
> > 
> >Sarah
> >
> > 
> >-
> >Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: tomcat 5 and UTF-8 encoding

2004-12-06 Thread Peter Johnson
Sarah,
I recall a post a week or so ago regarding the contentType string losing 
the space after the ;

This may be causing the issue.
PJ
Sarah wrote:
Hi,
  I need to use jsp to display some data in Japanese character from MS SQL 
server database.  I have already set the encoding in jsp to be:
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 

If I use tomcat version 5.0.18, then the japanese character is displayed correctly.  However, if I 
use 5.0.28 or 5.5.4, the characters are something like "???".  If I right click the html 
page generated from jsp on the above versions, I can see the encoding to be Western instead of 
"UTF-8" like what happened with 5.0.18.  Does anyone know what cause this problem and if 
any configuration of Tomcat needs to be made.  Thank you very much for your help.
Sarah
		
-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
 

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


Re: Tomcat 5 notably slower than tomcat 4...more info

2004-12-06 Thread Remy Maucherat
On Sun, 5 Dec 2004 18:31:47 -0600, Dan Foreman <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I've learned more since my last questions about tomcat 5 vs 4 performance.  
> The reason that it seems so much slower is that there
> are more than twice as many packets being returned from the application 
> server...most of which are SYN/SYN-ACK packets (no
> exaggeration, from 300 packets in tomcat 4 to 800 in tomcat 5).  Initially 
> the SYN requests come from the browser (true for IE and
> FireFox).  Theorizing that the problem could be solved changing the 
> connectionLinger setting from the default of 0 to 2000 ms we
> tried, but had no consistent change in the amount of SYN/SYN-ACK packets 
> being exchanged between the browser and tomcat.  The
> inconsistency in behavior leads me to believe that the problem is somehow 
> related to load (network/cpu/etc), on occasion tomcat 5
> will respond as tomcat 4 does (no extra chatter).  Tomcat 4 running across 
> the same exact network, through the same context switch
> does not exhibit this everthere is a single SYN/SYN-ACK initially and 
> then just typical request/responses.
> 
> Anybody else seen this?

No. You'll need to look at this in detail, and I recommend doing some
of the testing with really simple stuff (such as static files).

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Re: Tomcat 5 + hostname

2004-12-04 Thread QM
On Fri, Dec 03, 2004 at 12:17:14PM -0500, Lei Lin wrote:
:  I just want to use server's hostname, not a domain name of the server.
: such as  http://servername:8080/  accessed by other computer which is
: connected in our company's network.

Yes, this sounds like the one host has a misconfigured resolver.  Check
/etc/hosts and /etc/nsswitch.conf (if that machine runs a Unix-like OS).

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 5 + hostname

2004-12-03 Thread Lei Lin
Andoni,

I didn't set anything in virtual hosts in server.xml. The only thing there
is the default one, localhost.

 I just want to use server's hostname, not a domain name of the server.
such as  http://servername:8080/  accessed by other computer which is
connected in our company's network.  I don't think  i need to set up virtual
host in xml in my case.  Also I found i don't get response from the server
if i ping the server's hostname from other machine which is connected in our
company's network.  But i can ping the server by using the server's IP
address.  I think I might to resolve ping the se host name first.

- Original Message - 
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 03, 2004 11:51 AM
Subject: Re: Tomcat 5 + hostname


> Post your server.xml (or at least the relevant parts) with no HTML
comments
> and I'll have a look.
>
> Failing that, read the documentation, it shows how to set up virtual hosts
> in tomcat.
>
> Andoni.
>
> - Original Message - 
> From: "Eberle Martin" <[EMAIL PROTECTED]>
> Newsgroups: gmane.comp.jakarta.tomcat.user
> Sent: Friday, December 03, 2004 3:31 PM
> Subject: AW: Tomcat 5 + hostname
>
>
> Same problem here ... can't get tomcat with domain name running :(
>
>
> -Ursprüngliche Nachricht-
> Von: Lei Lin [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 3. Dezember 2004 15:44
> An: [EMAIL PROTECTED]
> Betreff: Tomcat 5 + hostname
>
> Hi folks,
>
> We installed Tomcat 5 on Redhat Linux 9 server.  In order to run our
> servlet, we need to use http://hostname:8080 instead of using our server's
> IP address URL eg: http://177.23.6.2:8080.  The IP address URL works for
our
> server, but not the hostname url.  Any idea?
>
> Thanks
>
> Lei
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Tomcat 5 + hostname

2004-12-03 Thread Andoni
Post your server.xml (or at least the relevant parts) with no HTML comments
and I'll have a look.

Failing that, read the documentation, it shows how to set up virtual hosts
in tomcat.

Andoni.

- Original Message - 
From: "Eberle Martin" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Friday, December 03, 2004 3:31 PM
Subject: AW: Tomcat 5 + hostname


Same problem here ... can't get tomcat with domain name running :(


-Ursprüngliche Nachricht-
Von: Lei Lin [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 3. Dezember 2004 15:44
An: [EMAIL PROTECTED]
Betreff: Tomcat 5 + hostname

Hi folks,

We installed Tomcat 5 on Redhat Linux 9 server.  In order to run our
servlet, we need to use http://hostname:8080 instead of using our server's
IP address URL eg: http://177.23.6.2:8080.  The IP address URL works for our
server, but not the hostname url.  Any idea?

Thanks

Lei


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



RE: Tomcat 5 + hostname

2004-12-03 Thread Phillip Qin
Check your server.xml


-Original Message-
From: Eberle Martin [mailto:[EMAIL PROTECTED] 
Sent: December 3, 2004 10:32 AM
To: Tomcat Users List
Subject: AW: Tomcat 5 + hostname


Same problem here ... can't get tomcat with domain name running :(


-Ursprüngliche Nachricht-
Von: Lei Lin [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 3. Dezember 2004 15:44
An: [EMAIL PROTECTED]
Betreff: Tomcat 5 + hostname

Hi folks,

We installed Tomcat 5 on Redhat Linux 9 server.  In order to run our
servlet, we need to use http://hostname:8080 instead of using our server's
IP address URL eg: http://177.23.6.2:8080.  The IP address URL works for our
server, but not the hostname url.  Any idea?

Thanks

Lei  

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


!DSPAM:41b0876294503702910391!


RE: Tomcat 5 notably slower than tomcat 4

2004-12-03 Thread Shapira, Yoav

Hi,
Tomcat 5.0 is faster than 4.1 as well.  The degree to which it's faster
depends on application characteristics, hardware, load, etc.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: sipdev [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 03, 2004 4:04 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5 notably slower than tomcat 4
>
>I cannot tell for your exact configuration, but for a single server,
>Java application + XML
>Tomcat 5.5.4 seems faster than 4.1.30 on JRE 1.4.2_05
>Why don't you try the 5.5.4?
>
>-Original Message-
>From: Dan Foreman [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 03, 2004 5:25 AM
>To: Tomcat-User
>Subject: FW: Tomcat 5 notably slower than tomcat 4
>
>Hi,
>
>While upgrading application servers from Tomcat 4.0.5 to Tomcat 5.0.29
I
>am noticing slower browser response when hitting the tomcat
>5 servers.
>
>We use tomcat as an application server for a data collection
>application.  In one of our larger installs where there are 10
>application servers, I have started upgrading to Tomcat 5 from Tomcat
>4.0.5.  All 10 application servers have identical
>configuration (less disk space differences), 2x1.4GHz (SMP), Win2k, 2GB
>RAM.  All 10 are running j2sdk 1.4.2_02.  Just off the cuff,
>I'd say it's 15% slower than tomcat 4.0.5.  Watching CPU performance,
>the hardware is not being taxed on either the old version or
>the new one, but the time for the browser to update is slower.  I'm
>fairly certain that the network is not a contributing factor as
>all servers are on the same 1 GB backbone and I'm testing to the same
>endpoint over the internet.  The tomcat 5 install has no
>special configuration, no session replication (I removed the balancer,
>ROOT and server web applications from the filesystem).
>
>Anyone else seen this?
>Any ideas where to look?
>
>-Dan
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



RE: Tomcat 5 notably slower than tomcat 4

2004-12-03 Thread sipdev
I cannot tell for your exact configuration, but for a single server,
Java application + XML
Tomcat 5.5.4 seems faster than 4.1.30 on JRE 1.4.2_05
Why don't you try the 5.5.4?

-Original Message-
From: Dan Foreman [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 03, 2004 5:25 AM
To: Tomcat-User
Subject: FW: Tomcat 5 notably slower than tomcat 4

Hi,

While upgrading application servers from Tomcat 4.0.5 to Tomcat 5.0.29 I
am noticing slower browser response when hitting the tomcat
5 servers.  

We use tomcat as an application server for a data collection
application.  In one of our larger installs where there are 10
application servers, I have started upgrading to Tomcat 5 from Tomcat
4.0.5.  All 10 application servers have identical
configuration (less disk space differences), 2x1.4GHz (SMP), Win2k, 2GB
RAM.  All 10 are running j2sdk 1.4.2_02.  Just off the cuff,
I'd say it's 15% slower than tomcat 4.0.5.  Watching CPU performance,
the hardware is not being taxed on either the old version or
the new one, but the time for the browser to update is slower.  I'm
fairly certain that the network is not a contributing factor as
all servers are on the same 1 GB backbone and I'm testing to the same
endpoint over the internet.  The tomcat 5 install has no
special configuration, no session replication (I removed the balancer,
ROOT and server web applications from the filesystem).

Anyone else seen this?  
Any ideas where to look?

-Dan 


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


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



RE: Tomcat 5 and win2000l...

2004-11-30 Thread Shapira, Yoav

Hi,
For Tomcat 5.0, JDK 1.3 is supported, including on Windows 2000.  The
behavior you're seeing is normal: the startup window launches tomcat and
then goes away.  If you'd like it to stick around, run "catalina.bat
run" instead of startup.bat.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: chandrashekhar sf cs [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 30, 2004 1:03 AM
>To: Tomcat Users List
>Subject: Tomcat 5 and win2000l...
>
>hi
>i want to install tomcat5 on win2000. i am using jdk1.3. is mandatory
>jdk1.4?whenever i start tomcat (startup.bat)
> screen scroll and tomcat stopped. what is wrong with me.
>any change in server.xml or web.xml?
>
>plz help




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



RE: tomcat 5 directory layout Q.

2004-11-26 Thread Phillip Qin
TC4.1 and TC5.0 have almost the same directory structure, except in TC5.0,
${your.app}.xml is under ${catalina_home}/conf/${engine}/${host}. Oin order
to deploy your web app, put your war or expanded war into
${catalina_home}/webapps/${host}. If you use struts, drop off struts.jar to
WEB-INF/lib. If you use database stuff, drop off jdbc jar to common/lib.

-Original Message-
From: D. Stimits [mailto:[EMAIL PROTECTED] 
Sent: November 26, 2004 5:03 PM
To: Tomcat Users List
Subject: Re: tomcat 5 directory layout Q.


D. Stimits wrote:
> I've been digging around on the tomcat web pages, and it appears that
> the version 4 docs are still in use under version 5 tomcat. I'm new to 
> tomcat 5 and have only used tomcat 4 to a small extent, never had to 
> administrate it before. I'm trying to make sense of the subdirectories 
> "shared" and "common", it appears that they are almost the same thing 
> but initialized in different order. In particular, I'm interested in 
> learning batik and struts, and not really sure where to put the various 
> files since the directories used in the docs do not really correspond to 
> version 5. Can anyone direct me to a specific document on directory 
> layout for tomcat 5? Or at least suggest where to place/deploy struts 
> and batik under this newer layout to make the most general use of them?
> 

Forgot to mention, I'm using 5.0.29 on Linux Fedora Core 2, with tarball 
installed in /usr/local/jakarta-tomcat-5.0.29/.

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


!DSPAM:41a7a7f492945663113039!


Re: tomcat 5 directory layout Q.

2004-11-26 Thread D. Stimits
D. Stimits wrote:
I've been digging around on the tomcat web pages, and it appears that 
the version 4 docs are still in use under version 5 tomcat. I'm new to 
tomcat 5 and have only used tomcat 4 to a small extent, never had to 
administrate it before. I'm trying to make sense of the subdirectories 
"shared" and "common", it appears that they are almost the same thing 
but initialized in different order. In particular, I'm interested in 
learning batik and struts, and not really sure where to put the various 
files since the directories used in the docs do not really correspond to 
version 5. Can anyone direct me to a specific document on directory 
layout for tomcat 5? Or at least suggest where to place/deploy struts 
and batik under this newer layout to make the most general use of them?

Forgot to mention, I'm using 5.0.29 on Linux Fedora Core 2, with tarball 
installed in /usr/local/jakarta-tomcat-5.0.29/.

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


RE: Tomcat 5 Dies...

2004-11-25 Thread Carl Olivier
Increase the number of allowed file handles in your OS kernel settings.

Google that for your particular OS.

Carl 

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 25, 2004 12:09 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 Dies...

Okay,

I have now narrowed the problem down to the following:

WebappClassLoader: Failed to open JAR
java.util.zip.ZipException: Too many open files

So like what does this mean? I have and am busy googling... ...but I haven't
been successful just yet.

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

At Group L, Stoffel oversees six first-rate programmers, a managerial
challenge roughly comparable to herding cats.
-- The Washington Post Magazine, 9 June, 1985

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



  1   2   3   4   5   6   >