When is the average rps computed? (check-request-limits throttling)

Hi all,
The documentation indicates that the default interval for computing the average request per second is 30 seconds. My question is: When does this 30 second start and end? Is it based on the server clock? That is, it computes the average rps @ 01:01:00 then @ 01:01:30 then @ 01:02:00 etc? Or is it based on the server's up-time? Or perhaps based on another algorithm all together?
I simply need to know the frame of reference for computing the average rps. The documentation and the blog posts by Jyri Virkki are not clear about this.
Thank you in advance,

IIRC, the interval is computed on demand when needed for a given rule. The interval is a minimum interval, if no matching requests arrive then the rps won't be computed again until needed.
FYI Sun open-sourced most of the Web Server code, so you can check the implementation directly if you wish.
Looks like the relevant part is starting on line 308 of http://heliod.svn.sourceforge.net/viewvc/heliod/trunk/src/server/safs/reqlimit.cpp?revision=2&view=markup

Similar Messages

  • Create NSAPI SAF plug-in equivalent to check-request-limits

    Hi Masters,
    GoodDay. Okay, here's the problem:
    I'm a newbie in writing a custom SAF's, & what I'd like to do is to write a SAF which is closer to this one:
    +PathCheck fn="check-request-limits" monitor="$ip" max-rps="10" specifically the check-request-limits fn.+
    I believe source code of the server is not available so the question is:
    How can I get total request of a specific client in a given time (secs for example) [ip->TOTAL_REQUEST_IN_1_SEC]?
    char *ip = pblock_findval("ip", sn->client);
    //NEED HELP HERE
    if (ip->TOTAL_REQUEST_IN_1_SEC < 10 ) {
         //my logic goes here
    }Any help would do! Thanks in advance!

    Source code is out. Check this thread :
    Announcing Open Web Server [http://forums.sun.com/thread.jspa?forumID=759&threadID=5360537|http://forums.sun.com/thread.jspa?forumID=759&threadID=5360537]

  • I have an Apple MacBook Pro and when surfing the web my computer will slow to a crawl and I will have a multi-colored spinning wheel visible until my latest request is handled.  What is causing this and is there a way to prevent this from occuring

    I have a MacBook Pro.  When surfing the web it will eventually slow to a crawl.  When this occurs, there will be a small multi-colored wheel spinning until my latest command is handled.  What is causing this and is there a way that I can modify or prevent this from happening?  Is there a setting that will prevent this?

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Automatic tab when reaching the end of a field with limited character number

    Hello!
    Is there a way of activating an automatic tab behaviour when the user reaches the end of a field with limited character number?
    I'd like the cursor to jump to the next field in tab order automatically.
    Possible?
    Thank you for any hints!
    Marcos

    Hi,
    What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
        var fullCount = 3
        var currentString = xfa.event.newText
        if(Len(currentString) >= fullCount)then
            xfa.host.setFocus("TextField2")
        endif
    Or, if you prefer javaScript:
        var fullCount = 3;
        var currentString = xfa.event.newText;
        if(currentString.length >= fullCount){
            xfa.host.setFocus("TextField2");
    These work very smoothly.
    Hope this helps!
    Stephen

  • Finance for Wire , Check request ,Fixed Assets for the Capital Expenditure

    Hi,
    We are trying integrate the Finance for Wire , Check request ,Fixed Assets for the Capital Expenditure with adobe forms.
    Where would i find more information regarding the same?
    what tables are used and what are related t-codes which can give more information?
    any documentation is appreciated.
    rgds
    vara

    Hi,
    We are trying integrate the Finance for Wire , Check request ,Fixed Assets for the Capital Expenditure with adobe forms.
    Where would i find more information regarding the same?
    what tables are used and what are related t-codes which can give more information?
    any documentation is appreciated.
    rgds
    vara

  • Need help with the averages

    Hi All,
    Finally i found a solution. a) I have a time dim from the ware house and its joined to the fact table based on the dateid, since the fact table is getting only the data for the working days , the ware house time dim is showing only those days as count.
    b) I created a new time dim in SSAS TIMEDIMSSAS
    c) I joined the new TIMEDIMSSAS to the warehouse time dimension and the fact table and created new measure AvgWorkDone over time and Avg Rev over time.
    I'm getting what i wanted. BUT here is a new problem , when i select multiple months the grand total (which should be Average is showing wrong average and i'm not sure why), can anyone please help ?
    Row Labels
    AvgRevenue
    AvgWorkDone
    1
    $4.17
    277.6801802
    1368
    $4.17
    277.6801802
    February 2014
    $1.59
    105.7971014
    January 2014
    $0.97
    64.66666667
    March 2014
    $9.52
    634.5512821
    Grand Total
    $4.17
    277.6801802
    The values were supposed to be (1.59+.97+9.52)/3=4.02 and NOT 4.17 for Revenue. Similarly for WorkDone (105.79+64.66+634.55)/3=268.33 and NOT 277.68
    Please can some one suggest what is going wrong here?
    Thanks
    SV

    Hi saivenkat77,
    According to your description, you get incorrect result when calculating the average value. Right?
    In this scenario, please check expression in each calculated measure. Make sure the set expression and numeric expression are correct. You can also limit the SCOPE for set to make the calculation more accurate. Please refer to link below:
    Aggregating the Result of an MDX Calculation Using Scoped Assignments
    Since both measure return a slight bigger number, it may have some members which is not visible and they are aggregated unexpectedly. And it seems the values in the cells for different months are from aggregation calculation already. It may cause slight
    inaccurate when aggregating an aggregated values. So please check all those calculated measure. If possible, please share sample detail data and the expression for calculated measures.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Notification Email should be triggered when hit the Apply changes?

    Hi All,
    Am creating a request form similiar to a remedy form,when ever the user create a new request and submit the request.Notification email will be sent to the user and the admin.
    Here when the admin ppl rejects the request,a notification email triggered to the user like request has been rejected .
    I have three radio buttons in the Form
    1.Submitted(default).
    2.Rejected.
    3.Accepted.
    When the admin edit the request and select rejected radio button,and apply changes ,a notification email should be triggered to the user.
    Now i have a after submit process for edit the ,which will be triggered when ever the user hit the apply changes button and it will send notification to both user and admin.
    How to achieve the notification email that should be triggered when the admin rejects the request and submit the form???
    am using apex version 4.0
    when the Admin will select the reject radio button and hit tha apply changes then the notification email should be sent to the user!!
    Always appreciate your help!!!
    Thanks & Regards,
    Ramya.

    Ramya wrote:
    Hi Gurujothi,
    Thanks for your response!.
    I can able to send email now.Thing is i need to send an email like when the admin rejects the request.
    For eg.
    1.Admin opened the request and select the Reject radio button and clicking Applychanges button then the email notification will be sent to the user like,
    Your request has been Rejected.
    2.If the Admin selects the radio button accept radio button and clicked apply changes,start processing about the request then the Email notification will be sent to the user like ,
    Your request has been modified .Request will be notified by the admin.(Working now)
    DO i need to create two separate process for the email notification like
    one is for all the modifications that the user/admin will do in the form ,once the record is created and another process is for Rejection purpose of the Form.But only one Apply changes button is there in the Form.You don't need two page process, In one single process you can acces the page item session values using *:YOUR_ITEM_NAME* bind variable syntax or V function like this V('YOUR_ITEM_NAME')
    So in your PL/SQL code you can easily prepare the email body based on your radio group item's value
    declare
    l_body varchar2(4000);
    begin
    IF :Px_MY_RADIO_GROUP ='R' THEN
      l_body := build your conditional email body for rejected
    ELSIF  :Px_MY_RADIO_GROUP ='A' THEN
      l_body := build your conditional email body approved
    END IF;
    apex_mail.send(
            p_to       => '[email protected]',   -- change to your email address
            p_from     => '[email protected]', -- change to a real senders email address
            p_body     => l_body,
            p_subj     => 'APEX_MAIL Package - Plain Text message');
    end;
    See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB03012

  • Always assets links are missing when changing the location.

    Hi community: Can you share your ideas with me?
    Since adobe muse older versions, asssets files are missing when changing the location or computer. For example develop some project on "desktop" when it move to another location( ex: Another partition or folder with different name), assets says links are missing, we have to relink all assest, is there are any way to fix it? why is that keep happenings? when i design muse templates to sell, it is serious problems to me .
    Can you help me, thank you community!

    Hi,
    Oracle have a tool for precompiling JSP's it's called ojspc
    You can then turn JSP compilation off on the server.
    Here's a batch file that I use.
    Brenden
    @echo off
    set ORACLE_HOME=C:\[Jdev_install]\jdevstudio10133
    if not exist %ORACLE_HOME%\j2ee\home\ojspc.jar goto error
    java -Djava.compiler=NONE -Doracle.home=%ORACLE_HOME%  -jar %ORACLE_HOME%\j2ee\home\ojspc.jar -extend com.orionserver.http.OrionHttpJspPage yourapp.war
    goto end
    :error
    @echo ERROR: %%ORACLE_HOME%%\j2ee\home\ojspc.jar not found.  Please set ORACLE_HOME to point to an OC4J or OracleAS instance and retry.
    :end
    if "%OS%" == "Windows_NT" endlocal

  • My ipod touch just shows the charge symbol on the screen and i checked whether there is a problem in the charger but it works perfectly on my iphone 4 and when my ipod is connected to the computer itunes is not recognising my device pls help me

    my ipod touch just shows the charge symbol on the screen and i checked whether there is a problem in the charger but it works perfectly on my iphone 4 and when my ipod is connected to the computer itunes is not recognising my device pls help me

    tmplHi pranoop,
    If you are having an issue with your iPod touch not being recognized by iTunes when connected to your Windows computer, I would suggest that you troubleshoot using the steps in this article - 
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

  • I updated my Itunes the other day and now, when clicking on the itunes icon, the program does not open?? I have tried uninstalling and reinstalling, resetting the computer, checking permissions, running as adminstrator.. nothing is working?? Help!!

    I updated my Itunes the other day and now, when clicking on the itunes icon, the program does not open?? I have tried uninstalling and reinstalling, resetting the computer, checking permissions, running as adminstrator.. nothing is working?? Help!!

    Amazing steps you've done so far! The great news is this is very unlikely an issue with your iPhone.
    I've run into a similar issue lately as well. I narrowed it down to one song that was causing 30 songs not to sync. I removed the song from the sync list (unchecked it) and all 29 songs were able to sync.
    You may be running into a similar issue. This may be a problem with this version of iTunes, an issue with one song or a group of songs; hard to know for sure. It's important to narrow down and isolate the cause. Most imporantly get that music back on there!
    The way to narrow down the casue add just a few songs at a time (even 1, just to get that first sync finished). Manually syncing is what you'll need here.
    Plug in your iPhone, on the Summary screen (shows a picture of your iPhone, the iOS version, Restore iPhone....; etc). Under the Options area at the bottom choose to Manually Manage Videos and Music then choose Apply in the lower right. The music that's on your iPhone now should be removed from your iPhone now. You're now able to sync music manually.
    The link below explains how to drag the songs from the iTunes library on the computer on to your iPhone which will start the sync. Add just one song just to see if you can get 1 of those hundreds of songs on there. If you can, awesome! Keep adding until you find the song or group of songs that are causing this issue.
    http://support.apple.com/kb/HT1535
    Please let me know how things are going.
    Cheers!

  • I keep having problems when I'm purchasing personalized books on iPhoto. A few days after ordering, I get an email saying there was an error when I ordered. I've checked and I've updated all the software on my computer. What can I do?

    How do I contact Apple support or someone that can solve my problem?

    Let me also copy and repeat -- since the developers' club apparently has chosen to not give it any weight or credibility -- a comment by a completely different user, in a different thread:
    "I am using the 64-bit nightly, and it is FAR faster than any release in 32-bit, and I have 2GB of ram. Usually the addon compatibility thing takes minutes, when with the nightly 64-bit, I was done in a matter of seconds. also, I notice that it is faster, pages load faster, there is less lag, and it all around seems better than 32-bit in every aspect, even though it is just automatically compiled and not tweaked."
    So, the developer's club position remains, "there really isn't much need for a 64-bit version", despite comments like that. Hmmm . . .
    Are you SURE you want to stand directly behind that answer, while people shoot at it?

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • I purchased movies on my ipad and then when I synced to my computer they ended up in itunes but are now off the the ipad.  How do I get them back onto the ipad.  Thx!

    I purchased tv shows and ibooks on my ipad and then when I synced with my computer they all ended up on my computer in itunes.  They aren't on my ipad anymore.  How do I put some of them back on my ipad.  Also, I tried to make another purchase on my ipad but it said I didn't have enough room.  I just updated my software and before I synced I had a bunch of shows on the pad.  I don't understand why it's saying I don't have room especially since it took all my shows off.  Thanks!!!

    If the shows are in fact still on the pad, they will be found in the videos app, not the music or I tunes app.  Look there and see if they are still there.
    If you don't see them there, go to the searchlight screen ( farthest left home page) and type in the name of one of the shows.  If it is on the pad, hiding somewhere, this will find it.
    If they are not there, they should not be using up space.
    To get them back onto your pad, plug in and sync again.  Make sure you transfer purchases first.   Before you sync, take a look at the video tab in your I tunes, and check what you want and don't want synced.

  • Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • An error occurred when processing the spool request.  (Possibly due to memory problems)

    Hi SAP,
    My backgroud job is failing with log as shown below
    Job started
    Step 001 started (program ZMRS0065, variant SUS
    Step 002 started (program ZDRS0090, variant SUS
    Step 003 started (program ZFRS0305, variant SUS
    Step 004 started (program ZFRS0300, variant SUS
    Access error
    Job cancelled after system exception ERROR_MESSAGE
    An error occurred when processing the spool request.  (Possibly due to memory problems)
    Kindly help out in this issue
    Regards
    Mohammed

    Hello Mohammed,
    Have you seen any error in your SM21 system log and developer trace of spool work process
    during that time?
    The maximum size when create spool is 2GB.Pls also check if you are creating a spool
    larger than it.
    Best Regards
    Jie Bai

Maybe you are looking for