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

native memory leak when use Thread.getAllStackTraces()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 7
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Backports

        Description

        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 ----------

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: