VisualVM
  1. VisualVM
  2. VISUALVM-531

java.lang.OutOfMemoryError: PermGen space

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.3.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 7 Professional 64 bit

      Description

      Getting the below error while profiling the application.The JVM parameters are :
      -Xms512M
      -Xmx1024M
      -XX:MaxPermSize=512M

      However the sampling of application works fine.
      The problem is only when the visual vm tries to profile the classes and it goes out of memory.

      java.lang.OutOfMemoryError: PermGen space
      at java.lang.String.intern(Native Method)
      at org.netbeans.lib.profiler.utils.StringUtils.utf8ToString(StringUtils.java:394)
      at org.netbeans.lib.profiler.classfile.ClassFileParser.utf8AtCPIndex(ClassFileParser.java:596)
      at org.netbeans.lib.profiler.classfile.ClassFileParser.readMethods(ClassFileParser.java:451)
      at org.netbeans.lib.profiler.classfile.ClassFileParser.parseClassFile(ClassFileParser.java:118)
      at org.netbeans.lib.profiler.classfile.DynamicClassInfo.<init>(DynamicClassInfo.java:105)
      at org.netbeans.lib.profiler.classfile.ClassPath.getClassInfoForClass(ClassPath.java:237)
      at org.netbeans.lib.profiler.classfile.ClassRepository.tryLoadRealClass(ClassRepository.java:729)
      at org.netbeans.lib.profiler.classfile.ClassRepository.lookupClass(ClassRepository.java:705)
      at org.netbeans.lib.profiler.classfile.ClassRepository.lookupClass(ClassRepository.java:470)
      at org.netbeans.lib.profiler.instrumentation.ClassManager.javaClassForName(ClassManager.java:198)
      at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1.getMethodsToInstrumentUponClassLoad(RecursiveMethodInstrumentor1.java:193)
      at org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForCallGraph(Instrumentor.java:363)
      at org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:248)
      at org.netbeans.lib.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:1822)
      at org.netbeans.lib.profiler.ProfilerClient.access$300(ProfilerClient.java:87)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stephen_Fernandes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: