HTTP Return Code Checking on ACE

Hey there.
I have a question regarding return code checking for a serverfarm on ACE. I am looking to have the ability to monitor a client's session real-time and monitor return codes passing back from the origin servers to the client.
For example, if during a client's session there is a single HTTP 500 error code sent from server to client, the intercept that response and first retry the request on a different server in the farm. Or perhaps only if I see three 500 error codes in 30 seconds. Something like that.
From what I can tell from the docs the retcode check command for a serverfarm is maybe only for statistical purposes?
Thanks for any help.
/ahuffer/

In ACE return codes checking is only used to count number of return codes from Rservers. Unlike CSMs (where return codes were used for inband health monitoring) ACE is not using them for load balancing or inband health
monitoring. Once you enable return code checking and counting you can then display the return code statistics per serverfarm
for example
serverfarm host serverfarm1
retcode 200 499 check count
rserver real1
inservice
rserver real2
inservice
show serverfarm serverfarm1 retcode
serverfarm : serverfarm1
rserver : real1
np : 1
return code action total count
+------------+--------+------------+
200 count 100
201 count 0
202 count 0
203 count 0
204 count 0
205 count 0
206 count 0
498 count 0
499 count 0
Syed

Similar Messages

  • CSM HTTP return code checking

    Hey again.
    I have been looking into the CSM return code checking feature as suggested by this forum. This is a little closer to what I am looking for but I have question about what happens when there is a failure.
    If a 500 code for HTTP is seen three times, for example, and the server is removed from the farm, is the original request from the client tried on the next server? Or is a reset sent back to the client, or the original code, and the client must try again.
    I am trying to understand if the client will notice if the CSM noticed X number of a particular error and removed the server from the farm.
    Thanks for any help!
    /ahuffer/

    I think you are mixing two things up(Inband health monitoring & HTTP return code checking).
    The "Inband health monitoring" feature checks for both RSTs from a server and the failure of the server to respond to a SYN. If a SYN ACK response to a SYN is not received,the TCP portion of the code will perform several retries of a SYN before timing it out.
    It is configured as follows
    CSM(config-module-csm)# serverfarm xyz
    CSM(config-slb-sfarm)# health retries 10 failed 50
    (Retries are the number of abnormal end sessions that the CSM will tolerate before removing a real server from service. The failed time is the number of seconds that the CSM waits before reattempting a connection to a real server that was removed from service by inband health checking.)
    "HTTP Return Code checking" is the CSM feature that can be configured to take a server out of use in response to receiving specific return codes.
    When HTTP return code checking is configured, the CSM monitors HTTP responses from all balanced HTTP connections and logs the occurrence of the return code for each real server. The CSM stores return code counts. When a threshold for a return code is reached, the CSM may send syslog messages or remove the server from service.
    Unlike "Inband Health monitoring", "Http Return code checking" feature has a small (estimated in 10-15%) impact on CPS setup rate, since it requires parsing L5 information in the server-to-client direction.
    If the server is taken out of service, Client's request will be loadbalanced among available servers.
    Syed
    Syed

  • Is there a way to direct requests based on HTTP return-code checking?

    I'd like to implement a policy based on return-code. The algorithm is as below,
    If HTTP return-code == 500 to 600
    serverfarm1
    else
    serverfarm2
    We have a CSM V3.2. Can someone tell me if this is doable? If yes, would you please tell me how.
    Appreciation, Q.Xie

    The solution I suggested is still what I recommend.
    What you have to do is split your serverfarm in multiples instances. One for HTTP and another one for the rest of your applications. Or you could do one for each application.
    The serverfarm for HTTP will have the HTTP probe and will go down when the response is 500-600.
    The other serverfarm(s) will not use the same HTTP probe and should not go down based on the response code.
    ie:
    serverfarm WEB
    real 10.10.10.10
    ins
    real 20.20.20.20
    ins
    probe http
    serverm ALL
    real 10.10.10.10
    ins
    real 20.20.20.20
    ins
    no probe
    vserver web
    vip 1.1.1.1 tcp 80
    serverfarm WEB backup WEB_B
    vserver all
    vip 1.1.1.1 any
    serverfarm ALL
    Hope this helps.
    Gilles.
    Thanks for rating this answer.

  • HTTP Return Code on CSM causes IP Sticky does not work

    I have CSM running on 3.1(1a).
    I configured HTTP Return Code Checking:
    map HTTPCHECK retcode
    match protocol http retcode 404 404 action remove 5 reset 60
    And apply it to the following web server serverfarm:
    serverfarm DCMSWEB
    nat server
    no nat client
    predictor leastconns
    retcode-map HTTPCHECK
    real 10.1.31.1
    inservice
    real 10.1.31.2
    inservice
    I also configure IP sticky for my web server:
    sticky 2 netmask 255.255.255.255 timeout 60
    And apply that sticky to the virtual server:
    vserver DCMSWEBHTTP
    virtual 10.1.30.100 tcp www
    serverfarm DCMSWEB
    sticky 60 group 2
    replicate csrp sticky
    replicate csrp connection
    persistent rebalance
    inservice
    But, the problem is my sticky does not work if I apply HTTP return code checking on the serverfarm.
    "show mod contentswitchingmodule 8 sticky" does not show any IP sticky connection.
    If I remove HTTP return code checking from serverfarm, my IP sticky is back to normal.
    Has anyone encoutered this similar problem before?
    Is this a bug on the CSM software?

    This is a new bug.
    The workaround is to use the command 'client 0.0.0.0 /0' under the vserver.
    Gilles.

  • JSP and HTTP return code

    I am new at developing jsp, and I am looking for a way to send an HTTP return code under a specific condition.
    for ex :
    if(data==ok)
    HTPP_return_code = 200;
    else
    HTPP_return_code = 500;
    Is it possible ?

    Within your JSP you can use the sendError method on the response object.
    e.g.
    if (data == ok) {
       response.sendError(HttpServletResponse.SC_OK);
    } else {
       response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
    } See http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletResponse.html
    for possible HTTP return code constants.

  • Replace http return code

    Can WLS 10.3.x with certain settings return http-code=503 in a situation where under normal settings it returns http-code=500?

    Hi,
    Yes, I understand the issue.
    However, error 500 doesn't mean that the server is unavailable. The server could return 500 for different reasons, and the issue could be related to the application behaviour.
    I don't know exactly what kind of application you have, but if we think of webservices for example, whenever the app returns a SOAPFault, HTTP 500 is also returned. In some cases, it could be just a payload validation error.
    Having said that, if you can identify an error condition when you believe the server is unavailable due to specific exception, you could monitor either Weblogic resources using JMX or the log files, and write scripts to either stop/restart the server.
    Regards,
    Fabio.

  • HTTP return code: 500

    I'm trying to send SOAP message to MS Provider
    (to Analysis Services) but having response code 500.
    What am i doing wrong?
    Here's the sources:
    SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection con = scFactory.createConnection();
                   MessageFactory factory = MessageFactory.newInstance();
                   SOAPMessage message = factory.createMessage();
                   SOAPPart soapPart = message.getSOAPPart();
                   SOAPEnvelope envelope = soapPart.getEnvelope();
                   SOAPHeader header = envelope.getHeader();
                   SOAPBody body = envelope.getBody();
                   header.detachNode();
                   envelope.addNamespaceDeclaration( "xsi", "http://www.w3.org/2001/XMLSchema-instance" );
                   envelope.addNamespaceDeclaration( "xsd", "http://www.w3.org/2001/XMLSchema" );
                   Name actionName = envelope.createName("Execute", "", "urn:schemas-microsoft-com:xml-analysis");
                   SOAPBodyElement action = body.addBodyElement( actionName );
                   action.setEncodingStyle( "http://schemas.xmlsoap.org/soap/encoding/" );
                        Name commandName = envelope.createName( "Command" );
                        SOAPElement command = action.addChildElement( commandName );
                             Name statementName = envelope.createName( "Statement" );
                             SOAPElement statement = command.addChildElement( statementName );
                                  statement.addTextNode( "SELECT {[Measures].members * [1997].children} ON COLUMNS, {[Store].[usa].children * [Position].[All Position].children} DIMENSION PROPERTIES [Store].[Store SQFT] ON ROWS FROM [Hr]" );
                        Name propName = envelope.createName( "Properties" );
                        SOAPElement prop = action.addChildElement( propName );
                             Name propListName = envelope.createName( "PropertyList" );
                             SOAPElement propList = prop.addChildElement( propListName );
                                  Name dataSourceInfoName = envelope.createName( "DataSourceInfo" );
                                  SOAPElement dataSourceInfo = propList.addChildElement( dataSourceInfoName );
                                       dataSourceInfo.addTextNode( "Provider=MSOLAP;Data Source=local;" );
                                  Name catalogName = envelope.createName( "Catalog" );
                                  SOAPElement catalog = propList.addChildElement( catalogName );
                                       catalog.addTextNode( "Foodmart 2000" );
                                  Name formatName = envelope.createName( "Format" );
                                  SOAPElement format = propList.addChildElement( formatName );
                                       format.addTextNode( "Multidimensional" );
                                  Name axisFormatName = envelope.createName( "AxisFormat" );
                                  SOAPElement axisFormat = propList.addChildElement( axisFormatName );
                                       axisFormat.addTextNode( "ClusterFormat" );
                                  Name contentName = envelope.createName( "Content" );
                                  SOAPElement content = propList.addChildElement( contentName );
                                       content.addTextNode( "Data" );
                   message.writeTo( System.out );
                   URLEndpoint endpoint = new URLEndpoint( "http://epmw012/xmla/msxisapi.dll");
                   SOAPMessage response = con.call( message, endpoint);
                   response.writeTo( System.out );
    As far as I know this forms a valid XML for analysis.

    I am too working on the JSP SOAP and XMLA Technology. can u send me the details or links where i can find the details.
    Thanks in advance
    Sundar M S

  • Received return code 500 ( Error during conversion of XI message )

    Hello Experts,
    I am configuring the WSRM for SD in SAP. I have only configured services CreditWorthinessQuery_Out and CreditWorthinessQuery_In on soamanager to carry out credit checks.
    while i am creating sales order i am getting below error.
    Received return code 500 ( Error during conversion of XI message )
    In debug i checked the string of error it showed me below string :
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">#<SOAP:Hea
    der>#</SOAP:Header>#<SOAP:Body>#<SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.o
    rg/soap/envelope/"><faultcode>SOAP:Client</faultcode><faultstring>Error during c
    onversion of XI message</faultstring><faultactor>http://sap.com/xi/XI/Message/30
    </faultactor><detail><SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.co
    m/xi/XI/Message/30"><SAP:Category>XIProtocol</SAP:Category><SAP:Code area="PARSE
    R">UNEXPECTED_VALUE</SAP:Code><SAP:P1>Main/@versionMajor</SAP:P1><SAP:P2>000</SA
    P:P2><SAP:P3>003</SAP:P3><SAP:P4/><SAP:AdditionalText/><SAP:ApplicationFaultMess
    age namespace=""/><SAP:Stack>XML tag Main/@versionMajor has incorrect value 000;
    expected value is 003##</SAP:Stack></SAP:Error></detail></SOAP:Fault>#</SOAP:Bo
    dy>#</SOAP:Envelope>#
    Does anyone have any idea about this? I am not integrating with PI/XI system.

    Hi
    Can you check this out?
    Transaction SXMB_ADM  Integration Engine Configuration
    For an application system you have to maintain the role of the business system as an application system. Set the corresponding Integration Server as an HTTP destination (for example, dest://INTEGRATION_SERVER). Create the destination in transaction SM59 and set the type to HTTP Connections to R/3 System. Test the connection by using the Connection Test button; you should get HTTP 500 u2013 Empty HTTP Request received, because no u201Ereal‟ XML document is sent during this test.
    A HTTP return code 500 (Internal Server Error) is OK.
    Regards
    Pothana

  • Windows Azure Pack - Server returned HTTP response code: 500 error while accessing the public tenant API

    Hi,
    We are facing the following error while trying to access the given Windows Azure Pack Public tenant API to query the virtual machines list along with network adaper details - 
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10000&$skip=0
    The response is proper when we access the following URL - 
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines
    Only on adding the $expand=VirtualNetworkAdapters, url parameter we are getting the above error.
    Where can we check for the error logs on the Azure Pack server ? We checked for the logs using Windows Event Viewer but did not find any for the public tenant API.
    What should be the cause for such an error and how can we fix this to get the proper data?
    Thanks in advance.

    Yes, we tried this, $top=10&$skip=0 works for the following url
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$top=10&$skip=0
    It is only when we add $expand=VirtualNetworkAdapters,
    the server returns the mentioned error response - 
    URL for which the server returns the 500 error -
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10&$skip=0
    Can
    you point to the error logs for Windows Azure Pack and SPF ?

  • Error in Webservice Call HTTP error (return code 404, message conn failed)

    Hi
    We wish to call  a standard EP7 webservice through ABAP.
    When we try to create consumer proxy , we get the following error.
    HTTP error (return code 404, message "conn failed")
    Message no. SPRX090
    ==> Display Error Document
    If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
    Check List for Setting Up a Connection to the Service Repository
    1. The address of the Enterprise Services Repository must be known in the SAP system
    Check with report SPROX_CHECK_IFR_ADDRESS
    The address is taken from the following parameters in the exchange profile ('Connections' section):
    com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
    com.sap.aii.connect.repository.httpport: Port (for example, 1080)
    com.sap.aii.connect.repository.contextroot: Root (for example,rep)
    The logon data is also read from the exchange profile ('ApplicationSystem' section):
    com.sap.aii.applicationsystem.serviceuser.name: User
    com.sap.aii.applicationsystem.serviceuser.pwd: Password
    As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
    The RFC destination has to be set up using transaction SM59 and should look like this:
    RFC Destination: SAP_PROXY_ESR
    Connection Type: G (HTTP Connection to External Serv)
    Description1: ESR for Proxy Generation
    Target Host: esr_host
    Service No: 1080
    Path Prefix: rep
    Logon and Security:
    Basic Authentication: active
    User: esr_user
    Password: esr_password
    2. The HTTP Framework of the Web Application Server must function
    Check with report SPROX_CHECK_HTTP_COMMUNICATION
    If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
    3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
    Check with report SPROX_CHECK_IFR_RESPONSE
    you can also login in dev and go to Xn se91
    enter msg id SPRX and msg no 090
    select the message and click on long text..
    you get the same message in a formatted manner..
    How to get rid of this ?
    Regards
    Rajendra

    Hi
    we have given the correct path as we have tested the webserive from
    other technology (.net) by providing the same path.
    regards
    Rajendra

  • IOException  :server returned http response code:505 for url url

    hi,
    my program creates IOException server returned http response code:505 for url <some url>
    I close the i/p stream.I dont know ,where is the problem.plz let me know.Thanks in advance.
    Here is the code:
    public class CallApplicationURL
    private static final String className = "[CallApplicationURL] ";
    private MailAlert ma = new MailAlert();
    public String callURL(String purl, RequestObject ro, Debug log)
         URL url = null;
         String URLResponse = "No response from Provider";
         ProxySetter ps = new ProxySetter();
         try
              ps.setProxy(ro, log);
              url = new URL (purl);
         catch (Exception e)
         URLResponse = className+"Exception while URL assignment \n"+purl+"\n, Exception is "+e;
         return (URLResponse);
         try
         HttpURLConnection h = (HttpURLConnection) url.openConnection();
         h.connect();
         BufferedReader br = new BufferedReader( new InputStreamReader( h.getInputStream() ) );
         URLResponse = br.readLine();
         br.close();
         catch (Exception e)
              URLResponse = className+"Exception while calling URL "+purl+", Exception is "+e;
         return (URLResponse);
         return (URLResponse);
    }

    http response 505: http://libraries.ucsd.edu/about/tools/http-response-codes.html
    This would indicate nothing is wrong with your applet but with your http server (not supporting http 1.1??)
    A full trace might help:
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    When you catch the exception you should print the stacktrace: (e.printStackTrace()).

  • Segmentation Error : Server returned HTTP response code: 500 for URL

    Hi,
    when we do customer segmentation in Applet Java Builder, we create a target group using 2 or more criterion, then it prompts us an error "Communication Error" - Server returned HTTP response code: 500 for URL: http//xxxxxxxxxxx/bc/bsp/sap/CRM_MKTTG_SEGAP/communication.do
    we're in CRM 7.0 SP 6.
    What we have done
    - activated the service CRM_MKTTG_SEGAP
    - implement sap note 1481289, 1359890, 1161753
    any info is really appreciated.
    Thanks
    JD

    HI ,
    Communication error occurs because of two active versions of segment builder jar files are appearing , deletion of older version resolves this issue .
    Go to SE80 u2013 Select the BSP Application - CRM_MKTTG_SEGAP and check segmentbuilder.jar Segment Builder Applet under MIME folder and check the size and delete the older version .
    Regards,
    Satish Bondu

  • Error:server return code 0x8002000E: file failed crc check

    Hi Experts,
                         I am trying to connect to repository in MDM through MDM ABAP API after all the configuration settings in MDMAPIC on execution of the report it gives the error   server return code 0x8002000E: file failed crc check, can anyone provide some helpfull in puts on this problem.
    Thanks,
    Vinay Yadav

    hi,
    follow this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=4119
    hope this may help you,
    Regards,
    srinivas

  • Server returned HTTP response code: 401

    hi,
    I am trying to get the tutorial example to run but always fails at "ant install", with the following error code:
    file:C:/jwstutorial12/examples/common/targets.xml:15: java.io.IOException: Server returned HTTP response code: 401 for U
    RL: http://localhost:8080/manager/install?path=%2Fgs&war=file%3A%2Fjwstutorial12%2Fexamples%2Fgs%2Fbuild
    THe only thing I can think of is that the build.properties file is not good. It should be in my "home" directory. What exactly is my home directory and how do I define it?
    thanks,
    lingling.

    Double-check your password, keeping in mind that property files can override the properties defined in your ant file. Below the tomcat.properties overrides the username and password:
      <property file="tomcat.properties"/>
      <!-- Configure properties to access the Manager application -->
      <property name="url"      value="http://localhost:8080/manager"/>
      <property name="username" value="tomcat"/>
      <property name="password" value="tomcat"/>

  • Check standard HTTP response code for 301

    Hello, EveryBody, I have an error when i deployment a sao project ,
    [11:26:11 AM] Deploying profile...
    [11:26:11 AM] Wrote SAR file to C:\JDeveloper\mywork\weichaiESBApplication\WCPumaReceiveProject\deploy\sca_WCPumaReceiveProject_rev1.0.jar
    [11:26:11 AM] Deploying sca_WCPumaReceiveProject_rev1.0.jar to AdminServer [crmserver:7001]
    [11:26:11 AM] Processing sar=/C:/JDeveloper/mywork/weichaiESBApplication/WCPumaReceiveProject/deploy/sca_WCPumaReceiveProject_rev1.0.jar
    [11:26:11 AM] Adding sar file - C:\JDeveloper\mywork\weichaiESBApplication\WCPumaReceiveProject\deploy\sca_WCPumaReceiveProject_rev1.0.jar
    [11:26:11 AM] Preparing to send HTTP request for deployment
    [11:26:11 AM] Creating HTTP connection to host:crmserver, port:7001
    [11:26:11 AM] Sending internal deployment descriptor
    [11:26:11 AM] Sending archive - sca_WCPumaReceiveProject_rev1.0.jar
    [11:26:11 AM] Received HTTP response from the server, response code=301
    [11:26:11 AM] Problem in sending HTTP request to the server. Check standard HTTP response code for 301
    [11:26:11 AM] Error deploying archive sca_WCPumaReceiveProject_rev1.0.jar to AdminServer [crmserver:7001]
    [11:26:11 AM] HTTP error code returned [301]
    [11:26:11 AM] No error message is returned from the server.
    [11:26:11 AM] #### Deployment incomplete. ####
    [11:26:11 AM] Error deploying archive file:/C:/JDeveloper/mywork/weichaiESBApplication/WCPumaReceiveProject/deploy/sca_WCPumaReceiveProject_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    I user soa version 11.1.1, jdevelop 11.1.1, everybody who tell the answer,
    thank you very much!

    I try http://fujiulnsd3t:8001/soa-infra and get the following information.
    ===========================================================================
    Welcome to the Oracle SOA Platform on WebLogic
    SOA Version: v11.1.1.2.0 - 11.1.1.2.0_091103.1205.1216 built on Tue Nov 03 13:48:58 PST 2009
    WebLogic Server 10.3.2.0 Tue Oct 20 12:16:15 PDT 2009 1267925 (10.3.2.0)
    There are no composites deployed to the platform

Maybe you are looking for

  • OBE - Creating a PDF Report

    http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt_otn.htm At the above link is a samle demo of how to create a PDF report using Oracle 11g, BI Publisher, BI Publisher Desktop. I am stuck at the step # 8: Import the Printing Application in

  • NCHAR in Oracle 9i

    Hi, I'm using Oracle 9i and implementing internationalization for my application. On the oracle site, it says that Oracle 9i supports NCHAR which is an unicode datatype exclusively. But i found that VARCHAR2 also stores unicode characters perfectly.

  • AOL iTunes Login Issue AGAIN?!

    As with many other people, I have experienced a problem over the years (since 2006ish) where iTunes won't recognize my AOL login information -- and yes, my screen name and password are both absolutely correct. I can even log in to AOL directly to get

  • Charging is not supported with this accessory help me please

    help me please

  • A few nooby Questons.

    Hi there, i want to install Arch on my system but I had a few problems initially, the first was with the pacman.conf,  i wanted to download and install KDEmod and not the full KDE package, I appended the config file with. [kdemod-core] Server = http: