You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nancy Crisostomo Martinez <na...@correo.uqroo.mx> on 2002/08/22 23:56:10 UTC

[help!] Strange Tomcat's behaviour

Hi everybody,
I need your help!

I have been having a problem, but I don't know if it is a Tomcat's
trouble or what.
Features:
  -Solaris 7
  -Tomcat 3.3
  -j2sdk 1.3.1
  -Oracle 8

This is the problem:
-I have a kind of shopping cart formed by some jsp files. The code is
not so sofisticated or complex. This kind of shopping cart is used to
register a student in the classes(groups) he/she choose from a list,
then he/she is registered in all that groups he/she added in his/her
"shopping cart".

-This means, that it required to have some DataBase connections to
recover the classes availables, and to register him/her in them.

-But the problem happened when I tried to test it in a very formal
registration day in the school. It was terrible! because the application
crashed almost every half hour. And it came back to work when I
restarted Tomcat.

-It suddenly stop to work,but not all the Tomcat'services, because I
tried to access other jsp file (more simple) and sometimes they worked
(Not all the "crashed" times).

Does any of you could give me some opinions(explanations) about this?
Please?

I will thank all your advice!

Thanks in advance,
Nancy.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [help!] Strange Tomcat's behaviour

Posted by Bill Barker <re...@verizon.net>.
news://news.gmain.org/

<disclaimer>
This news server is not affiliated with Apache/Jakarta in any way. The only
way to guarantee access to the mailing list is via subscription at
http://jakarta.apache.org/site/mail.html
</disclaimer>

"Xiao Juguang" <ju...@fugu-sg.org> wrote in message
news:001301c24a5e$9ccc2140$210aa8c0@sushibar.bii...
> What is the NNTP server name? thanks.
>
> Juguang.
>
> ----- Original Message -----
> From: "Bill Barker" <re...@verizon.net>
> Newsgroups: gmane.comp.jakarta.tomcat.user
> To: <to...@jakarta.apache.org>
> Sent: Friday, August 23, 2002 12:16 PM
> Subject: Re: [help!] Strange Tomcat's behaviour
>
>
> > Without more information from the log files (e.g. the tomcat.log [if
any,
> > not set by default in 3.3], and the servlet.log), I'm going to have to
> > guess.
> >
> > My first guess is that you need some sort of connection-pooling between
> your
> > beans and the Oracle driver.
http://jakarta.apache.org/commons/dbcp.html
> is
> > the knee-jerk choice, but there are plenty of others (and, I'm sure that
> > others on list with more experience than me will recommend their
favorites
> > :).
> >
> > My second guess would be dead-locks in your application.  You could do a
> > kill -QUIT  `cat $TOMCAT_HOME/logs/tomcat.pid`
> > to see which monitors are in use.
> >
> > My third guess would be excessive garbage-collection.  This is fairly
> > unlikely for simple applications, but matches the pattern that you are
> > seeing.  The "free" way to check is to add "-verbose:gc" to the JAVACMD,
> but
> > I'd strongly recommend shelling out for OptimizeIt or JProbe if you
> suspect
> > that you have memory leaks.
> >
> > "Nancy Crisostomo Martinez" <na...@correo.uqroo.mx> wrote in message
> > news:3D655DFA.600C09AE@correo.uqroo.mx...
> > > Hi everybody,
> > > I need your help!
> > >
> > > I have been having a problem, but I don't know if it is a Tomcat's
> > > trouble or what.
> > > Features:
> > >   -Solaris 7
> > >   -Tomcat 3.3
> > >   -j2sdk 1.3.1
> > >   -Oracle 8
> > >
> > > This is the problem:
> > > -I have a kind of shopping cart formed by some jsp files. The code is
> > > not so sofisticated or complex. This kind of shopping cart is used to
> > > register a student in the classes(groups) he/she choose from a list,
> > > then he/she is registered in all that groups he/she added in his/her
> > > "shopping cart".
> > >
> > > -This means, that it required to have some DataBase connections to
> > > recover the classes availables, and to register him/her in them.
> > >
> > > -But the problem happened when I tried to test it in a very formal
> > > registration day in the school. It was terrible! because the
application
> > > crashed almost every half hour. And it came back to work when I
> > > restarted Tomcat.
> > >
> > > -It suddenly stop to work,but not all the Tomcat'services, because I
> > > tried to access other jsp file (more simple) and sometimes they worked
> > > (Not all the "crashed" times).
> > >
> > > Does any of you could give me some opinions(explanations) about this?
> > > Please?
> > >
> > > I will thank all your advice!
> > >
> > > Thanks in advance,
> > > Nancy.
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [help!] Strange Tomcat's behaviour

