This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Strange Error messgae in tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Strange Error messgae in tomcat server" Watch "Strange Error messgae in tomcat server" New topic
Author

Strange Error messgae in tomcat server

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
while i was running a webapplication in tomcat server from 7 hrs with out restarting the server.it had given me an error msg saying that maximum number of sessions exceeded


what might be the problem

and moreover the tomcat was running in other system not in my system. and in the server system no other applications were running at that time


thanx in advance



cinux


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14194
    
  20

There's a maximum number of sessions, and the session timeout is set incorrectly (so that sessions take too long to timeout or even never timeout), or there are too many users (more than the max. allowed number of sessions) trying to use the system at the same time.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by Jesper de Jong:
There's a maximum number of sessions, and the session timeout is set incorrectly (so that sessions take too long to timeout or even never timeout), or there are too many users (more than the max. allowed number of sessions) trying to use the system at the same time.


hi jesper de jong , you r right can increase the sessions in server
should i need to change the values in tomcat admin for increasing the sessions
or can i timeout the the session in very less time

please tell me the solution
coz here i am the only one user but accessing the web application many times from morning to evening with out stopping the tomcat server.

thanx


regards,
cinux
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Could you please paste the stack trace in order to confirm that its talking about tomcat sessions not the DB sessions.

Because its very unlikely to have no of tomcat sessions exceeded while you are the only one using the app.
[ November 26, 2005: Message edited by: Adeel Ansari ]
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by Adeel Ansari:
Could you please paste the stack trace in order to confirm that its talking about tomcat sessions not the DB sessions.

Because its very unlikely to have no of tomcat sessions exceeded while you are the only one using the app.

[ November 26, 2005: Message edited by: Adeel Ansari ]


sorry i cant provide u the stack trace of this servlet because it showing a blank page the error msg is in server side that is in tomcat console window




regards

cinux
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by saikrishna cinux:
sorry i cant provide u the stack trace of this servlet because it showing a blank page the error msg is in server side that is in tomcat console window


How did you know, it is because sessions exceeded?

If tomcat console then you can copy the stack from the console or a log file provided under TOMCAT_HOME/logs.

Thanks.
[ November 27, 2005: Message edited by: Adeel Ansari ]
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
You can get the Log file from <Tomcat folder>\logs\catalina<File name with date>
This is the above path where you can get the information.

Thanks
Chidanand Chauhan
 
GeeCON Prague 2014
 
subject: Strange Error messgae in tomcat server