You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/09/08 11:31:01 UTC

DO NOT REPLY [Bug 45760] New: Full GC does not free memory in PSOldGen space

https://issues.apache.org/bugzilla/show_bug.cgi?id=45760

           Summary: Full GC does not free memory in PSOldGen space
           Product: Tomcat 6
           Version: 6.0.18
          Platform: HP
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rafael.orteu.ext@juntadeandalucia.es


Tomcat version 6.0.18
Java version jdk1.6.0_07

We have an application that fills PSOldGen space and Full GC's does not free
memory in PSoldGen space, the same application does not have this issue with
jdk1.5.

Thanks.


Heap after GC invocations=90 (full 17):
 PSYoungGen      total 80832K, used 28649K [0x0000002aa94e0000,
0x0000002aaea30000, 0x0000002aaea30000)
  eden space 74304K, 38% used
[0x0000002aa94e0000,0x0000002aab0da640,0x0000002aadd70000)
  from space 6528K, 0% used
[0x0000002aadd70000,0x0000002aadd70000,0x0000002aae3d0000)
  to   space 6464K, 0% used
[0x0000002aae3e0000,0x0000002aae3e0000,0x0000002aaea30000)
 PSOldGen        total 174784K, used 174784K [0x0000002a9ea30000,
0x0000002aa94e0000, 0x0000002aa94e0000)
  object space 174784K, 100% used
[0x0000002a9ea30000,0x0000002aa94e0000,0x0000002aa94e0000)
 PSPermGen       total 65792K, used 38544K [0x0000002a99630000,
0x0000002a9d670000, 0x0000002a9ea30000)
  object space 65792K, 58% used
[0x0000002a99630000,0x0000002a9bbd42f8,0x0000002a9d670000)
}
{Heap before GC invocations=91 (full 18):
 PSYoungGen      total 80832K, used 74304K [0x0000002aa94e0000,
0x0000002aaea30000, 0x0000002aaea30000)
  eden space 74304K, 100% used
[0x0000002aa94e0000,0x0000002aadd70000,0x0000002aadd70000)
  from space 6528K, 0% used
[0x0000002aadd70000,0x0000002aadd70000,0x0000002aae3d0000)
  to   space 6464K, 0% used
[0x0000002aae3e0000,0x0000002aae3e0000,0x0000002aaea30000)
 PSOldGen        total 174784K, used 174784K [0x0000002a9ea30000,
0x0000002aa94e0000, 0x0000002aa94e0000)
  object space 174784K, 100% used
[0x0000002a9ea30000,0x0000002aa94e0000,0x0000002aa94e0000)
 PSPermGen       total 65792K, used 38596K [0x0000002a99630000,
0x0000002a9d670000, 0x0000002a9ea30000)
  object space 65792K, 58% used
[0x0000002a99630000,0x0000002a9bbe12c0,0x0000002a9d670000)
5263.913: [Full GC [PSYoungGen: 74304K->30306K(80832K)] [PSOldGen:
174784K->174784K(174784K)] 249088K->205090K(255616K) [PSPermGen:
38596K->38596K(65792K)], 0.5541860 secs] [Times: user=0.56 sys=0.00, real=0.55
secs] 
Heap after GC invocations=91 (full 18):
 PSYoungGen      total 80832K, used 30306K [0x0000002aa94e0000,
0x0000002aaea30000, 0x0000002aaea30000)
  eden space 74304K, 40% used
[0x0000002aa94e0000,0x0000002aab278b28,0x0000002aadd70000)
  from space 6528K, 0% used
[0x0000002aadd70000,0x0000002aadd70000,0x0000002aae3d0000)
  to   space 6464K, 0% used
[0x0000002aae3e0000,0x0000002aae3e0000,0x0000002aaea30000)
 PSOldGen        total 174784K, used 174784K [0x0000002a9ea30000,
0x0000002aa94e0000, 0x0000002aa94e0000)
  object space 174784K, 100% used
[0x0000002a9ea30000,0x0000002aa94e0000,0x0000002aa94e0000)
 PSPermGen       total 65792K, used 38596K [0x0000002a99630000,
0x0000002a9d670000, 0x0000002a9ea30000)
  object space 65792K, 58% used
[0x0000002a99630000,0x0000002a9bbe12c0,0x0000002a9d670000)
}
{Heap before GC invocations=92 (full 19):
 PSYoungGen      total 80832K, used 74304K [0x0000002aa94e0000,
0x0000002aaea30000, 0x0000002aaea30000)
  eden space 74304K, 100% used
[0x0000002aa94e0000,0x0000002aadd70000,0x0000002aadd70000)
  from space 6528K, 0% used
[0x0000002aadd70000,0x0000002aadd70000,0x0000002aae3d0000)
  to   space 6464K, 0% used
[0x0000002aae3e0000,0x0000002aae3e0000,0x0000002aaea30000)
 PSOldGen        total 174784K, used 174784K [0x0000002a9ea30000,
0x0000002aa94e0000, 0x0000002aa94e0000)
  object space 174784K, 100% used
[0x0000002a9ea30000,0x0000002aa94e0000,0x0000002aa94e0000)
 PSPermGen       total 65792K, used 38652K [0x0000002a99630000,
0x0000002a9d670000, 0x0000002a9ea30000)
  object space 65792K, 58% used
[0x0000002a99630000,0x0000002a9bbef390,0x0000002a9d670000)
5605.847: [Full GC [PSYoungGen: 74304K->29768K(80832K)] [PSOldGen:
174784K->174784K(174784K)] 249088K->204552K(255616K) [PSPermGen:
38652K->38652K(65792K)],


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45760] Full GC does not free memory in PSOldGen space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45760


Rafa <ra...@juntadeandalucia.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




--- Comment #3 from Rafa <ra...@juntadeandalucia.es>  2008-09-08 04:27:50 PST ---
Which profiler do you recommend?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45760] Full GC does not free memory in PSOldGen space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45760


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-09-08 02:53:59 PST ---
Something that works with one JDK but not another points to a JDK bug rather
than a Tomcat one, hence I am closing this as invalid.