Posted by Xiao Juguang <ju...@fugu-sg.org>.
What is the NNTP server name? thanks.

Juguang.

----- Original Message -----
From: "Bill Barker" <re...@verizon.net>
Newsgroups: gmane.comp.jakarta.tomcat.user
To: <to...@jakarta.apache.org>
Sent: Friday, August 23, 2002 12:16 PM
Subject: Re: [help!] Strange Tomcat's behaviour


> Without more information from the log files (e.g. the tomcat.log [if any,
> not set by default in 3.3], and the servlet.log), I'm going to have to
> guess.
>
> My first guess is that you need some sort of connection-pooling between
your
> beans and the Oracle driver.  http://jakarta.apache.org/commons/dbcp.html
is
> the knee-jerk choice, but there are plenty of others (and, I'm sure that
> others on list with more experience than me will recommend their favorites
> :).
>
> My second guess would be dead-locks in your application.  You could do a
> kill -QUIT  `cat $TOMCAT_HOME/logs/tomcat.pid`
> to see which monitors are in use.
>
> My third guess would be excessive garbage-collection.  This is fairly
> unlikely for simple applications, but matches the pattern that you are
> seeing.  The "free" way to check is to add "-verbose:gc" to the JAVACMD,
but
> I'd strongly recommend shelling out for OptimizeIt or JProbe if you
suspect
> that you have memory leaks.
>
> "Nancy Crisostomo Martinez" <na...@correo.uqroo.mx> wrote in message
> news:3D655DFA.600C09AE@correo.uqroo.mx...
> > Hi everybody,
> > I need your help!
> >
> > I have been having a problem, but I don't know if it is a Tomcat's
> > trouble or what.
> > Features:
> >   -Solaris 7
> >   -Tomcat 3.3
> >   -j2sdk 1.3.1
> >   -Oracle 8
> >
> > This is the problem:
> > -I have a kind of shopping cart formed by some jsp files. The code is
> > not so sofisticated or complex. This kind of shopping cart is used to
> > register a student in the classes(groups) he/she choose from a list,
> > then he/she is registered in all that groups he/she added in his/her
> > "shopping cart".
> >
> > -This means, that it required to have some DataBase connections to
> > recover the classes availables, and to register him/her in them.
> >
> > -But the problem happened when I tried to test it in a very formal
> > registration day in the school. It was terrible! because the application
> > crashed almost every half hour. And it came back to work when I
> > restarted Tomcat.
> >
> > -It suddenly stop to work,but not all the Tomcat'services, because I
> > tried to access other jsp file (more simple) and sometimes they worked
> > (Not all the "crashed" times).
> >
> > Does any of you could give me some opinions(explanations) about this?
> > Please?
> >
> > I will thank all your advice!
> >
> > Thanks in advance,
> > Nancy.
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [help!] Strange Tomcat's behaviour

Posted by Nancy Crisostomo Martinez <na...@correo.uqroo.mx>.
Thank you Bill,

About the log files I saw them before I restarted Tomcat every time it crashes,
and sometimes it had an oracle exception:
"Maximum cursors opened". But it was not all the times because the rest of the
times the log files didn't have anything strange. This confused me more.
I think you are right and the problem could be the Data Base Connections.
I'll try the connection pool.

Thanks again.
Nancy.


Bill Barker wrote:

