Professional Web Applications Themes

trying to create a daemon - PERL Beginners

Hi all, I am a relative newbie and I need to write a small web server load tester. I know there are many tools out there, but I would like to write a simple script that can login to a webserver, connect to port (whatever port number i give it) and do a 'wget https://blah.blah.com :9091". While the first part is quite easy, ie writing a perl script to do a wget from the server, creating this as a daemon, running many processes simultaneously ie. I would like to run 200 to 300 processes, as each process would act like ...

  1. #1

    Default trying to create a daemon

    Hi all,
    I am a relative newbie and I need to write a small web server load tester.

    I know there are many tools out there, but I would like to write a simple
    script that can login to a webserver, connect to port (whatever port
    number i give it) and do a 'wget https://blah.blah.com :9091".

    While the first part is quite easy, ie writing a perl script to do a wget
    from the server, creating this as a daemon, running many processes
    simultaneously ie. I would like to run 200 to 300 processes, as each
    process would act like a session, stressing the webserver.

    The hard part is having the original perl script fork out processes. I've
    been reading up on fork and signals. does anybody have some suggestions on
    how i can do this?

    Thx,
    Radhika



    --
    It's all a matter of perspective. You can choose your view by choosing
    where to stand.
    Larry Wall
    ---
    Radhika Guest

  2. #2

    Default Re: trying to create a daemon

    On Mon, 11 Oct 2004, Radhika Sambamurti wrote:
     

    That is to say, you're going to use LWP's modules to do HTTP gets all
    within Perl, rather than running an external program like wget.

    Right? :-)

    <http://www.oreilly.com/openbook/webclient/ch05.html>

    As for the other stuff, unfortunately, I'm not as up on that as I wish I
    were. I'm sure someone more knowledgeable will chime in though...


    --
    Chris Devers
    Chris Guest

  3. #3

    Default Re: trying to create a daemon

    > Hi all, 

    I knew something similar had already been written, checking Google
    turned up a very good candidate.

    http://stein.cshl.org/~lstein/torture/

    Of course if I were to reinvent this wheel, I would probably do it using
    POE, http://poe.perl.org

    HTH,

    http://danconia.org

    Wiggins Guest

  4. #4

    Default Re: trying to create a daemon



    ----- Original Message -----
    From: Radhika Sambamurti <com>
    Date: Monday, October 11, 2004 9:52 am
    Subject: trying to create a daemon
     
    A good module would be Parallel-ForkManager. It can manage alot off basic IPC for you.
     

    mgoland@optonline.net Guest

  5. #5

    Default Re: trying to create a daemon

    :) Right. I actually did'nt think of it, but now that you mention it, yes.
    thx. 
    >
    > That is to say, you're going to use LWP's modules to do HTTP gets all
    > within Perl, rather than running an external program like wget.
    >
    > Right? :-)
    >
    > <http://www.oreilly.com/openbook/webclient/ch05.html>
    >
    > As for the other stuff, unfortunately, I'm not as up on that as I wish I
    > were. I'm sure someone more knowledgeable will chime in though...
    >
    >
    > --
    > Chris Devers
    >
    > --
    > To unsubscribe, e-mail: org
    > For additional commands, e-mail: org
    > <http://learn.perl.org/> <http://learn.perl.org/first-response>
    >
    >
    >[/ref]


    --
    It's all a matter of perspective. You can choose your view by choosing
    where to stand.
    Larry Wall
    ---
    Radhika Guest

Similar Threads

  1. daemon??
    By David Carter in forum FreeBSD
    Replies: 2
    Last Post: February 23rd, 02:20 PM
  2. Trying to create a Ruby daemon
    By Samuel in forum Ruby
    Replies: 10
    Last Post: December 11th, 12:09 PM
  3. Replies: 2
    Last Post: September 15th, 08:36 AM
  4. FTP Daemon...
    By Simran in forum PERL Beginners
    Replies: 2
    Last Post: September 5th, 04:53 AM
  5. Daemon
    By solex in forum ASP
    Replies: 0
    Last Post: July 31st, 07:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139