That said, if you have output from a profiler that shows that a Tomcat class is
holding on to references that it shouldn't feel free to re-open. Some idea of
how to reproduce the issue would also be required.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 45760] Full GC does not free memory in PSOldGen space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45760





--- Comment #2 from Rafa <ra...@juntadeandalucia.es>  2008-09-08 04:23:15 PST ---
I have been doing more test and I have the following:

Tomcat 6.0.18 -> Java 6u7 = Failed
Tomcat 6.0.18 -> Java 5u15 = Failed
Tomcat 5.5.26 -> Java 6u7 = Failed
Tomcat 5.5.26 -> Java 5u15 = Failed

It seems that it occurs in different Tomcat and Java configurations, the
finally message in catalina.out is:

ERROR [ - http-10.228.10.166-8080-Processor18]: Servlet.service() para servlet
action lanz� excepci
java.lang.OutOfMemoryError: Java heap space
        at java.util.LinkedHashMap.createEntry(LinkedHashMap.java:416)
        at java.util.HashMap.putForCreate(HashMap.java:476)
        at java.util.HashMap.putAllForCreate(HashMap.java:482)
        at java.util.HashMap.<init>(HashMap.java:219)
        at java.util.LinkedHashMap.<init>(LinkedHashMap.java:192)
        at
sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:209)
        at
sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
        at
sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
        at java.lang.reflect.Method.declaredAnnotations(Method.java:676)
        at java.lang.reflect.Method.getAnnotation(Method.java:663)
        at
java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:175)
        at
org.hibernate.annotations.common.reflection.java.JavaAnnotationReader.isAnnotationPresent(JavaAnnotationReader.java:27)
        at
org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.isAnnotationPresent(JavaXAnnotatedElement.java:43)
        at
org.hibernate.cfg.AnnotationBinder.mustBeSkipped(AnnotationBinder.java:1063)
        at
org.hibernate.cfg.AnnotationBinder.addProperty(AnnotationBinder.java:1043)
        at
org.hibernate.cfg.AnnotationBinder.addElementsOfAClass(AnnotationBinder.java:999)
        at
org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:833)
        at
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:645)
        at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
        at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
        at
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
        at
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1269)
        at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:150)
        at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888)
        at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:186)
        at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:246)
        at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
        at
org.ja.cgob.comp.framework.data.dao.jpa.JpaDBAccessManagerDAO.openConnection(JpaDBAccessManagerDAO.java:41)
        at
org.ja.cgob.comp.framework.data.dao.jpa.JpaDBAccessManagerDAO.findByQuery(JpaDBAccessManagerDAO.java:302)
        at
org.ja.cgob.comp.framework.data.dao.OracleGenericDAOImpl.getComboBySQL(OracleGenericDAOImpl.java:61)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45760] Full GC does not free memory in PSOldGen space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45760


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #4 from Mark Thomas <ma...@apache.org>  2008-09-08 13:13:37 PST ---
That would be a question for the users list.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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