3 Replies Latest reply on Apr 24, 2014 11:12 AM by gimbal2

    best data upload protocol.

    Kashif Iftikhar

      HI Everyone,

       

      We are managing a JSP based application in which we uploads data using HTTP Protocol. Daily data uploads are in GB's. the problems that we are facing are:-

       

      1. Memory Heap size.
      2. Request timeout errors of our web server.
      3. No Resume support in case of network error.

       

      Now we want to upgrade our application to get following benefits:-

       

      1. Get rid of above mention problems.
      2. Reduce data upload time.
      3. Resume support in case of network errors.

       

      I have following questions in this regard:-

       

      What should be the Data upload protocol ? HTTP OR FTP.

      What should be the Application interface for data uploading module ? like Java Applet, JSP OR Java Desktop application etc .

      To resolve Memory Heap size errors we are using cronjob to restart web server, is it OK ? OR there is some other batter solutions for this.

       

      Your value able advice is required to make correct decision.

       

      Regards.

        • 1. Re: best data upload protocol.
          gimbal2

          There is no best. What CAN you use? If FTP is an option (and make it SFTP) then of course go for that, then you don't have to be bothered by the clunky HTTP file upload.

           

          > What should be the Application interface for data uploading module

          How about a proper existing SFTP client? There is absolutely no reason at all why that should be anything Java related.


          > To resolve Memory Heap size errors we are using cronjob to restart web server, is it OK ? OR there is some other batter solutions for this.

          How about finding and solving the source of your memory leaks?

          • 2. Re: best data upload protocol.
            Kashif Iftikhar

            Thanks Gimbal2 for your valuable advice. Im serching net for the following:-

             

            1. How to find memory leaks.
            2. use com.jcraft.jsch package to upload files along with a database entry for uploaded file record.
            • 3. Re: best data upload protocol.
              gimbal2

              Note that the JSCH api is poorly documented but the (source?) download package contains example programs and unit tests which demonstrate how to use all the features.