Search Results
OK to copy?
Examples 1 through 10 of
33 (0.009000000000000001 seconds)
Class:
org.apache.jsp.forward.forward_jsp
©,
Rating:
0% of 0,
C3
Class: org.apache.jsp.forward.forward_jsp ©, Rating: 0% of 0, C3
Class: org.apache.catalina.ssi.SSIExec ©, Rating: 0% of 0, C2
Class: org.apache.jk.apr.TomcatStarter ©, Rating: 0% of 0, C1
Class: org.apache.tomcat.util.compat.Jdk14Compat ©, Rating: 0% of 0, C1
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.TestProcess ©, Rating: 0% of 0, C1
43
44 double freeMem = Runtime.getRuntime().freeMemory();
45 double totlMem = Runtime.getRuntime().totalMemory();
46 double percent = freeMem/totlMem;
47 if (percent < 0.5) {
Class: org.apache.jsp.forward.forward_jsp ©, Rating: 0% of 0, C3
42 out.write("<html>\r\n<!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n-->\r\n\r\n");
43
44 double freeMem = Runtime.getRuntime().freeMemory();
45 double totlMem = Runtime.getRuntime().totalMemory();
46 double percent = freeMem/totlMem;
Class: org.apache.catalina.ssi.SSIExec ©, Rating: 0% of 0, C2
47 String configErrMsg = ssiMediator.getConfigErrMsg();
48 String paramName = paramNames[0];
49 String paramValue = paramValues[0];
50
51 if ( paramName.equalsIgnoreCase("cgi") ) {
Class: org.apache.jk.apr.TomcatStarter ©, Rating: 0% of 0, C1
85 if (args[0].equals("stop")) {
86 Thread.sleep(5000);
87 Runtime.getRuntime().exit(0);
88 }
89 } catch( Throwable t ) {
Class: org.apache.tomcat.util.compat.Jdk14Compat ©, Rating: 0% of 0, C1
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
107 }
108 long afree = Runtime.getRuntime().freeMemory();
109 long atotal = Runtime.getRuntime().totalMemory();
110 //long amax = Runtime.getRuntime().maxMemory();//JDK1.4 only
111 long delta = ((atotal - afree) - (btotal - bfree));
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
106 objs.add(monmodel);
107 }
108 long afree = Runtime.getRuntime().freeMemory();
109 long atotal = Runtime.getRuntime().totalMemory();
110 //long amax = Runtime.getRuntime().maxMemory();//JDK1.4 only
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
039
040 long bfree = Runtime.getRuntime().freeMemory();
041 long btotal = Runtime.getRuntime().totalMemory();
042 //long bmax = Runtime.getRuntime().maxMemory();//JDK1.4 only
043 System.out.println("Before we create objects:");
Class: org.apache.jmeter.monitor.util.MemoryBenchmark ©, Rating: 0% of 0, C2
038 ObjectFactory of = ObjectFactory.getInstance();
039
040 long bfree = Runtime.getRuntime().freeMemory();
041 long btotal = Runtime.getRuntime().totalMemory();
042 //long bmax = Runtime.getRuntime().maxMemory();//JDK1.4 only
Class: org.apache.tools.ant.taskdefs.TestProcess ©, Rating: 0% of 0, C1
81 TestProcess tp = new TestProcess();
82 new Thread(tp, "TestProcess thread").start();
83 Runtime.getRuntime().addShutdownHook(tp.getShutdownHook());
84 }
85 }