Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Memory Issues

Memory Issues

2004-04-03       - By shyam

 Back
Reply:     1     2     3     4     5     6     7  



Hi,
Thanks a lot for the information. I am using java 1.4.1_02 .

> I force the GC to run so that the memory is freed.

No. You can not. You can tell the system, that it should. You cannot
enforce
it.

I ask the System to the GC. Sorri for the wrong interpretation.

We are pretty soon moving to tomcat5.0.19. But it will take some time.
Until then I don't to see outofmemory errors. I guess I should ask the
System to run the GC .

Regarding memory leaks, I realize that I need to use a profiler . I will
do it .
Thanks again
shyam
-- --Original Message-- --
From: SH Solutions [mailto:sh-solutions@(protected)]
Sent: Saturday, April 03, 2004 1:56 PM
To: 'Tomcat Users List'
Subject: RE: Memory Issues

Hi


> I have an application running on tomcat4.1.24.

Upgrade. 4.1.30 is latest in 4.1.x.
I can even recommend 5.0.19, that I am running without problems. For
some it
has shown to be even faster.


> I force the GC to run so that the memory is freed.

No. You can not. You can tell the system, that it should. You cannot
enforce
it.


> What I don't understand why is the total memory maximum.

USE A PROFILER. This is a important step. You may be able to adjust some
parameters to take the OoME to happen less frequently, but it will NOT
solve
your memory leaks.


> I want tomcat to deallocate and resize the heap so that the total
memory
doesn't max out.

Tomcat cannot deallocate anything, since tomcat is also only a java
program.
If you do have memory leaks, no java code can change anything. Solve
your
leaks.


> And also I need the GC to run more aggressively.

There are some VM options that allow you to control the way, GC works.
Read
its release notes.

BTW, which VM are you using? Upgrade to latest. It was said, that where
were
StringBuffer memory leaks in at least one of the recent versions.


Regards,
 Steffen


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.