sasikumar has asked for the wisdom of the Perl Monks concerning the following question:

Hi, can any one tell me how to use perl to contact weblogic server and get the response from which i can know the time to respond. Thanks in advance sasi kumar
  • Comment on how to use perl to send a request to weblogic server and determine the time to response

Replies are listed 'Best First'.
Re: how to use perl to send a request to weblogic server and determine the time to response
by Tomte (Priest) on Apr 01, 2004 at 12:02 UTC

    Funny, I'm about to write a similar test; I think I'll use LWP::UserAgent and Time::HiRes to do the job. I'll compare response-times of different servers to see if our cms has response-time-problems under load, or if a colleague just abuses our dsl-connection :)

    regards,
    tomte


    Hlade's Law:

    If you have a difficult task, give it to a lazy person --
    they will find an easier way to do it.

Re: how to use perl to send a request to weblogic server and determine the time to response
by Tomte (Priest) on Apr 01, 2004 at 15:40 UTC

    Here you go, my first shot, should get you started for your measurements. Pay attention to the following points:

    • don't trust times to the millisecond, they depend on what your computer is doing else
    • this is tested but will still contain errors of differing severity , it's just to get you started
    • If you operate with this using a "comparison-host", as I do, note that the pages should be of nearly the same size, to get a feel for what's going on by looking at the numbers directly...
    • The code:

      I'm grateful for comments on this, if this is completely braindamaged or if you spot an error,...

      regards,
      tomte


      Hlade's Law:

      If you have a difficult task, give it to a lazy person --
      they will find an easier way to do it.

How to monitor Weblogic
by blue_cowdawg (Monsignor) on Apr 01, 2004 at 14:35 UTC

    Of more interest to me and I'm not even sure it is doable is writing a script that profiles database pool use in a weblogic server by application. I have a weblogic environment that keeps blowing up due to running out of database connection pools.


    Peter L. Berghold -- Unix Professional
    Peter at Berghold dot Net
       Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice.