diff options
author | Justin Clark-Casey (justincc) | 2014-11-21 01:44:30 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:23:11 +0000 |
commit | 59b38f842af4a1ad81e24b132948481e75004d6d (patch) | |
tree | f1b7e7262595bb4d80d3192a40c98ecd84012360 | |
parent | Move conditionals which control whether a task is placed in the JobEngine ins... (diff) | |
download | opensim-SC_OLD-59b38f842af4a1ad81e24b132948481e75004d6d.zip opensim-SC_OLD-59b38f842af4a1ad81e24b132948481e75004d6d.tar.gz opensim-SC_OLD-59b38f842af4a1ad81e24b132948481e75004d6d.tar.bz2 opensim-SC_OLD-59b38f842af4a1ad81e24b132948481e75004d6d.tar.xz |
Add [Startup] JobEngineEnabled setting that allows the job engine to be disabled for testing purposes if necessary.
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 4 | ||||
-rw-r--r-- | bin/OpenSimDefaults.ini | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 20401f1..6a7291c 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -337,7 +337,9 @@ namespace OpenSim | |||
337 | { | 337 | { |
338 | // Called from base.StartUp() | 338 | // Called from base.StartUp() |
339 | 339 | ||
340 | Watchdog.JobEngine.Start(); | 340 | IConfig startupConfig = Config.Configs["Startup"]; |
341 | if (startupConfig != null && startupConfig.GetBoolean("JobEngineEnabled", true)) | ||
342 | Watchdog.JobEngine.Start(); | ||
341 | 343 | ||
342 | m_httpServerPort = m_networkServersInfo.HttpListenerPort; | 344 | m_httpServerPort = m_networkServersInfo.HttpListenerPort; |
343 | SceneManager.OnRestartSim += HandleRestartRegion; | 345 | SceneManager.OnRestartSim += HandleRestartRegion; |
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index e89fa0a..3e9514e 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini | |||
@@ -67,6 +67,10 @@ | |||
67 | ; when running with the SmartThreadPool option above | 67 | ; when running with the SmartThreadPool option above |
68 | MaxPoolThreads = 300 | 68 | MaxPoolThreads = 300 |
69 | 69 | ||
70 | ; Allow certain jobs to be run consecutively in a job engine rather than always concurrently. | ||
71 | ; This improves performance in regions with large numbers of connections (in the hundreds). | ||
72 | JobEngineEnabled = true | ||
73 | |||
70 | ; Plugin Registry Location | 74 | ; Plugin Registry Location |
71 | ; Set path to directory for plugin registry. Information about the | 75 | ; Set path to directory for plugin registry. Information about the |
72 | ; registered repositories and installed plugins will be stored here. | 76 | ; registered repositories and installed plugins will be stored here. |