Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7831291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:39:46+00:00 2026-06-02T11:39:46+00:00

How can I write a script or otherwise simulate about 100 users connection to

  • 0

How can I write a script or otherwise simulate about 100
users connection to my own ftp server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:39:50+00:00Added an answer on June 2, 2026 at 11:39 am

    You can prepare a simple Java code.

    First, you have to decide how these requests arrive to your server. I.e., completely random, one per minute, following a normal distribution or more likely an exponential distribution.

    Then, you have to use a thread that has:

    1. A method to make an ftp connection (e.g. ftpCall())
    2. A method to get the x milliseconds to the next FTP call (e.g. getTimeToNext())

    After an FTP call, the method has to stay in sleep for x milliseconds before to make the next call. Here is the outline of the code in Java

    public class FTPTest{
      class MyFTPThread{
          private int numberOfCall=100;
    
          private void ftpCall() {
            //DO CONNECTION
          }
    
    
          private long void getTimeToNext() {
            //RETURN A RANDOM TIME OR A FIXED VALUE
          }
    
          public void run(){
            int counter = 0;
            while(++counter <= numberOfCall){
              ftpCall();
              this.sleep(getTimeToNext());
            }
          }
      }
    
      public static void main(String [] args){
        MyFTPThread t = new MyFTPThread();
        t.start();
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would one write a sql server DDL script that can: For each table
I'm trying to figure out if I can write an automatic script/function/event in SQL
Can someone write a PHP script that reproduces the functionality of this linux shell
I am attempting to write a script that can retrieve the HTML from my
How can I write text entities to a dxf file? I found a script
I want to write a script in AutoIt, which can take automatic input from
I am trying to write a PHP script that can upload multiple files. for($i=0;$i<count($_FILES['uploadimg']['name']);$i++){
Can someone explain why this script throws an exception? $byteArray = @(1,2,3) write-Output (
Javascript can manipulate the document the browser is displaying, so the following: <script> document.write(<table><tr><td>Hola</td><td>Adios</td></tr></table>);
I have a server that I can ssh into but that's it. Otherwise it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.