mirror of https://github.com/Jackett/Jackett
Print ThreadPool config during startup
This commit is contained in:
parent
0d8c446b74
commit
e885a88189
|
@ -23,6 +23,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
|
@ -157,6 +158,18 @@ namespace Jackett.Services
|
||||||
logger.Info("Environment version: " + Environment.Version.ToString() + " (" + runtimedir + ")");
|
logger.Info("Environment version: " + Environment.Version.ToString() + " (" + runtimedir + ")");
|
||||||
logger.Info("OS version: " + Environment.OSVersion.ToString() + (Environment.Is64BitOperatingSystem ? " (64bit OS)" : "") + (Environment.Is64BitProcess ? " (64bit process)" : ""));
|
logger.Info("OS version: " + Environment.OSVersion.ToString() + (Environment.Is64BitOperatingSystem ? " (64bit OS)" : "") + (Environment.Is64BitProcess ? " (64bit process)" : ""));
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
int workerThreads;
|
||||||
|
int completionPortThreads;
|
||||||
|
ThreadPool.GetMaxThreads(out workerThreads, out completionPortThreads);
|
||||||
|
logger.Info("ThreadPool MaxThreads: " + workerThreads + " workerThreads, " + completionPortThreads + " completionPortThreads");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
logger.Error("Error while getting MaxThreads details: " + e);
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var issuefile = "/etc/issue";
|
var issuefile = "/etc/issue";
|
||||||
|
|
Loading…
Reference in New Issue