SharePoint-Lösung läuft ewig - SharePoint 2007

Ich bin mit folgenden Skripte zum installieren/deinstallieren einer Lösung

Deinstallieren.bat

@echo off

echo *****************************************************
echo Un-Installing <solution>  - 
echo (C) <company>. All rights reserved.
echo *****************************************************

set stsadm="%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm.exe"

echo Retracing solution.wsp
%stsadm% -o retractsolution -name solution.wsp -immediate -allContentURLs

%stsadm% -o execadmsvcjobs

echo Wait till the solution retraction is completed (check the central administration)
pause

echo Deleting solution from the solution store
%stsadm% -o deletesolution -name solution.wsp -override

%stsadm% -o execadmsvcjobs

echo - Restarting WSS Timer service
net stop "windows sharepoint services timer"
net start "windows sharepoint services timer"

echo Uninstallation completed successfully

echo.
pause

Installieren.bat

@echo off
set STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe"

echo *****************************************************
echo Installing <solution>  - 
echo (C) <company>. All rights reserved.
echo *****************************************************

echo Adding solution.wsp to the solution store
%STSADM% -o addsolution -filename solution.wsp

echo Deploying solution
%STSADM% -o deploysolution -name solution.wsp -force -immediate -allowGacDeployment -allContentURLs

%STSADM% -o execadmsvcjobs

echo Installation completed successfully

IISRESET

Restarting SharePoint Timer Service..

NET STOP SPTIMERV3
NET START SPTIMERV3

REM echo copying resources..
REM %STSADM% -o copyappbincontent

echo.
pause

Aber die installieren.Fledermaus steckt in execadmsvcjobs nach der Bereitstellung. Wenn ich überprüft den TaskManager die CPU-Auslastung Spikes bis zu 100% und STSADM.EXE und OWSTIMER.EXE war verbraucht viel Speicher. So wird die Bereitstellung läuft ewig.

Irgendwelche Ideen?

  • was war die Lösung in deinem Fall
  • Dieses stackoverflow.com/questions/4646646/... wurde das Problem und die Ursache für den server sehr langsam. Habe ich eine statische variable in die Funktion, event-handler und verhindert, dass sich die mehrfach aufgerufen wird.
InformationsquelleAutor NLV | 2011-01-10
Schreibe einen Kommentar