You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kingston Sew <ki...@yahoo.com> on 2006/04/26 04:51:26 UTC

Tomcat 4.1.24 - Out of memory

HI All,

My name is Kingston. 

I am currently running Tomcat 4.1.24 on Windows 2003 Server (SP 1)
with jd2sk1.4.2_04. The application accesses a MS SQL Server 2000
through a JDBC driver.

Tomcat loads properly and the application can be accessed. However,
after a half a day and a number of users accessing the application
I get the error java.lang.OutOfMemoryError. The number of users
accessing the application is around 50 at any one time.


I am starting the tomcat via the service. The server has 2GB of ram,
out of which SQL Server is taking 800 MB.

What I have also noticed during my testing is when I open 
the application and access the screen, the memory usage keeps
increasing.


Any ideas on what is the cause of the problem?

Kingston Sew
		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: Tomcat 4.1.24 - Out of memory

Posted by Mark Thomas <ma...@apache.org>.
opensta wrote:
> just increase your max memory of JVM ,
> problem will get solved

If the problem is a memory leak this suggestion will not work. It will
reduce the frequency of the OOM errors (since it will take longer for
the leak to fill all the available memory) but it will not fix the root
cause.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 4.1.24 - Out of memory

Posted by opensta <go...@gmail.com>.
just increase your max memory of JVM ,
problem will get solved
--
View this message in context: http://www.nabble.com/Tomcat-4.1.24---Out-of-memory-t1509167.html#a4098698
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 4.1.24 - Out of memory

Posted by Vivek Mohan <vi...@gmail.com>.
First guess, there are many memory leaks in your application...things
like unclosed connections and all... Did you check on those?

--
Vivek.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 4.1.24 - Out of memory

Posted by manivannan57 <ma...@aim.com>.
1. some jsps or servlets have probably forgotten to close some Statement or
ResultSet or Connections. Fix them.
2. You could try using connection pooling if possible.
3. remove any unwanted jars from your tomcat.

-
Manivannan Palanichamy
http://geocities.com/manivannan57



 
--
View this message in context: http://www.nabble.com/Tomcat-4.1.24---Out-of-memory-t1509167.html#a4095212
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 4.1.24 - Out of memory

Posted by Mark Thomas <ma...@apache.org>.
Kingston Sew wrote:
> Any ideas on what is the cause of the problem?

Sounds like your application has a memory leak. A profiler tool should
be able to show you where.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org