• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

RPG delay after idle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RPG delay after idle

    I have a simple app in /resources that operates outside the portal. Unfortunately there is a 5 - 10 second wait for the single RPG call to return data when first called in the morning. Any idea where this delay could be coming from?

  • #2
    Sometimes CGI jobs get paged out of memory if not used for a long time. When you log into the Valence Portal there are quite a few calls going on before you can launch any user apps so this acts to jump-start any idle jobs. In your case since you're running outside of the Valence Portal you're just hitting an idle CGI job and it takes some time to wake up. All the normal rules of work management on IBM i apply here. Make sure your CGI jobs are running at priority 20 (the default is 25) and also make sure you have plenty of memory allocated to the pool that HTTP jobs are running in to minimize page faults.

    Comment

    Working...
    X