A remote server runs code terribley slow

Hello,
I'm in an odd development situation. I write code on my local
dev server, which gets handed off to someone else's dev server that
tests it before putting it up live. I have NO direct access to the
remote servers and upload my files by emailing them over
individually with instructions on where to place them. (I warned
you it was odd).
I've written a small search page which does the following:
does a verity search, if a result is not cached then the file is
parsed then the information is cached. It sorts the results, then
displays them. It caches by serializing a struct of structs using
wddx.
On my local server this works almost instantaneously,
literally half a second for the largest "all" search, but on the
remote server it TIMES OUT! Doing searches (that run near instantly
locally) for less items takes upwards of 2 full minutes.
The error that coldfusion throws is that cffile write is
timing out. (It rewrites the cache if it finds new files in the
results).
The code is identical on both my local, and the remote
server.
I'm a little clueless as to why this is happening, and my
background has never been in coldfusion before. If anyone could
shed any light on why this is happening, or where to look to figure
out why it's happening, it would be greatly appreciated!
Thank you so much for any help you can give.

Kronin, you bring up a good point, and that has been the main
focus I've had so far. In my local environment I am searching
through roughly 1100 files. The Cache file i'm making comes out to
about 800KB. In the remote environment I'm only searching through
roughly 2000 files, and I am assuming that the cache is growing at
the same rate.
These aren't terribly big numbers I'm working with, even the
oldest hardware should be able to pull this off without a hitch.
Even if cffile loads it into memory first, there would surely be
1MB of memory available, and if not a swap shouldn't take long
enough to cause a time out.
Keep the ideas coming though :)

