| | |
| | | import static org.opends.messages.BackendMessages.*; |
| | | import static org.opends.messages.ConfigMessages.*; |
| | | import static org.opends.messages.JebMessages.*; |
| | | import static org.opends.server.loggers.ErrorLogger.*; |
| | | |
| | | /** |
| | | * This class maps JE properties to configuration attributes. |
| | |
| | | int cpus = Runtime.getRuntime().availableProcessors(); |
| | | value = Integer.valueOf(Math.max(24, cpus * 2)); |
| | | |
| | | LocalizableMessage message = |
| | | INFO_ERGONOMIC_SIZING_OF_JE_CLEANER_THREADS.get(String |
| | | logger.debug(INFO_ERGONOMIC_SIZING_OF_JE_CLEANER_THREADS, String |
| | | .valueOf(cfg.dn().rdn().getAttributeValue(0)), |
| | | (Number) value); |
| | | logError(message); |
| | | } |
| | | else if (attrName.equals(ATTR_NUM_LOCK_TABLES) |
| | | && value == null) |
| | |
| | | BigInteger tmp = BigInteger.valueOf((cleaners + workers) * 2); |
| | | value = tmp.nextProbablePrime(); |
| | | |
| | | LocalizableMessage message = |
| | | INFO_ERGONOMIC_SIZING_OF_JE_LOCK_TABLES.get(String |
| | | logger.debug(INFO_ERGONOMIC_SIZING_OF_JE_LOCK_TABLES, String |
| | | .valueOf(cfg.dn().rdn().getAttributeValue(0)), |
| | | (Number) value); |
| | | logError(message); |
| | | } |
| | | |
| | | return String.valueOf(value); |