public class MemoryLeakUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JERSEY_CONFIG_TEST_CONTAINER_CONTEXT_ROOT
The context root where the deployed application will be accessible.
|
static String |
JERSEY_CONFIG_TEST_CONTAINER_LOGFILE
The log file where the output (stdout/stderr) of container is located.
|
static String |
JERSEY_CONFIG_TEST_MEMLEAK_HEAP_DUMP_PATH
The path where to create heap dump files.
|
static String |
JERSEY_CONFIG_TEST_MEMLEAK_TIMEOUT
The memory leak timeout denotes successful end of the memory leak test.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
verifyNoOutOfMemoryOccurred()
Scans the file denoted by
JERSEY_CONFIG_TEST_CONTAINER_LOGFILE for OutOfMemoryError records. |
public static final String JERSEY_CONFIG_TEST_CONTAINER_LOGFILE
OutOfMemoryError exception records.public static final String JERSEY_CONFIG_TEST_MEMLEAK_TIMEOUT
public static final String JERSEY_CONFIG_TEST_CONTAINER_CONTEXT_ROOT
public static final String JERSEY_CONFIG_TEST_MEMLEAK_HEAP_DUMP_PATH
public static void verifyNoOutOfMemoryOccurred()
throws IOException
JERSEY_CONFIG_TEST_CONTAINER_LOGFILE for OutOfMemoryError records.IOException - In case of I/O error.IllegalStateException - In case the OutOfMemoryError record was found.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.