ThreadPool#isLowOnThreads() if Connector#getExecutor() is
an instance of ThreadPool and setMonitorThreads(boolean) is true.setMaxMemory(long) is non zero then low resources is detected if the JVMs
Runtime instance has Runtime#totalMemory() minus Runtime#freeMemory()
greater than getMaxMemory()| Modifier and Type | Class and Description |
|---|---|
| public class | |
| public static interface | |
| private static class | |
| public class | |
| public class | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private boolean | |
| private final AtomicBoolean | |
| private Set | |
| private int | |
| private long | |
| private int | |
| private final Runnable | |
| private Connector[] | |
| private int | |
| private String | |
| private Scheduler | |
| protected final Server | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected void | doStart()
Overrides org. |
| protected void | doStop()
Overrides org. |
| protected boolean | |
| public Set | |
| public int | |
| public String | |
| public long | |
| public int | |
| public long | |
| public Collection | |
| protected Connector[] | |
| public boolean | |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| protected String | |
| protected void | |
| public void | |
| public void | |
| protected void | |
| public void | setLowResourcesIdleTimeout(int
The timeout in ms to apply to EndPoints when in the low resources state. lowResourcesIdleTimeoutMS)
|
| protected void | |
| public void | |
| public void | setMaxLowResourcesTime(int
The time in milliseconds that a low resource state can persist before the low resource idle timeout is reapplied to all connections maxLowResourcesTimeMS)
|
| public void | setMaxMemory(long
The maximum memory in bytes in use before low resources is triggered. maxMemoryBytes)
|
| public void | setMonitoredConnectors(Collection<Connector>
The collections of Connectors that should be monitored for low resources. monitoredConnectors)
|
| public void | setMonitorThreads(boolean
If true, check connectors executors to see if they are
monitorThreads)ThreadPool instances that are low on threads.
|
| public void | |
| protected void |
| _acceptingConnectors | back to summary |
|---|---|
| private Set<AbstractConnector> _acceptingConnectors | |
| _acceptingInLowResources | back to summary |
|---|---|
| private boolean _acceptingInLowResources | |
| _low | back to summary |
|---|---|
| private final AtomicBoolean _low | |
| _lowResourceChecks | back to summary |
|---|---|
| private Set<LowResourceMonitor. | |
| _lowResourcesIdleTimeout | back to summary |
|---|---|
| private int _lowResourcesIdleTimeout | |
| _lowStarted | back to summary |
|---|---|
| private long _lowStarted | |
| _maxLowResourcesTime | back to summary |
|---|---|
| private int _maxLowResourcesTime | |
| _monitor | back to summary |
|---|---|
| private final Runnable _monitor | |
| _monitoredConnectors | back to summary |
|---|---|
| private Connector[] _monitoredConnectors | |
| _period | back to summary |
|---|---|
| private int _period | |
| _reasons | back to summary |
|---|---|
| private String _reasons | |
| _scheduler | back to summary |
|---|---|
| private Scheduler _scheduler | |
| _server | back to summary |
|---|---|
| protected final Server _server | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| LowResourceMonitor | back to summary |
|---|---|
| public LowResourceMonitor(Server server) | |
| addLowResourceCheck | back to summary |
|---|---|
| public void addLowResourceCheck(LowResourceMonitor. | |
| clearLowResources | back to summary |
|---|---|
| protected void clearLowResources() | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| enableLowOnResources | back to summary |
|---|---|
| protected boolean enableLowOnResources(boolean expectedValue, boolean newValue) | |
| getLowResourceChecks | back to summary |
|---|---|
| public Set | |
| getLowResourcesIdleTimeout | back to summary |
|---|---|
public int getLowResourcesIdleTimeout()
| |
| getLowResourcesReasons | back to summary |
|---|---|
public String getLowResourcesReasons()
| |
| getLowResourcesStarted | back to summary |
|---|---|
public long getLowResourcesStarted()
| |
| getMaxLowResourcesTime | back to summary |
|---|---|
public int getMaxLowResourcesTime()
| |
| getMaxMemory | back to summary |
|---|---|
public long getMaxMemory()
| |
| getMonitoredConnectors | back to summary |
|---|---|
public Collection
| |
| getMonitoredOrServerConnectors | back to summary |
|---|---|
| protected Connector[] getMonitoredOrServerConnectors() | |
| getMonitorThreads | back to summary |
|---|---|
public boolean getMonitorThreads()
| |
| getPeriod | back to summary |
|---|---|
public int getPeriod()
| |
| getReasons | back to summary |
|---|---|
public String getReasons()
| |
| isAcceptingInLowResources | back to summary |
|---|---|
public boolean isAcceptingInLowResources()
| |
| isLowOnResources | back to summary |
|---|---|
public boolean isLowOnResources()
| |
| low | back to summary |
|---|---|
| protected String low(String reasons, String newReason) | |
| monitor | back to summary |
|---|---|
| protected void monitor() | |
| setAcceptingInLowResources | back to summary |
|---|---|
| public void setAcceptingInLowResources(boolean acceptingInLowResources) | |
| setLowResourceChecks | back to summary |
|---|---|
| public void setLowResourceChecks(Set<LowResourceMonitor. | |
| setLowResources | back to summary |
|---|---|
| protected void setLowResources() | |
| setLowResourcesIdleTimeout | back to summary |
|---|---|
public void setLowResourcesIdleTimeout(int lowResourcesIdleTimeoutMS)
| |
| setLowResourcesReasons | back to summary |
|---|---|
| protected void setLowResourcesReasons(String reasons) | |
| setLowResourcesStarted | back to summary |
|---|---|
| public void setLowResourcesStarted(long lowStarted) | |
| setMaxLowResourcesTime | back to summary |
|---|---|
public void setMaxLowResourcesTime(int maxLowResourcesTimeMS)
| |
| setMaxMemory | back to summary |
|---|---|
public void setMaxMemory(long maxMemoryBytes)
| |
| setMonitoredConnectors | back to summary |
|---|---|
public void setMonitoredConnectors(Collection<Connector> monitoredConnectors)
| |
| setMonitorThreads | back to summary |
|---|---|
public void setMonitorThreads(boolean monitorThreads)
| |
| setPeriod | back to summary |
|---|---|
public void setPeriod(int periodMS)
| |
| setReasons | back to summary |
|---|---|
| protected void setReasons(String reasons) | |
| Access | Constructor and Description |
|---|---|
| public |
| reason | back to summary |
|---|---|
| private String reason | |
| ConnectorsThreadPoolLowResourceCheck | back to summary |
|---|---|
| public ConnectorsThreadPoolLowResourceCheck() | |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |
| isLowOnResources | back to summary |
|---|---|
| public boolean isLowOnResources() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean |
| getReason | back to summary |
|---|---|
| public String getReason() | |
| isLowOnResources | back to summary |
|---|---|
| public boolean isLowOnResources() | |
| Access | Constructor and Description |
|---|---|
| private |
| LRMScheduler | back to summary |
|---|---|
| private LRMScheduler() | |
| Access | Constructor and Description |
|---|---|
| public |
| reason | back to summary |
|---|---|
| private String reason | |
| MainThreadPoolLowResourceCheck | back to summary |
|---|---|
| public MainThreadPoolLowResourceCheck() | |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |
| isLowOnResources | back to summary |
|---|---|
| public boolean isLowOnResources() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| maxConnections | back to summary |
|---|---|
| private int maxConnections | |
| reason | back to summary |
|---|---|
| private String reason | |
| MaxConnectionsLowResourceCheck | back to summary |
|---|---|
| public MaxConnectionsLowResourceCheck(int maxConnections) | |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |
| isLowOnResources | back to summary |
|---|---|
| public boolean isLowOnResources() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public String | |
| public boolean | |
| public void | setMaxMemory(long
The maximum memory in bytes in use before low resources is triggered. maxMemoryBytes)
|
| public String |
| maxMemory | back to summary |
|---|---|
| private long maxMemory | |
| reason | back to summary |
|---|---|
| private String reason | |
| MemoryLowResourceCheck | back to summary |
|---|---|
| public MemoryLowResourceCheck(long maxMemory) | |
| getMaxMemory | back to summary |
|---|---|
| public long getMaxMemory() | |
| getReason | back to summary |
|---|---|
| public String getReason() Implements org.
| |
| isLowOnResources | back to summary |
|---|---|
| public boolean isLowOnResources() Implements org.
| |
| setMaxMemory | back to summary |
|---|---|
public void setMaxMemory(long maxMemoryBytes)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |