Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6434648

native memory leak when use Thread.getAllStackTraces()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 5.0
    • core-svc
    • 5.0
    • b03
    • x86
    • windows_xp
    • Verified

        FULL PRODUCT VERSION :
        Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
        and
        Java HotSpot(TM) Server VM (1.6.0-beta2-b79) for windows-x86, built on Apr 6 2006 00:23:36 by "java_re" with unknown MS VC++:1310


        ADDITIONAL OS VERSION INFORMATION :
        Windows XP Build 2600 Service Pack 2

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

        Memory: 4k page, physical 2088300k(44748k free), swap 4019972k(1951532k free)


        A DESCRIPTION OF THE PROBLEM :
        The private bytes memory processus grow, when i use Thread.getAllStackTraces()



        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        java.lang.OutOfMemoryError: requested 12 bytes for CHeapObj-new. Out of swap space?

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.lang.management.ManagementFactory;
        import java.lang.management.ThreadMXBean;

        public class Main4
        {
            public static void main(String[] args)
            {
                while (true)
                {
                    Thread.getAllStackTraces();
                }

            }
        }
        ---------- END SOURCE ----------

              mchung Mandy Chung (Inactive)
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: