Day Tips:Search CPU 100%

Powershell:Set-SPEnterpriseSearchService -PerformanceLevel Reduced

   

   

   

Specifies the relative number of threads for the crawl component performance:

Reduced: Total number of threads = number of processors, Max Threads/host = number of processors

Partly Reduced: Total number of threads = 4 times the number of processors , Max Threads/host = 16 time the number of processors

Maximum: Total number of threads = number of processors

The type must be one of the following values: Reduced,PartlyReduced, or Maximum

转载于:https://www.cnblogs.com/Believeme/p/3430091.html

@echo off setlocal enabledelayedexpansion :Main cls :: 日期可以带星期,但是,必须以年月日的顺序排列 :: 年份必须是四位,否则会出错 set day=%date% set days=0 echo.&echo. echo 指定的日期是:%day% echo. rem 指定要追溯的天数 set input=5 :: 提取日期 for /f "tokens=1-3 delims=-/. " %%i in ("%day%") do ( set /a sy=%%i, sm=100%%j %% 100, sd=100%%k %% 100 ) set /a sd-=input if %sd% leq 0 call :count cls echo.&echo. echo 指定的日期是:%day% echo. set sm=0%sm% set sd=0%sd% set olddt=%sy%%sm:~-2%%sd:~-2% echo %input% 天前的日期是:%olddt% set yyyy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% rem set /a currdt= yyyy*10000+mm*100+dd set currdt=%date:~0,4%%date:~5,2%%date:~8,2% echo 当前日期是:%currdt% set dt=%date:~0,4%_%date:~5,2%%date:~8,2% REM 把 : 都替换成 -,空格替换成0 set dt=%dt::=-% set dt=%dt: =0% mkdir D:\bf\%currdt% echo 开始备份:%currdt% expdp systemcore/systemcore@ABCD dumpfile=expdp%dt%.dmp logfile=expdp.log full=y copy /y D:\bf\expdp.dmp D:\bf\%currdt%\\ copy /y D:\bf\expdp.log D:\bf\%currdt%\\ del/f/q D:\bf\expdp.dmp del/f/q D:\bf\expdp.log echo 删除过期备份: %olddt% rd D:\bf\%olddt% /s /q goto :eof :count set /a sm-=1 if !sm! equ 0 set /a sm=12, sy-=1 call :days set /a sd+=days if %sd% leq 0 goto count goto :eof :days :: 获取指定月份的总天数 set /a leap="^!(sy %% 4) & ^!(^!(sy %% 100)) | ^!(sy %% 400)" set /a max=28+leap set num=0 set str=31 %max% 31 30 31 30 31 31 30 31 30 31 for %%i in (%str%) do ( set /a num+=1 if %sm% equ !num! set days=%%i&goto :eof ) goto :eof --是这样加吗?
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值