Similar Messages

  • Installing & Running PDFgServlet Add-on On Remote Server

    I'm using CF11 Developer Edition.
    Installed PDFgServlet on a remote server.
    Using CFAdministrator on my Developer Edition, can VERIFY the remote PDF Service Manager.
    But when I go and try to use the cfhtmltopdf tag on my Developer Edition, I get CANNOT CONNECT TO SERVER.
    I go to the remote server running PDFgServlet, can see response code 200's when I verify the PDF Service Manager "GET /PDFgServlet/verify HTTP/1.1" 200 0
    But I get "POST /PDFgServlet/ HTTP/1.1" 400 1407 when I try to use the tag
    If I switch back to my local copy, I get the PDF rendered.
    Any thoughts?

    It seems you don't have ColdFusion datasource there on your
    remote server where you have hosted your application.
    Go to CF Admin and create it and map it to your database like
    that of your local box.
    Thanks

  • How to embed a .vi as a web page on a remote server

    I use a remote server running a Plone content management system application to allow remote users connect via the internet and store data files (delimited text files) for later analysis .
    I am using Labview 7.0
    I wish to change our current data analysis process:
    the process now:
    1) go to the web site via an internet connection (this is a site served by a remote 3rd party server running a Plone instance)
    2) download the data to a local PC
    3) run the data analysis .vi on the local PC (the .vi prompts the user for the location of the data file, the user browses to the location on the local hard drive and then the .vi graphs the data and generates the results)
    the desired new process:
    1) using a smartphone or similar web enabled PDA go to the web site where the user can remotely control an embedded data analysis .vi
    2) the remotely served .vi prompts the user for the url location of the data file and then the .vi graphs the data and generates the results
    My questions:
    A) How do I get the data analysis .vi loaded onto the remote server?  (I just don't see how to do this with the web publishing tool, maybe it is not possible?)
    B) Will the remote server require other software such as Labview RTE?
    Thanks,
    Bernie

    Bernie,
    I would install and configure an FTP-Server on the computer that runs your analysis.VI.
    Users can upload data via FTP to that computer. (That way, they should know the absolute path to that file.)
    Enable your analysis.VI to read data from the local disk.
    Make your analysis.VI a remote panel and configure LabVIEW WebServer options accordingly.
    Users now can connect to the remote panel and specify which data file the remote panel should read.
    The remote panel then generates the results and displays them on the front panel.
    Does it match your demands?
    Guenter

  • Import.py runs fine locally, but fails on the remote server

    I have the following import.py file (from The Definitive Guide to SOA Oracle Service Bus), which I am calling from an ANT script. It runs fine when I include the parameters for the server running on my machine, but when I change the params to our test server, it connects to the server, but can't create a session. I will include the output of both runs as well. The test server runs on a cluster. Does that make a difference?
    LOCAL OUTPUT:
    Buildfile: C:\Dev\bea\ALSB\crash_alsb\build.xml
    local.import:
    [echo] importscript: import.py
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] Loading Deployment config from : local.import.properties
    [java] Connecting to t3://localhost:7001 with userid weblogic ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'alsb_domain'.
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java] Attempting to import : crash-alsb-20090205.jar on ALSB Admin Server listening on : t3://localhost:7001
    [java] Read file crash-alsb-20090205.jar
    [java] Created session name SessionScript1236884174250
    [java] finding service...
    [java] creating session...
    [java] return SessionMBean...
    [java] SessionMBean started session
    [java] ALSBConfiguration MBean found [MBeanServerInvocationHandler]com.bea:Name=ALSBConfiguration.SessionScript1236884174250,Type=com.bea.wli.sb.management.configuration.ALSBConfigurationMBean
    [java] Jar Uploaded
    [java] ALSB project crash_alsb will get overlaid
    [java] Default importPlan
    [java] Update Archive crash_alsb/crash-alsb-20090205
    [java] Update Archive crash_alsb/crash-config
    [java] Update WSDL crash_alsb/resources/wsdls/crash-jxdm-20070731
    [java] Update BusinessService crash_alsb/business/crash-20090305
    [java] Update ProxyService crash_alsb/proxy/crash-jxdm-20090305
    [java] Update Archive crash_alsb/export
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 22900920>
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 23950494>
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 16994189>
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 6011310>
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 33251361>
    [java] got a ref TypeId of <method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 6566192>
    [java] Modified importPlan
    [java] Update Archive crash_alsb/crash-alsb-20090205
    [java] Update Archive crash_alsb/crash-config
    [java] Update WSDL crash_alsb/resources/wsdls/crash-jxdm-20070731
    [java] Update BusinessService crash_alsb/business/crash-20090305
    [java] Update ProxyService crash_alsb/proxy/crash-jxdm-20090305
    [java] Update Archive crash_alsb/export
    [java] Deployment of : crash-alsb-20090205.jar successful
    BUILD SUCCESSFUL
    Total time: 8 seconds
    TEST SERVER OUTPUT:
    Buildfile: C:\Dev\bea\ALSB\crash_alsb\build.xml
    remote.import:
    [echo] importscript: import.py
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] Loading Deployment config from : remote.import.properties
    [java] Connecting to http://<IP removed>:7001 with userid <userid removed> ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'WL-DEV'.
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java] Attempting to import : crash-alsb-20090205.jar on ALSB Admin Server listening on : http://<IP removed>:7001
    [java] Read file crash-alsb-20090205.jar
    [java] Created session name SessionScript1236884107843
    [java] finding service...
    [java] null returned from findService method.
    [java] creating session...
    [java] Unexpected error: exceptions.AttributeError
    [java] Unexpected error: exceptions.AttributeError
    [java] No stack trace available.
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 212, in ?
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 130, in importToALSBDomain
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 197, in getSessionMBean
    [java] AttributeError: 'None' object has no attribute 'createSession'
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 14 seconds
    import.py
    from java.util import HashMap
    from java.util import HashSet
    from java.util import ArrayList
    from java.io import FileInputStream
    #from com.bea.wli.config import TypeIds
    from com.bea.wli.sb.util import Refs
    from com.bea.wli.config.customization import Customization
    from com.bea.wli.sb.management.importexport import ALSBImportOperation
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    import sys
    #=======================================================================================
    # Entry function to deploy project configuration and resources
    # into a ALSB domain
    #=======================================================================================
    def importToALSBDomain(importConfigFile):
    try:
    SessionMBean = None
    print 'Loading Deployment config from :', importConfigFile
    exportConfigProp = loadProps(importConfigFile)
    adminUrl = exportConfigProp.get("adminUrl")
    importUser = exportConfigProp.get("importUser")
    importPassword = exportConfigProp.get("importPassword")
    importJar = exportConfigProp.get("importJar")
    customFile = exportConfigProp.get("customizationFile")
    passphrase = exportConfigProp.get("passphrase")
    project = exportConfigProp.get("project")
    connectToServer(importUser, importPassword, adminUrl)
    print 'Attempting to import :', importJar, "on ALSB Admin Server listening on :", adminUrl
    theBytes = readBinaryFile(importJar)
    print 'Read file', importJar
    sessionName = createSessionName()
    print 'Created session name ', sessionName
    SessionMBean = getSessionMBean(sessionName)
    print 'SessionMBean started session'
    ALSBConfigurationMBean = findService(String("ALSBConfiguration.").concat(sessionName), "com.bea.wli.sb.management.configuration.ALSBConfigurationMBean")
    print "ALSBConfiguration MBean found", ALSBConfigurationMBean
    ALSBConfigurationMBean.uploadJarFile(theBytes)
    print 'Jar Uploaded'
    if project == None:
    print 'No project specified, additive deployment performed'
    importResult = ALSBConfigurationMBean.importUploaded(None, false, true, passphrase)
    SessionMBean.commitSession(sessionName)
    else:
    print 'ALSB project', project, 'will get overlaid'
    alsbJarInfo = ALSBConfigurationMBean.getImportJarInfo()
    alsbImportPlan = alsbJarInfo.getDefaultImportPlan()
    alsbImportPlan.setPassphrase(passphrase)
    operationMap=HashMap()
    operationMap = alsbImportPlan.getOperations()
    print
    print 'Default importPlan'
    printOpMap(operationMap)
    set = operationMap.entrySet()
    alsbImportPlan.setPreserveExistingEnvValues(true)
    #boolean
    abort = false
    #list of created ref
    createdRef = ArrayList()
    for entry in set:
    ref = entry.getKey()
    op = entry.getValue()
    #set different logic based on the resource type
    type = ref.getTypeId
    print 'got a ref TypeId of ', type
    if type == Refs.SERVICE_ACCOUNT_TYPE or type == Refs.SERVICE_PROVIDER_TYPE:
    if op.getOperation() == ALSBImportOperation.Operation.Create:
    print 'Unable to import a service account or a service provider on a target system', ref
    abort = true
    elif op.getOperation() == ALSBImportOperation.Operation.Create:
    #keep the list of created resources
    createdRef.add(ref)
    if abort == true :
    print 'This jar must be imported manually to resolve the service account and service provider dependencies'
    SessionMBean.discardSession(sessionName)
    raise
    print
    print 'Modified importPlan'
    printOpMap(operationMap)
    importResult = ALSBConfigurationMBean.importUploaded(alsbImportPlan)
    printDiagMap(importResult.getImportDiagnostics())
    if importResult.getFailed().isEmpty() == false:
    print 'One or more resources could not be imported properly'
    raise
    #customize if a customization file is specified
    #affects only the created resources
    if customFile != None :
    print 'Loading customization File', customFile
    print 'Customization applied to the created resources only', createdRef
    iStream = FileInputStream(customFile)
    customizationList = Customization.fromXML(iStream)
    filteredCustomizationList = ArrayList()
    setRef = HashSet(createdRef)
    # apply a filter to all the customizations to narrow the target to the created resources
    for customization in customizationList:
    print customization
    newcustomization = customization.clone(setRef)
    filteredCustomizationList.add(newcustomization)
    ALSBConfigurationMBean.customize(filteredCustomizationList)
    #SessionMBean.commitSession(sessionName)
    SessionMBean.activateSession(sessionName,"active session from import.py")
    print "Deployment of : " + importJar + " successful"
    except:
    print "Unexpected error:", sys.exc_info()[0]
    if SessionMBean != None:
    SessionMBean.discardSession(sessionName)
    raise
    #=======================================================================================
    # Utility function to print the list of operations
    #=======================================================================================
    def printOpMap(map):
    set = map.entrySet()
    for entry in set:
    op = entry.getValue()
    print op.getOperation(),
    ref = entry.getKey()
    print ref
    print
    #=======================================================================================
    # Utility function to print the diagnostics
    #=======================================================================================
    def printDiagMap(map):
    set = map.entrySet()
    for entry in set:
    diag = entry.getValue().toString()
    print diag
    print
    #=======================================================================================
    # Utility function to load properties from a config file
    #=======================================================================================
    def loadProps(configPropFile):
    propInputStream = FileInputStream(configPropFile)
    configProps = Properties()
    configProps.load(propInputStream)
    return configProps
    #=======================================================================================
    # Connect to the Admin Server
    #=======================================================================================
    def connectToServer(username, password, url):
    connect(username, password, url)
    domainRuntime()
    #=======================================================================================
    # Utility function to read a binary file
    #=======================================================================================
    def readBinaryFile(fileName):
    file = open(fileName, 'rb')
    bytes = file.read()
    return bytes
    #=======================================================================================
    # Utility function to create an arbitrary session name
    #=======================================================================================
    def createSessionName():
    sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    return sessionName
    #=======================================================================================
    # Utility function to load a session MBeans
    #=======================================================================================
    def getSessionMBean(sessionName):
    #SessionMBean = findService("Session","com.bea.wli.config.mbeans.SessionMBean")
    print "finding service..."
    SessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    if SessionMBean == None:
    print "null returned from findService method."
    print "creating session..."
    SessionMBean.createSession(sessionName)
    print "return SessionMBean..."
    return SessionMBean
    # IMPORT script init
    try:
    # import the service bus configuration
    # argv[1] is the export config properties file
    importToALSBDomain(sys.argv[1])
    except:
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise

    Your Template code is messed up.
    Use the code validation tools below and fix reported errors.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Then post your Revised Template.dwt code.  Once the editable regions are positioned properly,  your child pages should perform better.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • EJB doesn’t respond with BPEL running on the same remote server

    To all,
    I have a BPEL transformation (XSL) calling a remote EJB. It worked with the BPEL process running on the BPEL Designer or in the local host. However if I deploy and run the same BPEL process to the remote server (i.e. the EJB and the BPEL reside in the same server), the EJB doesn’t seem to respond. The process runs fine but just does have the values from the EJB. Where should I look and debug this problem?
    Here is some more information about the EJB: I have the XSL calls a User Defined Extension component. This component calls a Java utility program in turn calls an EJB client (i.e. Business Delegate). The EJB client calls a Session bean (Session Façade) in turn calls two Entity beans. I packaged the codes in two jars: the EJB and the EJB client in one jar and Java utility programs in another jar.
    I deployed the EJB in EAR using the JDeveloper to the remote BPEL server. I FTPed the two JAR files into <ORACLE_HOME>/j2ee/OC4J_BPEL/applib in the remote server. After the deployment, I test the transformation either from BPEL Designer and BPEL local host. They both access the remote EJB successfully. However if I deploy the BPEL process to the remote server and run it from the remote server, the EJB doesn’t seem to respond. All the functions worked correctly except there is no value from the EJB. Any advice will be appreciated.

    Try the following, in order, until (hopefully) resolved:
    1a. Delete Preferred Network(s)
    System Preferences > Network > Wi-Fi > Advanced > Wi-Fi tab
    Under "Preferred Networks," delete the network(s) you regularly use from the list.
    1b. Delete AirPort Keychain Entries
    Launch the "Keychain Access" application located in Applications/Utilties.
    In the windows on the left side: Select login for Keychains and "All Items" for Category.
    Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
    1c. Add Preferred Network(s)
    System Preferences > Network > Wi-Fi > Advanced > Wi-Fi tab
    Add the preferred network(s) using the "+" button.
    Restart or log out then back in.
    2. Move System Configuration Files
    (Note: You will have to reestablish your network connections settings.)
    Go to /Library/Preferences
    Move the SystemConfiguration folder to the desktop.
    Restart your Mac. (Note: OS X will rebuild the files that are now sitting on your desktop. If this doesn't resolve the issue, you can move the folder back to it's original location.)

  • VI server runs slower under LV 7

    Has anyone noticed VI server running slower under LabView 7 than 6.1?
    I use a "Call By Reference Node" to programatically run a VI. This call seems to take at least a factor of three longer in LV 7 than 6.1. The code in each LV version is exactly the same.
    Attachments:
    call_mods.vi ‏48 KB

    Yes,
    I have noticed that some of the functions of the VI Server as well as particular property nodes are a lot slower in LabVIEW 7 vs. LabVIEW 6. For instance, if you get the caption labels from a nested control (inside a cluster or array) it will take significantly longer than a regular control on the front panel. The further a control is buried, the longer it takes. I am not sure how to solve the problem though.
    Kevin Shirey
    PVI Systems Inc.
    Certified LabVIEW Developer

  • Connecting to remote server slows down computer

    We've been connecting to a remote server for years, and only recently have this problem:
    When connected to a remote server, the entire system runs sluggish. This only happens with one remote server -- other connections don't cause this problem. The system is slow even if we are not reading or writing -- just the connection seems to cause the slowdown.
    What could be causing this?

    You need to enable WinRM on your system. Open powershell on the system you want to connect to remotely and enable it by typing:
    C:>enable-psremoting -force
    WinRM already is set up to receive requests on this machine.
    WinRM has been updated for remote management.
    Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
    This will configure WinRM for you. Check out this technet powershell training session.
    http://technet.microsoft.com/en-au/events/ee676904.aspx
    ref: http://social.technet.microsoft.com/Forums/en/ITCG/thread/54417b48-68ae-40ac-a303-74aed4e7e81a
    Satyam MCITP, MCPD

  • Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2

    Remote App and Desktop RDP client never succeed to logon the RDS gateway server running Windows 2012R2
    1. Client Os : Windows 7 Pro
    2. Server OS : Windows Server 2012R2 with RDS broker and RDS Gateway server with 3.part Certificate  with friendly name sky.mti-itservice.no activated.
    The  main problem is following: The RDP logon session never ends
    Any ideas ?
    Regards
    Kenneth Knudsen
    Email : [email protected]
    mvh Kenneth Knudsen MCSE 2003 HP ASE

    Hi Kenneth,
    Here for your case suggest you to configure RDP session time limit so that your user can disconnect\log off once the specific time limit reached.
    You can setup the session time limit in different method.
    1. Open the Server Manager, select Remote Desktop Services.
    2. In Remote desktop Services, in right side you can drop down to collections.
    3. Select the collection which you want to edit the settings.
    4. Under collections Properties, select Task and then Edit Properties.
    5. In Properties dialog box, select Session.
    6. You can find all thetimeout settings under session collection properties; edit according to your requirements and then OK. 
    And apart also by group policy setting as below.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits 
    -  Set time limit for disconnected sessions
    -  Set time limit for active but idle Remote Desktop Services sessions
    -  Set time limit for active Remote Desktop Services sessions
    -  End session when time limits are reached
    Please check which setting suitable for your environment and you can apply for your case.
    [Forum FAQ] Restrict number of Active Sessions in RDS 2012 and 2012 R2
    https://social.technet.microsoft.com/Forums/en-US/00c2252b-8ec0-489f-8da2-07a434a9b5a2/forum-faq-restrict-number-of-active-sessions-in-rds-2012-and-2012-r2?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    how do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    killall "Remote Desktop"
    Regards.

  • How can you run a command with elevated rights on a remote server with invoke-command ?

    I am trying to run a script on a remote server with invoke-command.  The script is starting and is running fine, but the problem is that it should be running with elevated rights on the remote server.  On the server where I start the invoke-command, my account has the necessary rights.
    The server were I launch the invoke-command is a W2K8 R2.  The remote box is a W2K3 with powershell v2.0 installed.
    When I launch the script on the remote-box from the command line, I don't get the access denied's.
    Is there a way to do this ?
    Thanks in advance

    The script that I want to run is to install the windows updates.  I get an access denied on the download of the updates.
    When I execute the script on an W2K8 box, (not remotely) and I run it with non-elevated rights, I get the same error.
    The script is running fine when it is launched on W2K3 box locally with a domain account that has local admin rights, or on a W2K8 R2 server with a domain account that has local admin rights, but with elevated rights.
    Thanks in advance for your help.
    #=== start script ====
    param($installOption="TESTINSTALL",$rebootOption="NOREBOOT")
    Function Show-Help
    Write-Host ""
    Write-Host "SCRIPT: $scriptName <installOption> <RebootOption>"
    Write-Host ""
    Write-Host "DESCRIPTION: Installatie van WSUS updates op de lokale server"
    Write-Host ""
    Write-Host "PARAMETERS"
    Write-Host " -installOption <[INSTALL|TESTINSTALL]>"
    Write-Host " -rebootOption <[REBOOT|NOREBOOT|REBOOT_IF_UPDATED]>"
    Write-Host ""
    Write-Host "EXAMPLE:"
    Write-Host "$ScriptName -installOption INSTALL -rebootOption REBOOT_IF_UPDATED"
    Write-Host "$ScriptNAme INSTALL NOREBOOT"
    Write-Host ""
    Write-Host "Indien beide parameter weggelaten worden zijn de defaultwaarden :"
    Write-Host " installOption=TESTINSTALL "
    Write-Host " RebootOption=NOREBOOT"
    Write-Host ""
    Exit
    #Include alle globale variablen
    $CEIF_WIN_PATH = (get-content env:CEIF_WIN_PATH)
    $includeFile=$CEIF_WIN_PATH + "\Scripts\include_win.ps1"
    . $includeFile
    #initialiseer error count
    $errcnt=0
    $scriptName=$MyInvocation.MyCommand.Name
    #argumenten controleren
    $arrInstallOption= "TESTINSTALL", "INSTALL" # Mandatory variable with predefined values
    If (!($arrInstallOption –contains $installOption)){ Show-Help }
    $arrRebootOption = "REBOOT", "NOREBOOT","REBOOT_IF_UPDATED" # Mandatory variable with predefined values
    If (!($arrRebootOption –contains $rebootOption)){ Show-Help }
    #Logfile opbouwen
    $logfile = get-logfileName($MyInvocation.MyCommand.Name)
    Log-scriptStart $MyInvocation.MyCommand.Name $logfile
    function Get-WIAStatusValue($value)
    switch -exact ($value)
    0 {"NotStarted"}
    1 {"InProgress"}
    2 {"Succeeded"}
    3 {"SucceededWithErrors"}
    4 {"Failed"}
    5 {"Aborted"}
    function boot-server()
    if ($installOption -eq "TESTINSTALL")
    logger "TESTINSTALL : - Reboot local Server" $logfile
    else
    logger " - Reboot local Server" $logfile
    $thisServer = gwmi win32_operatingsystem
    $thisServer.psbase.Scope.Options.EnablePrivileges = $true
    $thisServer.Reboot()
    $logmsg="Install option = " + $installOption + ", RebootOption = $rebootOption"
    logger "$logmsg" $logfile
    logger "" $logfile
    logger " - Creating WU COM object" $logfile
    $UpdateSession = New-Object -ComObject Microsoft.Update.Session
    $UpdateSearcher = $UpdateSession.CreateUpdateSearcher()
    logger " - Searching for Updates" $logfile
    $SearchResult = $UpdateSearcher.Search("IsAssigned=1 and IsHidden=0 and IsInstalled=0")
    logger " - Found [$($SearchResult.Updates.count)] Updates to Download and install" $logfile
    $Updates=$($SearchResult.Updates.count)
    logger "" $logfile
    foreach($Update in $SearchResult.Updates)
    if ($Update.EulaAccepted -eq 0)
    $Update.AcceptEula()
    # Add Update to Collection
    $UpdatesCollection = New-Object -ComObject Microsoft.Update.UpdateColl
    $UpdatesCollection.Add($Update) | out-null
    if ($installOption -eq "TESTINSTALL")
    else
    # Download
    logger " + Downloading Update $($Update.Title)" $logfile
    $UpdatesDownloader = $UpdateSession.CreateUpdateDownloader()
    $UpdatesDownloader.Updates = $UpdatesCollection
    $DownloadResult = $UpdatesDownloader.Download()
    $Message = " - Download {0}" -f (Get-WIAStatusValue $DownloadResult.ResultCode)
    if ($DownloadResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    # Install
    logger " - Installing Update" $logfile
    $UpdatesInstaller = $UpdateSession.CreateUpdateInstaller()
    $UpdatesInstaller.Updates = $UpdatesCollection
    $InstallResult = $UpdatesInstaller.Install()
    $Message = " - Install {0}" -f (Get-WIAStatusValue $InstallResult.ResultCode)
    if ($InstallResult.ResultCode -eq 4 )
    { $errcnt = 1 }
    logger $message $logfile
    logger "" $logfile
    #Indien er een fout gebeurde tijdens download/installatie -> stuur mail naar windowsteam
    if ( $errcnt -gt 0 )
    logger " - Fout tijdens de uitvoering van script -> send mail" $logfile
    $mailSubject=$MyInvocation.MyCommand.Name
    $msg = new-object Net.Mail.MailMessage
    $att = new-object Net.Mail.Attachment($logfile)
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = $mailFrom
    $msg.To.Add($mailTo)
    $msg.Subject = $mailSubject
    $msg.Body = “Meer details in attachement”
    $msg.Attachments.Add($att)
    $smtp.Send($msg)
    #Moet de server herstart worden ?
    if ($rebootOption -eq "REBOOT_IF_UPDATED" )
    if ($Updates -gt 0)
    #Reboot the server when updates are installed
    boot-server
    elseif ($rebootOption -eq "REBOOT")
    #reboot the server always
    boot-server
    else
    #Do not reboot the server
    logger "Do not reboot the server" $logfile
    Log-scriptEnd $MyInvocation.MyCommand.Name $logfile
    exit 0

  • Mail, Server Admin, MySQL running very, very slow

    Hi all,
    I have this Leopard Server on a Mac Mini and I experience some big bottlenecks on mail services (especially webmail), Server Admin connections (both local and remote), and also connections with mySQL clients (remote). Local MySQL is working fine. It is not the same for mail and Server Admin. They are very slow also for local connections. Any idea? Hint: I'm using a USB-ethernet adapter (from Apple) for my public IP's (I have 2 of them) and I use built-in ethernet for local network. I've switched them, I tried only with the built-in ethernet... no change. Please help... my enthusiasm about this server solution is getting lower and lower... Thank you very much

    pterobyte wrote:
    Have a look at system.log and mailaccess.log for clues to begin with.
    Server Admin is usually slow (locally and remotely) when the DNS (forward and reverse) setup is not correct.
    Since mySQL seems to have only problems when used remotely, I'd look at bandwidth, routers and switches involved.
    Is mail only slow when used via webmail or via any IMAP client?
    You're a genius as usually
    It seems that I removed my reverse zone accidentally... I didn't even think to look at DNS setting before you told me... Thank you very much

  • The Remote server returned an error (404) not found in SharePoint Client Context code

    Hi All,
    I am getting an error with below line.
    "The Remote server returned an error (404) not found"
    It occurs when I am trying to fetch some data from SharePoint 2010 List.
    For eg. I have a webpart in which i am showing some content on page load and that content is coming from a List.
    But I am getting error.
    Screen shot for your reference.

     Here is my code:
       ClientContext context1 = new ClientContext("site url");
                context1.AuthenticationMode = ClientAuthenticationMode.Anonymous;
                List list1 = context1.Web.Lists.GetByTitle("List1");
                CamlQuery query1 = new CamlQuery();
                query1.ViewXml = @"<Query><Query><OrderBy><FieldRef Name='Title' Ascending='True' /></OrderBy>      
       </Query></Query>";
                Microsoft.SharePoint.Client.ListItemCollection listCollection1 = list1.GetItems(query1);
                context1.Load(listCollection1);
                context1.ExecuteQuery();  
               Even i removed the line no. 2 from above code and placed below but still same issue.
               context1.Credentials = new NetworkCredential("user", "password", "domain");
    Hope someone will solve my issue here.

  • REP-0177: An error occurred while running in a remote server.

    I am getting the following errors while trying to run a report script.  The report was created in Report Builder.
    REP-0177: An error occurred while running in a remote server.
    Reference parameter OT_RUN_DATE in the distribution list is invalid.
    OT_RUN_DATE is a static field converting SYSDATE to a string (TO_CHAR(SYSDATE, 'YYYYMMDD')).  Unfortunately, I inherited this report and did not create it.  I do not know what purpose it serves but would like more insight into what the reference parameter and distribution list mean.
    REP-0177: An error occurred while running in a remote server.
    Too many errors pushed on the stack
    I assume this is related to the first error but am not certain.
    Any help is greatly appreciated...

    Michel,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Running a report using rwcli60 on a remote server

    hi
    I have a concurrent program which runs a 6i report. The output of this report is a PDF file which is then faxed to a set of users.
    The report srever is not on the same unix box as the unix shell script which is the executable of the concurrent program. I am aware that rwcli60 can be used to run reports for non web based results.
    I am not sure how to do this on a remote server. i.e how do I run teh report on the report server from the concurrent manager server?
    Any ideas? please help.
    thanks
    satya

    can use rsh to connect to remote server.

  • Bdc performance in "No screen" mode, on slow network, on remote server.

    Hi,
    We have created a bdc program in ABAP.
    say, our servers are installed in US. and our users are trying to execute bdc by uploading a data file from UK.
    consider that the connectivity(network) between our US office and UK office is not so goood.
    i understand that the upload of the data file will take time. but after the upload, for bdc execution, how the bdc performance gets impacted by the network performance.
    if we execute the bdc in All screen mode, i am convinced that the bdc will definetly will take a long time to execute, becasue UK user needs to press "Enter" several no. of times, and so many pings will happen to the server.
    if we execute the bdc in No Screen mode, does it meen it is completely background process.
    i mean in this case also, is the screen info passed to and from between the server(US) and the sapgui(UK).
    or
    once the data upload is over, in  No Screen mode, the entire activity is done in server, and the control comes back to sapgui at the end.
    We have put some logs, and we found that most of the time is taken by the CALL TRANSACTION statement
    CALL TRANSACTION 'PP01' USING it_bdcdata
    is there any other points to improve the bdc execution on a remote server.
    thanks in advance,
    Madhu_1980

    Hi Sandra ,
    Thanks for your suggestion throiugh the link.
    Had checked the trouble shooting for  BDC : but the scenario in which i experienc eth eproblem is little different.
    Well the Interface to create vendors was working perfectly in ALL Screen as well as NO-SCREEN mode.
    But a small requirement seem to change its execution.
    The Interface had a commented code snippet : retrieve email address from ADR6 table. Now according to the new requirement this code snippet needs to be utilized. So i uncommented that and duly passed th etable entries into the concerned screen (the code for that screen aldready exsits in the recording but not utilized since the retrieval was commented)
    Collects the email address for any vendor from ADr6 table
    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    now for linking the above created vendor, FK02 BDC is maintained. In this BDC the payment transaction screen is used to link payee vendors (above created vendor)  at company code level for any principal vendors (selected from lfa1 and lfb1 table). So only two screens for linking .
    this entire code was working perfect in both A mode and  N mode  but after including the ADR6 code snippet i dont find teh similar execution in N mode.
    Could you please guide me where could i ahve made some mistake.
    thanks
    Kylie
    Edited by: kylietisha on Jun 6, 2010 5:27 PM
    Edited by: kylietisha on Jun 6, 2010 5:42 PM
    Edited by: Rob Burbank on Jun 6, 2010 4:33 PM

Maybe you are looking for

  • Hi i have problem in my account

    hi i have problem in my account I Tsat secret question for the account and I want to use in the procurement process from iTunes didnot  send email to Rest

  • Which color management monitor?

    I shoot digital product and food photography using a mac powerbook. I've been using a LaCie CRT (yes, I said CRT) monitor for fine tuning my photos. It has finally started acting up so I'm ready for a new monitor. Can anyone recommend a dependable mo

  • How to use Application Roles with Entity Framework

    How does one call sp_setapprole before a connection used by an Entity Framework object context closes, since the context opens and closes its own connection automatically, as needed? The only relevant event available on a store connection (DbConnecti

  • Parent - Details Relations

    Hi All, I have created 2tables,and i have registerd the Table as well as columns and primary column. I have inserted manually into DB ,in fornt end when i try to query the relation is working fine. i have created 2sequences for header level & detail

  • Security update 20006-006 & printer problems

    Since installing the security update I can't use my Epson PRO 7600 to print ouy PS CS or VW, none of my custom pages work. I stays at a single page selection. any suggestions. I have reinstalled The epson driver, repaired Permissions. How do I get ri