• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • None
    • Platform: PC, OS: All

      Our Hudson builds a .war file of about 100MB. Sending this artifact from the
      slave to the master over Gbit ethernet takes about 2 or 3 minutes. Gbit
      ethernet should do this in about 1 second theoreticly. Practicly scp takes
      about 4 seconds to copy 100MB.

      I made this testcase.
      -> New freestyle build -> Add build step 'Execute Shell' -> enter 'dd if=/dev/
      urandom of=this_is_big.bin bs=1M count=100' -> Archive artifacts
      'this_is_big.bin' -> Schedule at slave -> dd takes about 45 seconds -> job
      takes about 3 minutes.

      ngrep shows me a lot of serialized java stuff, but very little effective data
      is send per packet.

      I'm using Hudson 1.300 for master and slave.
      I hope people can reproduce and fix it.

          [JENKINS-3524] sending artifacts to master is very slow

          Ronald Klop added a comment -

          I forgot to mention:
          java -version
          java version "1.6.0_04"
          Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
          Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

          Linux linux15 2.6.22.18-rw5 #1 SMP Thu Mar 6 15:10:11 CET 2008 i686 GNU/Linux

          Ronald Klop added a comment - I forgot to mention: java -version java version "1.6.0_04" Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode) Linux linux15 2.6.22.18-rw5 #1 SMP Thu Mar 6 15:10:11 CET 2008 i686 GNU/Linux

          rexc added a comment -

          I have a similar slow issue with copying artifacts from slave to master.

          The master is version 1.299 on FreeBSD with java 1.6, under tomcat
          The slave is a Mac OS X 10.4 with JVM of 1.5

          rexc added a comment - I have a similar slow issue with copying artifacts from slave to master. The master is version 1.299 on FreeBSD with java 1.6, under tomcat The slave is a Mac OS X 10.4 with JVM of 1.5

          Ronald Klop added a comment -

          Created an attachment (id=679)
          print the number of bytes send to the master

          Ronald Klop added a comment - Created an attachment (id=679) print the number of bytes send to the master

          Ronald Klop added a comment -

          My patch displays the nr of bytes (in the byte[] in the Chunk) send in the
          Channel.
          The output while sending the artifact from the testcase is a lot of lines
          repeating like this:
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 14
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512
          channel write nr of bytes: 512

          So, this is not a lot of bytes at once.

          Ronald Klop added a comment - My patch displays the nr of bytes (in the byte[] in the Chunk) send in the Channel. The output while sending the artifact from the testcase is a lot of lines repeating like this: channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 14 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 channel write nr of bytes: 512 So, this is not a lot of bytes at once.

          Ronald Klop added a comment -

          It is better since 1.302.
          Still scp copies the file in 3 seconds and hudson in 30 seconds, but it is a
          lot better than a couple of minutes to copy the file.

          Ronald Klop added a comment - It is better since 1.302. Still scp copies the file in 3 seconds and hudson in 30 seconds, but it is a lot better than a couple of minutes to copy the file.

          thedotedge added a comment -

          1.313 on CentOS 5.2, the speed is around 30kBps vs around 450kBps via scp.
          It's still better, but still very slow.

          thedotedge added a comment - 1.313 on CentOS 5.2, the speed is around 30kBps vs around 450kBps via scp. It's still better, but still very slow.

          mistafunk added a comment - - edited

          a year passed... i run 1.369 and i still observe high copy times for a 250mb artifact from osx slave to linux master (2-3 hours!)... a manual scp shows ~20mb/s and it takes a couple of seconds

          mistafunk added a comment - - edited a year passed... i run 1.369 and i still observe high copy times for a 250mb artifact from osx slave to linux master (2-3 hours!)... a manual scp shows ~20mb/s and it takes a couple of seconds

            Unassigned Unassigned
            javakoe Ronald Klop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: