Examples of forceGC()


Examples of org.jboss.profiler.jvmti.JVMTIInterface.forceGC()

            PrintStream realoutput = new PrintStream(outfile);
            realoutput.println(report);
            realoutput.close();


            jvmti.forceGC();

            clazz = jvmti.getClassByName(className);

            clearEverySingleFieldOnInstances("org.jboss.aop.AspectManager"); // This part is not intended to be commited. It could be used during debug, and you could use to release references on purpose, just to evaluate behavior
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.forceGC()

      JVMTIInterface jvmti = new JVMTIInterface();
      if (jvmti.isActive())
      {

         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.forceGC()

    
     // Test if the reference on ClassInfo is not too weak
     JVMTIInterface jvmti = new JVMTIInterface();
     if (jvmti.isActive())
     {
        jvmti.forceGC();
        assertEquals(1,jvmti.getAllObjects(ClassInfo.class).length);
     }

    
     cinfo = getClassInfo(loader,simpleBeanClass);
View Full Code Here

Examples of org.jboss.profiler.jvmti.JVMTIInterface.forceGC()

      Map inventory1=jvmti.produceInventory();
      log.info("Producing first snapshot");
      produceMessages(sess, prod, NUM_MESSAGES, cons);
      log.info("Producing second snapshot");
      jvmti.forceReleaseOnSoftReferences();
      jvmti.forceGC();
      Map inventory2 = jvmti.produceInventory();
     
      log.info("inventory1.size=" + inventory1.size());
      log.info("inventory2.size=" + inventory2.size());
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.