src/org/jnetpcap/nio/JMemory.java
public static long softDirectMemory() {
		if (directMemorySoft != 0) {
			return directMemorySoft;
		}

		Properties p = System.getProperties();
		String s = p.getProperty("org.jnetsoft.nio.SoftDirectMemorySize");
		s = (s == null) ? p.getProperty("nio.SoftDirectMemorySize") : s;
		s = (s == null) ? p.getProperty("org.jnetsoft.nio.ms") : s;
		s = (s == null) ? p.getProperty("nio.ms") : s;

		if (s != null) {
			directMemorySoft = parseSize(s); // process suffixes kb,mb,gb,tb
		}

		if (directMemorySoft == 0) {
			directMemorySoft = maxDirectMemory();
		}

		return directMemorySoft;
	}
/**
	 * Returns the soft limit for native memory allocation. When the soft memory
	 * allocation limit is reached, memory continues to be allocated without
	 * interruption or blocking. At the same the a JVM GC request is issued to
	 * start collecting unused objects and potentially cleanup memory. The JVM GC
	 * request may be repeated while the current memory allocation is above this
	 * soft limit, but is limited to a minimum delay between consecutive JVM GC
	 * requests. This process continues until memory allocation falls below this
	 * soft limit or the hard 'nio.mx' limit is reached.
	 * <p>
	 * This limit can be set at startup of the application using the following
	 * system properties, which are checked in the order listed below:
	 * <ol>
	 * <li><code>org.jnetsoft.nio.SoftDirectMemorySize</code>
	 * <li><code>nio.SoftDirectMemorySize</code>
	 * <li><code>org.jnetsoft.nio.ms</code>
	 * <li><code>nio.ms</code>
	 * </ol>
	 * The different property names, from the most fully qualified to the least,
	 * are provided to property name conflict resolution. For convenience, it is
	 * recommended that the user choose the least qualified property name to use.
	 * In the unlikely event that another library within the same runtime
	 * application uses the same property name, one of the more qualified (or
	 * longer) property names can be used to resolve the conflict.
	 * </p>
	 * 
	 * @return the amount of memory, in bytes, before we start requesting a
	 *         forcible JVM GC.
	 */
Returns the soft limit for native memory allocation. When the soft memory
allocation limit is reached, memory continues to be allocated without
interruption or blocking. At the same the a JVM GC request is issued to
start collecting unused objects and potentially cleanup memory. The JVM GC
request may be repeated while the current memory allocation is above this
soft limit, but is limited to a minimum delay between consecutive JVM GC
requests. This process continues until memory allocation falls below this
soft limit or the hard 'nio.mx' limit is reached.

This limit can be set at startup of the application using the following
system properties, which are checked in the order listed below:

org.jnetsoft.nio.SoftDirectMemorySize
nio.SoftDirectMemorySize
org.jnetsoft.nio.ms
nio.ms

The different property names, from the most fully qualified to the least,
are provided to property name conflict resolution. For convenience, it is
recommended that the user choose the least qualified property name to use.
In the unlikely event that another library within the same runtime
application uses the same property name, one of the more qualified (or
longer) property names can be used to resolve the conflict.

@return the amount of memory, in bytes, before we start requesting a
forcible JVM GC.
Returns the soft limit for native memory allocation . When the soft memory allocation limit is reached memory continues to be allocated without interruption or blocking . At the same the a JVM GC request is issued to start collecting unused objects and potentially cleanup memory . The JVM GC request may be repeated while the current memory allocation is above this soft limit but is limited to a minimum delay between consecutive JVM GC requests . This process continues until memory allocation falls below this soft limit or the hard ' nio . mx ' limit is reached . This limit can be set at startup of the application using the following system properties which are checked in the order listed below : org . jnetsoft . nio . SoftDirectMemorySize nio . SoftDirectMemorySize org . jnetsoft . nio . ms nio . ms The different property names from the most fully qualified to the least are provided to property name conflict resolution . For convenience it is recommended that the user choose the least qualified property name to use . In the unlikely event that another library within the same runtime application uses the same property name one of the more qualified ( or longer ) property names can be used to resolve the conflict . @return the amount of memory in bytes before we start requesting a forcible JVM GC .
public static long softDirectMemory() {
		if (directMemorySoft != 0) {
			return directMemorySoft;
		}
		Properties p = System.getProperties();
		String s = p.getProperty("org.jnetsoft.nio.SoftDirectMemorySize");
		s = (s == null) ? p.getProperty("nio.SoftDirectMemorySize") : s;
		s = (s == null) ? p.getProperty("org.jnetsoft.nio.ms") : s;
		s = (s == null) ? p.getProperty("nio.ms") : s;
		if (s != null) {
			directMemorySoft = parseSize(s); 
		}
		if (directMemorySoft == 0) {
			directMemorySoft = maxDirectMemory();
		}
		return directMemorySoft;
	}
public static long softDirectMemory ( ) { if ( directMemorySoft != 0 ) { return directMemorySoft ; } Properties p = System . getProperties ( ) ; String s = p . getProperty ( "org.jnetsoft.nio.SoftDirectMemorySize" ) ; s = ( s == null ) ? p . getProperty ( "nio.SoftDirectMemorySize" ) : s ; s = ( s == null ) ? p . getProperty ( "org.jnetsoft.nio.ms" ) : s ; s = ( s == null ) ? p . getProperty ( "nio.ms" ) : s ; if ( s != null ) { directMemorySoft = parseSize ( s ) ; } if ( directMemorySoft == 0 ) { directMemorySoft = maxDirectMemory ( ) ; } return directMemorySoft ; }
Returns the soft limit for native memory allocation.
Returns the soft limit for native memory allocation .
// process suffixes kb,mb,gb,tb