Menu

If run STAF service on another machine is very slow, what's the possible reason?

mindy liu
2013-10-14
2013-10-15
  • mindy liu

    mindy liu - 2013-10-14

    We have 2 boxes, and run STAX xml on one machine, but seems the speed to fs GET FILE from another machine is very, but we ftp seems faster. why? what's the possible reasons?

    thanks!

     
  • Sharon Lucas

    Sharon Lucas - 2013-10-15

    The STAF FS service does not claim to copy files at the same speed as other tools, such as using FTP. If your TCP network performance is slow at the time when the STAX job is running a FS COPY request copying a file from one machine to another, then that will affect the speed of the FS COPY request.

    I need more information about your environment when you say that a FS COPY request submitted by a STAX job is "slow":
    1) What is the operating system of the machine where you are copying the file from?
    2) What is the operating system of the machine where you are copying the file to?
    3) What is the operating system of the machine where you submitting the FS COPY request (e.g. the STAX service machine if you're using a STAX job to submit the STAF FS COPY request)? Is this the same system as the machine where your are copying the file from, or to, or a different system?
    4) What is the exact FS COPY request that you are submitting? And are you using the IP address or hostname or 'local' for the <location> element in the <stafcmd> that is submitting the FS COPY request? And are you specifying the TOMACHINE option in your FS COPY request and if so, what are you specifying for it?

    Note that in regards the TOMACHINE option, it is described in section "8.5 File System (FS) Service", sub-section "8.5.2 COPY FILE" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV as follows:

    TOMACHINE specifies the machine to copy the file to. This defaults to the machine which originated the request. Specifying local indicates to copy the file to the same machine that the file is being copied from. Note that specifying local instead of the from machine's host name can significantly improve performance, especially if your TCP network performance is slow. This is because local (or local://local) indicates to use the local network interface versus specifying a TCP host name or IP address which indicates to use the TCP network interface.

     

Log in to post a comment.