Skip to Content
author's profile photo Former Member
Former Member

Detect server node processing a http request

Is there any way to detect which server node is answering a http request? For debug purposes I would like to add the cluster element to the output of a jsp. Maybe it is also possible to force a jsp being processed by a given node?

Thanks in advance for your answers!

Best regards,

Frank

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 11, 2005 at 01:55 PM

    Hi Frank,

    Yes you can trace session cookies in order to understand which server node is answering.

    If you want to force a jsp being processed by a given node you may add before parameters the following:

    saplb_*=(<instance-id>)<server-id>

    More about J2EE Engine cookies you can see here:

    http://help.sap.com/saphelp_nw04/helpdata/en/5b/ac1a0a8b8d6b4da3b79a7fe0aeabd8/content.htm

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Violeta,

      Thanks for your answer! This has been very helpful indeed.

      However, I´m still a bit puzzled. Replacing the saplb cookie forces the load balancer to use the given server, but the JSESSIONID does not change. Looking at the application data I know that I´m talking to a different server, but I still don´t seem to have a way to tell which server ansered - except my expectation that the saplb cookie might have been taken into account by the server.

      Isn´t there a more sophisticated way to access this kind of information? Escpecially, getting a list of all available servers would be great, as this would allow to choose the server having a look at.

      Best regards,

      Frank

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.