Examples of forceGC()


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

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

   protected void checkUnload(WeakReference weakReferenceOnLoader, String className, String reportHTMLFile) throws Exception
   {
      JVMTIInterface jvmti = new JVMTIInterface();
      if (jvmti.isActive())
      {
         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()

            PrintStream realoutput = new PrintStream(outfile);
            realoutput.println(report);
            realoutput.close();
           
           
            jvmti.forceGC();
           
            clazz = jvmti.getClassByName(className);
           
            if (clazz==null)
            {
View Full Code Here

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

         TextMessage tm = (TextMessage)c1.receive(1000);
         assertEquals("blip again", tm.getText());

         log.info("Forcing release on SoftReferences");
         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();

         Map inventory2 = jvmti.produceInventory();

         InventoryDataPoint dataPoint = (InventoryDataPoint) inventory2.get(ProducerState.class);
         if (dataPoint.getInstances() > 1)
View Full Code Here

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

      conn = null;


      jvmti.forceReleaseOnSoftReferences();
      jvmti.forceGC();

      Map inventory2 = jvmti.produceInventory();

      validateInstances(jvmti, FailoverValve2.class, inventory2, 1);
      validateInstances(jvmti, ClientConsumer.class, inventory2, 1);
View Full Code Here

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

         TextMessage tm = (TextMessage)c1.receive(1000);
         assertEquals("blip again", tm.getText());

         log.info("Forcing release on SoftReferences");
         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();

         Map inventory2 = jvmti.produceInventory();

         validateInstances(jvmti, ClientConnectionDelegate.class, inventory2, 1);
         validateInstances(jvmti, ConnectionState.class, inventory2, 1);
View Full Code Here

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

        local.set(holder3);
       
       

        JVMTIInterface jvmti = new JVMTIInterface();
        jvmti.forceGC();
       
        //File tmpFile = File.createTempFile("profiler","");
        File tmpFile = new File("tst","");
       
        System.out.println("Generating data to " + tmpFile.getAbsolutePath());
View Full Code Here

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

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

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

            PrintStream realoutput = new PrintStream(outfile);
            realoutput.println(report);
            realoutput.close();
           
           
            jvmti.forceGC();
           
            clazz = jvmti.getClassByName(className);
           
            if (clazz==null)
            {
View Full Code Here

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

      {

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

         jvmti.forceReleaseOnSoftReferences();
         jvmti.forceGC();
         Class clazz = jvmti.getClassByName(className);
         if (clazz!=null)
         {
            jvmti.heapSnapshot("snapshot", "mem");
            clazz=null;
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.