> Without more information from the log files (e.g. the tomcat.log [if any,
> not set by default in 3.3], and the servlet.log), I'm going to have to
> guess.
>
> My first guess is that you need some sort of connection-pooling between your
> beans and the Oracle driver.  http://jakarta.apache.org/commons/dbcp.html is
> the knee-jerk choice, but there are plenty of others (and, I'm sure that
> others on list with more experience than me will recommend their favorites
> :).
>
> My second guess would be dead-locks in your application.  You could do a
> kill -QUIT  `cat $TOMCAT_HOME/logs/tomcat.pid`
> to see which monitors are in use.
>
> My third guess would be excessive garbage-collection.  This is fairly
> unlikely for simple applications, but matches the pattern that you are
> seeing.  The "free" way to check is to add "-verbose:gc" to the JAVACMD, but
> I'd strongly recommend shelling out for OptimizeIt or JProbe if you suspect
> that you have memory leaks.
>
> "Nancy Crisostomo Martinez" <na...@correo.uqroo.mx> wrote in message
> news:3D655DFA.600C09AE@correo.uqroo.mx...
> > Hi everybody,
> > I need your help!
> >
> > I have been having a problem, but I don't know if it is a Tomcat's
> > trouble or what.
> > Features:
> >   -Solaris 7
> >   -Tomcat 3.3
> >   -j2sdk 1.3.1
> >   -Oracle 8
> >
> > This is the problem:
> > -I have a kind of shopping cart formed by some jsp files. The code is
> > not so sofisticated or complex. This kind of shopping cart is used to
> > register a student in the classes(groups) he/she choose from a list,
> > then he/she is registered in all that groups he/she added in his/her
> > "shopping cart".
> >
> > -This means, that it required to have some DataBase connections to
> > recover the classes availables, and to register him/her in them.
> >
> > -But the problem happened when I tried to test it in a very formal
> > registration day in the school. It was terrible! because the application
> > crashed almost every half hour. And it came back to work when I
> > restarted Tomcat.
> >
> > -It suddenly stop to work,but not all the Tomcat'services, because I
> > tried to access other jsp file (more simple) and sometimes they worked
> > (Not all the "crashed" times).
> >
> > Does any of you could give me some opinions(explanations) about this?
> > Please?
> >
> > I will thank all your advice!
> >
> > Thanks in advance,
> > Nancy.
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [help!] Strange Tomcat's behaviour

Posted by Bill Barker <re...@verizon.net>.
Without more information from the log files (e.g. the tomcat.log [if any,
not set by default in 3.3], and the servlet.log), I'm going to have to
guess.

My first guess is that you need some sort of connection-pooling between your
beans and the Oracle driver.  http://jakarta.apache.org/commons/dbcp.html is
the knee-jerk choice, but there are plenty of others (and, I'm sure that
others on list with more experience than me will recommend their favorites
:).

My second guess would be dead-locks in your application.  You could do a
kill -QUIT  `cat $TOMCAT_HOME/logs/tomcat.pid`
to see which monitors are in use.

My third guess would be excessive garbage-collection.  This is fairly
unlikely for simple applications, but matches the pattern that you are
seeing.  The "free" way to check is to add "-verbose:gc" to the JAVACMD, but
I'd strongly recommend shelling out for OptimizeIt or JProbe if you suspect
that you have memory leaks.

"Nancy Crisostomo Martinez" <na...@correo.uqroo.mx> wrote in message
news:3D655DFA.600C09AE@correo.uqroo.mx...
> Hi everybody,
> I need your help!
>
> I have been having a problem, but I don't know if it is a Tomcat's
> trouble or what.
> Features:
>   -Solaris 7
>   -Tomcat 3.3
>   -j2sdk 1.3.1
>   -Oracle 8
>
> This is the problem:
> -I have a kind of shopping cart formed by some jsp files. The code is
> not so sofisticated or complex. This kind of shopping cart is used to
> register a student in the classes(groups) he/she choose from a list,
> then he/she is registered in all that groups he/she added in his/her
> "shopping cart".
>
> -This means, that it required to have some DataBase connections to
> recover the classes availables, and to register him/her in them.
>
> -But the problem happened when I tried to test it in a very formal
> registration day in the school. It was terrible! because the application
> crashed almost every half hour. And it came back to work when I
> restarted Tomcat.
>
> -It suddenly stop to work,but not all the Tomcat'services, because I
> tried to access other jsp file (more simple) and sometimes they worked
> (Not all the "crashed" times).
>
> Does any of you could give me some opinions(explanations) about this?
> Please?
>
> I will thank all your advice!
>
> Thanks in advance,
> Nancy.





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>