Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MemoryUtil (0.06 sec)

  1. MemoryUtil.java

    java.math.BigInteger; L27:import java.time.LocalDateTime; L28:import java.time.ZonedDateTime; L29:import java.util.Collection; L30:import java.util.Date; L31:import java.util.Map; L32:import java.util.Objects; L33: L34:public final class MemoryUtil { L35: private MemoryUtil() { L36: } L37: L38: public static String getMemoryUsageLog() { L39: final Runtime runtime = Runtime.getRuntime(); L40: final long freeBytes = runtime.freeMemory(); L41: final long maxBytes = runtime.maxMemory();...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      4.6K bytes
  2. MemoryUtilTest.java

    assertEquals(24L, MemoryUtil.sizeOf(Integer.MAX_VALUE)); L60: assertEquals(24L, MemoryUtil.sizeOf(Long.MAX_VALUE)); L61: assertEquals(24L, MemoryUtil.sizeOf(Short.MAX_VALUE)); L62: assertEquals(24L, MemoryUtil.sizeOf(Float.MAX_VALUE)); L63: assertEquals(24L, MemoryUtil.sizeOf(Double.MAX_VALUE)); L64: assertEquals(24L, MemoryUtil.sizeOf(Byte.MAX_VALUE)); L65: assertEquals(16L, MemoryUtil.sizeOf(Boolean.TRUE)); L66: assertEquals(32L, MemoryUtil.sizeOf(new Date()));...
    github.com/codelibs/fess/src/test/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      4.1K bytes
  3. IndexingHelper.java

    L104: systemHelper.getCurrentTimeAsLong() - execTime, MemoryUtil.byteCountToDisplaySize(docList.getContentSize()), L105: MemoryUtil.getMemoryUsageLog()); L106: } else { L107: logger.info("Sent {} docs (Doc:{send {}ms}, {})", docList.size(), systemHelper.getCurrentTimeAsLong() - execTime, L108: MemoryUtil.getMemoryUsageLog()); L109: } L110: } L111: } finally...
    github.com/codelibs/fess/src/main/java/org/code...
    Fri Oct 11 21:11:58 UTC 2024
      16.8K bytes
  4. IndexUpdateCallbackImpl.java

    t.Ingester; L35:import org.codelibs.fess.mylasta.direction.FessConfig; L36:import org.codelibs.fess.util.ComponentUtil; L37:import org.codelibs.fess.util.DocList; L38:import org.codelibs.fess.util.DocumentUtil; L39:import org.codelibs.fess.util.MemoryUtil; L40: L41:import jakarta.annotation.PostConstruct; L42: L43:public class IndexUpdateCallbackImpl implements IndexUpdateCallback { L44: private static final Logger logger = LogManager.getLogger(IndexUpdateCallbackImpl.class); L45: L46: protected...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      7.9K bytes
  5. IndexUpdater.java

    ngestFactory; L49:import org.codelibs.fess.ingest.Ingester; L50:import org.codelibs.fess.mylasta.direction.FessConfig; L51:import org.codelibs.fess.util.ComponentUtil; L52:import org.codelibs.fess.util.DocList; L53:import org.codelibs.fess.util.MemoryUtil; L54:import org.codelibs.fess.util.ThreadDumpUtil; L55:import org.opensearch.action.search.SearchRequestBuilder; L56:import org.opensearch.index.query.QueryBuilder; L57:import org.opensearch.index.query.QueryBuilders; L58:import org.opensearch....
    github.com/codelibs/fess/src/main/java/org/code...
    Fri Oct 11 21:20:39 UTC 2024
      24.2K bytes
  6. FessXpathTransformerTest.java

    System.gc(); L116: for (int i = 0; i < 30; i++) { L117: if (MemoryUtil.getUsedMemory() < current + margin) { L118: break; L119: } L120: System.gc(); L121: Thread.sleep(1000L); L122: } L123: final long usedMemory = MemoryUtil.getUsedMemory(); L124: assertTrue(usedMemory + " < " + current + " + " + margin + ", " + MemoryUtil.getMemoryUsageLog(), usedMemory < current + margin); L125: } L126: L127: private...
    github.com/codelibs/fess/src/test/java/org/code...
    Thu Oct 24 13:01:38 UTC 2024
      41.3K bytes
Back to top