5 Replies Latest reply on Apr 28, 2017 1:58 AM by Aryan Anantwar

    HTTP Adapter Stuck while making REST call

    Aryan Anantwar

      Hi All,

       

      I'm facing an issue with HTTP Adapter.

      In a workflow I'm using HTTP Adapter in 'Call Adapter' activity to make a REST API call with enable-json-conversion as 'true'.

      the API returns 30k+ records in JSON response which HTTP Adapter converts into XML.

       

      I can see in Logs that HTTP Adapter is able to make the call and converts the complete JSON response in XML.

      But it won't finish it's call and stuck on 'Call Adapter' activity.

      As per the logs which prints the <httpAdapterResponse> but not moves to next activity to process the data.

       

      Any idea why the HTTP Adapter is stuck in 'call-adapter' activity even when it received json response and converted it into XML?

       

      Thanks,

      Aryan Anantwar

        • 1. Re: HTTP Adapter Stuck while making REST call
          Ranganath Samudrala

          How much memory has been allocated to the BAO process here?

          Do you see any OutOfMemory errors in grid.log?

          You may need to provide more information, like the JSON data that is being processed, etc.

          • 2. Re: HTTP Adapter Stuck while making REST call
            Aryan Anantwar

            Hi Ranga,

             

            Thanks for quick response.

            the response contains the 30K+ records as below is the one of them:

            {

              "Status": "xxxx",

              "Building": "xxx",

              "LoginID": "xxxx",

              "FirstName": "xxx",

              "EmployeeNumber": "xxxxxx",

              "Title": "xxxxx",

              "TelephoneNumber": "",

              "Department": "xxxxxxx",

              "Mail": "xxxxxxxxxxxx",

              "DisplayName": "xxxxxxxxx",

              "Division": "xxxxxxxx",

              "LastName": "xxxxxxx",

              "PreferredName": "",

              "Domain": "xxxxxxxxx",

              "RoomNumber": "xxxxxxxx",

              "ManagerLoginID": "xxxxxxxxxxx",

              "Location": "xxxxxxxxxxxxx"

            }

             

            I'm testing this in Devstudio (BAO version 7.8.02 on windows) and the Box is running with 8GB RAM.

            CDP is also running on the same box.

             

            do I need to change any JVM settings for this to work?

             

            Regards,

            Aryan Anantwar

            • 3. Re: HTTP Adapter Stuck while making REST call
              Ranganath Samudrala

              30k+ records converted to XML will consume a lot of memory.

              Eventually, out of 8GB, how much is allocated to dev studio and CDP? Prefer CDP is on a different machine with 16GB RAM and the CDP allocated 8GB to itself.

              1 of 1 people found this helpful
              • 4. Re: HTTP Adapter Stuck while making REST call
                Carl Wilson

                Hi Aryan,

                A couple of thing to remember here based on what Ranga has mentioned:

                 

                • You may have a server with 16GB Ram, however during the OOB installation AO only allocates to the process a standard Java heap sizing (1024 - 2048) as defined when you install the product.  You can increase this to make use of the server memory by increasing the JVM allocation for the AO process (Configuration Distribution Peer).   8GB Ram is the recommended maximum allocation for a CDP.  For a server with 8GB Ram, you need to allow for OS overhead, so with Windows we say 20% for OS (10% for Unix) and therefore probably no more than say 6GB Ram.
                • Developer Studio only uses the memory as allocated in its "Development Studio.ini" file, so although the Grid may have the additional memory overhead you need to account for the memory allocated to the Developer Studio + the memory that will be consumed by the logging and other activities in the Developer Studio e.g. Open Processes in the Designer, etc.  This all eats up the memory quickly. 

                 

                Cheers

                Carl

                1 of 1 people found this helpful
                • 5. Re: HTTP Adapter Stuck while making REST call
                  Aryan Anantwar

                  Thanks Carl and Ranga,

                   

                  issue resolved when JVM memory increased.

                   

                  Regards,

                  Aryan Anantwar