The Artima Developer Community
Sponsored Link

Java Answers Forum
Tomcat problem

3 replies on 1 page. Most recent reply: Nov 10, 2005 1:51 PM by Lynn Hollerman

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
dev team

Posts: 3
Nickname: devtream
Registered: Nov, 2005

Tomcat problem Posted: Nov 6, 2005 9:01 PM
Reply to this message Reply
Advertisement
I am using tomcat 4.12 and sql server 2000 in our project.
while multiple user accessing our project, outofmemoryerror is displayed.

what should i do for that ? how to check the open cursor in sql server ?


Joe Parks

Posts: 107
Nickname: joeparks
Registered: Aug, 2003

Re: Tomcat problem Posted: Nov 7, 2005 9:26 PM
Reply to this message Reply
How many users do you have?
Have you narrowed it down to a specific part of the application?
How big is the result set(s) you're retrieving?
Do you have a while(...) loop defined that does not update the condition variable?

dev team

Posts: 3
Nickname: devtream
Registered: Nov, 2005

Re: Tomcat problem Posted: Nov 9, 2005 2:19 AM
Reply to this message Reply
Thanks for ur reply..

When more than 5 users accessing our application, we are getting the problem.

Now i have created a one environment variable.
CATALINA_OPTS=-server -Xmx256m.

We are using hashtable and vector more frequently in our coding and also complicated queries are also executed.
Using JProbe memory management tool,we have found that memory leak is exist in our application. so we are explictily call garbage collection method System.gc() at the end of the each file..

after that we did not face the memory problem... but the application performance is slow..

what should i do?

Lynn Hollerman

Posts: 67
Nickname: gmholler
Registered: Mar, 2002

Re: Tomcat problem Posted: Nov 10, 2005 1:51 PM
Reply to this message Reply
Correct the memory leak, if you can. If not, you might try upgrading your Tomcat - 4.12 is a bit out of date - go with 5.0.x or above; this may or may not solve your problem , tho.

Lynn.

Flat View: This topic has 3 replies on 1 page
Topic: MODEM Receive "D" instead of RING Previous Topic   Next Topic Topic: 2D array

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use